Tools::TransferFunction::Trapezoid Class Reference

#include <trapezoid.h>

List of all members.


Detailed Description

Display and manipulate a Trapezoid

trapezoid.png

	 *                        high0   high1
	 *                 |          /---\            |
	 * left border     |         /     \           | right border
	 *                 |--------/       \----------|
	 *            ---------------------------------------
	 *                left    low0     low1      right 
	 * 

Here data intensities between low0 and low1 will appear as bright pixels. Everything else will not appear. Top control the opacity.

As with the histogram, it is possible to visualize only a portion of the ramp, and to zoom and pan it.

Public Member Functions

 Trapezoid ()
 Trapezoid (float low0, float high0, float high1, float low1, float opacity=1)
 ~Trapezoid ()
void update (float low0, float high0, float high1, float low1, float opacity)
void clamp (float left, float right)
void display () const
bool mouse (float x, float y)
bool motion (float x, float y)
void get (float i, float &r, float &g, float &b, float &a) const
void setColor (float r, float g, float b)
void reshape (int w, int h)


Constructor & Destructor Documentation

Tools::TransferFunction::Trapezoid::Trapezoid (  ) 

Tools::TransferFunction::Trapezoid::Trapezoid ( float  low0,
float  high0,
float  high1,
float  low1,
float  opacity = 1 
)

Tools::TransferFunction::Trapezoid::~Trapezoid (  ) 


Member Function Documentation

void Tools::TransferFunction::Trapezoid::update ( float  low0,
float  high0,
float  high1,
float  low1,
float  opacity 
)

void Tools::TransferFunction::Trapezoid::clamp ( float  left,
float  right 
)

void Tools::TransferFunction::Trapezoid::display (  )  const

bool Tools::TransferFunction::Trapezoid::mouse ( float  x,
float  y 
)

bool Tools::TransferFunction::Trapezoid::motion ( float  x,
float  y 
)

void Tools::TransferFunction::Trapezoid::get ( float  i,
float &  r,
float &  g,
float &  b,
float &  a 
) const

void Tools::TransferFunction::Trapezoid::setColor ( float  r,
float  g,
float  b 
)

void Tools::TransferFunction::Trapezoid::reshape ( int  w,
int  h 
)


The documentation for this class was generated from the following file:

Generated on Tue Aug 4 17:57:43 2009 for libvd by  doxygen 1.5.5