
Class Reference
enum GraphicWindow { GW_NORMAL, GW_OVERLAY };
Data type used to specify the plane in which the hardware draws the graphic:
enum GraphicColour { GC_RED,
GC_WHITE,
GC_GREEN };
Data type enumerating the possible colours to draw the graphic.void setWindow( GraphicWindow gw );Sets the mode of the window in which the graphic is drawn.
GraphicWindow getWindow( void );Returns the mode of the window in which the graphic is drawn.
Boolval isOverlay( void );Returns TRUE if the window mode is overlay.
Boolval isNormal ( void );Returns TRUE if the window mode is normal.
void setPickable( Boolval pickable );Specifies whether the DK_Graphic object is pickable.
void setDrawable( Boolval drawable );Specifies whether the DK_Graphic object is drawable. For example, you can set this to FALSE to hide the graphic.
void setSelected( Boolval select,
Boolval extend );
Specifies the selection status of the DK_Graphic object:
Boolval isPickable( void );Returns TRUE if the DK_Graphic object is pickable.
Boolval isDrawable( void );Returns TRUE if the DK_Graphic object is drawable.
Boolval isSelected( void );Returns TRUE if the DK_Graphic object is currently selected.
virtual DK_Rect2 getBoundingBox( void );Returns the bounding box of the DK_Graphic object.
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:
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.
