Class Reference

DK_ColourChannelToggles

DK_ColourChannelToggles is a GUI class that controls colour channel toggles on the tool shelf, as found in the ColourChannels and Mix tools.Component

enum Component {
   CT_RED   = 8,
   CT_GREEN = 4,
   CT_BLUE  = 2,
   CT_ALPHA = 1,
   CT_RGB   = CT_RED | CT_GREEN | CT_BLUE,
   CT_RGBA  = CT_RED | CT_GREEN | CT_BLUE 
                                      | CT_ALPHA
};
Component is a data type used as a mask for keeping track of the state of the component toggles.

Constructor

DK_ColourChannelToggles(const char *name, 
                        Widget parent,
                        Arg *args = NULL,
                        int nargs = 0,
                        short state = CT_RGBA);
Creates a set of component toggles with the specified parent widget. The toggles are labelled *name.

getValue

short getValue ( void );
Returns the state of the toggles.

setValue

void setValue ( short val );
Sets the state of the toggles to the specified value.

setMask

void setMask ( short mask );
Turns on the channels specified by mask. For example, if mask is 5 (0101), then G and A are set on while R and B keep their previous values.

clearMask

void clearMask ( short mask );
Turns off the channels specified by mask. For example, if mask is 5 (0101), then G and A are turned off while R and B keep their previous values.

enableMask

void enableMask ( short mask );
Sensitizes or desensitizes individual toggles according to the mask.

Constructor
getValue
setValue
setMask
clearMask
enableMask

SOFTIMAGE Eddie 3.5 - 10 JAN 1997