TomoVision_Tools: Hue_Edit

 

 

The Hue_Edit class enable you to draw a color edition tool in the interface.  This tool is composed of 1 slider for the hue of the color. The tool also has a preview box to display the resulting color.  If the tool is given  name, it will be placed at the top of the tool's box. 

 

The flags that affect the Hue_Edit are:

 

 

OUTIL_INVISIBLE

// no graphics

 

OUTIL_DISABLE

// no select (but graphics OK)

 

OUTIL_VERTICAL

// the name is drawn vertically

 

OUTIL_EMPTY

// no fill

 

OUTIL_OUTLINE

// border as blue outline

 

OUTIL_NO_3D

// flat fill

 

OUTIL_NO_BORDER

 

// do not draw the outside box

 

VALUATOR_FREZE

 

 

 

The variables that are specific to the Hue_Edit class are:

 

 

unsigned long          Cur_Value ;

// current value of the color (32 bit integer with 8 bits for red, green and blue).

          

 

The methods that are specific to the Hue_Edit are:

          

 

unsigned long          Read( void ) ;

// return the value of the color defined by the mouse position.

 

unsigned long          Scroll( int val ) ;

//

 

An example of the usage of the Hue_Edit class is given in the Colors demo directory.  This demo has already been presented in the Color_Edit section.