Class Reference

DK_ToolGUI

DK_ToolGUI is a GUI class that is responsible for your tool's user interface: the tool shelf as well as any custom canvases you create.

Constructor

DK_ToolGUI(DK_Tool *);
Creates a DK_ToolGUI object. If you want extra tabs on the tool shelf, you should set _extraTabCount as described for createExtraTabs.

create

virtual Widget create
               (Widget natural_size_parent,
                Widget sized_to_fit_parent) = 0;
Creates the tool's interface. This method is called only once, when the tool editor is first opened. Use one of the two arguments as a parent for your panel:

You must override this method.

update

virtual void update(void) = 0;
Updates all the element's of the tool editor GUI. You must override this method.

createExtraTabs

u_int _extraTabCount;
virtual Widget createExtraTabs
                   (int tab,
                    Widget natural_size_parent,
                    Widget sized_to_fit_parent);
Creates extra tab panels in the tab deck. Set _extraTabCount to the desired number of tabs in the constructor of your DK_ToolGUI subclass. For a description of the parent arguments, see create.

The tabs are named TAB#, where # is the tab index. To set the names of your tabs, you must provide resources in the $EDDIE3DIR/res/Eddie file. For example, if your custom tool is called "foo" and you want TAB2 to be named "bar":

Eddie*foo*tabArea.TAB2: bar

graphicChange

virtual void graphicChange (DK_Graphic *, 
                            int) {}
Method for responding to a change in a graphic element.

animParamChange

virtual void animParamChange(DK_AnimParam *,
                             int) {}
Method for responding to a change in an animated parameter.

canvasDoubleClick

virtual Boolean canvasDoubleClick 
                         ( DK_Canvas*,
                           const DK_Vector2&,
                           const DK_IVector2& );
Handles a double-click in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasDoubleClick).

canvasButtonPress

virtual Boolean canvasButtonPress 
                         ( DK_Canvas*,
                           const DK_Vector2&, 
                           const DK_IVector2& );
Handles a mouse button press in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was pressed, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasButtonPress).

canvasButtonRelease

virtual Boolean canvasButtonRelease
                         ( DK_Canvas*,
                           const DK_Vector2&, 
                           const DK_IVector2& );
Handles a mouse button release in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was released, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasButtonRelease).

canvasKeyPress

virtual Boolean canvasKeyPress 
                         ( DK_Canvas*,
                           const DK_Vector2&, 
                           const DK_IVector2& );
Handles a keyboard press in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which key was pressed, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasKeyPress).

canvasKeyRelease

virtual Boolean canvasKeyRelease 
                         ( DK_Canvas*,
                           const DK_Vector2&, 
                           const DK_IVector2& );
Handles a keyboard release in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which key was released, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasKeyRelease).

canvasMotion

virtual Boolean canvasMotion 
                         ( DK_Canvas*,
                           const DK_Vector2&, 
                           const DK_IVector2& );
Handles mouse dragging in a canvas. For convenience, the pointer position is supplied in both ortho coordinates (DK_Vector2) and screen coordinates (DK_IVector2). To determine which button was pressed while dragging, use the X Window event handling functions. If you override this method, return true; if you decide not to handle a particular event, call the base class (DKToolGUI::canvasMotion).

getTimeLine

TimeLine &getTimeLine();
Returns the tool's timeline. This function is provided to satisfy the construction requirements of some GUI elements; it is not visible to users of your tool.

getFrameNumber

float getFrameNumber(void);
Returns the current frame set in the local timeline.

createFileBrowser

DK_FileBrowser *createFileBrowser(void);
A convenience function for creating a file browser through the parent class.

createImageGraphic

DK_ImageGraphic *createImageGraphic(DK_Image *);
A convenience function for creating a DK_ImageGraphic object through the parent class. The DK_ImageGraphic object is updated when the current frame changes.

addChildToCanvas

void addChildToCanvas(DK_ImageCanvas *, u_int);
Takes the rendered image from a child tool connected to the target leg indexed by the unsigned integer, and places it on the specified image canvas.

Constructor
create
update
createExtraTabs
graphicChange
animParamChange
canvasDoubleClick
canvasButtonPress
canvasButtonRelease
canvasKeyPress
canvasKeyRelease
canvasMotion
getTimeLine
getFrameNumber
createFileBrowser
createImageGraphic
addChildToCanvas

SOFTIMAGE Eddie 3.5 - 10 JAN 1997