Class Reference

DK_Graphic

DK_Graphic is a GUI superclass that handles mouse interactions with an graphic object drawn in a canvas, as well as other actions that are common to the various graphic subclasses (DK_ImageGraphic, DK_RectGraphic, DK_TimeSplineGraphic, and DK_UserGraphic).

GraphicWindow

enum GraphicWindow { GW_NORMAL, GW_OVERLAY };
Data type used to specify the plane in which the hardware draws the graphic:

GraphicColour

enum GraphicColour { GC_RED, 
                     GC_WHITE,
                     GC_GREEN };
Data type enumerating the possible colours to draw the graphic.

setWindow

void setWindow( GraphicWindow gw );
Sets the mode of the window in which the graphic is drawn.

getWindow

GraphicWindow getWindow( void );
Returns the mode of the window in which the graphic is drawn.

isOverlay

Boolval isOverlay( void );
Returns TRUE if the window mode is overlay.

isNormal

Boolval isNormal ( void );
Returns TRUE if the window mode is normal.

setPickable

void setPickable( Boolval pickable );
Specifies whether the DK_Graphic object is pickable.

setDrawable

void setDrawable( Boolval drawable );
Specifies whether the DK_Graphic object is drawable. For example, you can set this to FALSE to hide the graphic.

setSelected

void setSelected( Boolval select, 
                  Boolval extend );
Specifies the selection status of the DK_Graphic object:

isPickable

Boolval isPickable( void );
Returns TRUE if the DK_Graphic object is pickable.

isDrawable

Boolval isDrawable( void );
Returns TRUE if the DK_Graphic object is drawable.

isSelected

Boolval isSelected( void );
Returns TRUE if the DK_Graphic object is currently selected.

getBoundingBox

virtual DK_Rect2 getBoundingBox( void );
Returns the bounding box of the DK_Graphic object.

Reason

enum Reason { GRAPHIC_MOTION_START, 
              GRAPHIC_MOTION,
              GRAPHIC_MOTION_FINISH, 
              GRAPHIC_SELECTION, 
              GRAPHIC_VISUAL_CHANGE };
Data type enumerating the possible reasons the graphic needs to be redrawn:

init_DK_Graphic

void init_DK_Graphic( DK_Canvas &, GLGraphic* );
Initializes the graphic. This must be called as the last statement in the constructors of subclasses directly derived from DK_Graphic.

GraphicWindow
GraphicColour
setWindow
getWindow
isOverlay
isNormal
setPickable
setDrawable
setSelected
isPickable
isDrawable
isSelected
getBoundingBox
Reason
init_DK_Graphic

SOFTIMAGE Eddie 3.5 - 10 JAN 1997