|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
Base class for Layout Tool plugins. More...
#include <layouttool_handler.h>
Inheritance diagram for lwpp::LayoutToolHandler:
Collaboration diagram for lwpp::LayoutToolHandler:Public Member Functions | |
| LayoutToolHandler (void *g, void *context, LWError *err) | |
| Constructor. | |
| virtual | ~LayoutToolHandler () |
| Destructor. | |
| virtual int | adjust (LWToolEvent *lwtool_event, int i) |
| Drag the given handle to a new location. | |
| virtual int | count (LWToolEvent *lwtool_event) |
| Returns the number of handles. If zero, then start is used to set the initial handle point. | |
| virtual const char * | DescLn () |
| virtual int | dirty () |
| Returns flag bit if either the wireframe or help string need to be refreshed. | |
| virtual void | done () |
| Destroy the instance. Called when the user discards the tool. | |
| int | down (LWToolEvent *lwtool_event) |
| Process a mouse-down event. If this function returns false, handle processing will be done. | |
| virtual void | draw (LWCustomObjAccess *co_access) |
| Display a wireframe representation of the tool in a 3D viewport. Typically this draws the handles. | |
| virtual void | event (int code) |
| Process a general event: DROP, RESET or ACTIVATE. | |
| int | handle (LWToolEvent *lwtool_event, int i, LWDVector handle_pos) |
| Returns the 3D location and priority of the handle, or zero if the handle is currently invalid. | |
| virtual const char * | help (LWToolEvent *lwtool_event) |
| Returns a text string to be displayed as a help tip for this tool. | |
| virtual LWError | Load (const LoadState &ls) |
| Load data from a LWLoadState. | |
| virtual void | move (LWToolEvent *lwtool_event) |
| Process a mouse-move event. This is only called if the down function returned true. | |
| virtual LWXPanelID | panel () |
| Create and return a view-type xPanel for the tool instance. | |
| virtual LWError | Save (const SaveState &ss) |
| Save data to a LWSaveState. | |
| void | SetClassName (const char *n) |
| void | SetDescription (const char *n) |
| void | SetDescription (const std::string &s) |
| void | SetName (const char *n) |
| int | start (LWToolEvent *lwtool_event) |
| Take an initial mouse-down position and return the index of the handle that should be dragged. | |
| void | up (LWToolEvent *lwtool_event) |
| Process a mouse-up event. This is only called if the down function returned true. | |
| void | Update () |
| void | Update (const char *cName) |
Protected Attributes | |
| const char * | m_className |
| std::string | m_description |
| const char * | m_pluginName |
| InstanceUpdate | m_update |
Base class for Layout Tool plugins.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Drag the given handle to a new location.
Drag the given handle to a new location and return the index of the handle that should continue being dragged (often the same as the input).
| lwtool_event | The event to the handle. |
| i | The number of the handle |
|
inlinevirtual |
Returns the number of handles. If zero, then start is used to set the initial handle point.
| lwtool_event | The event to the handle. |
|
inlinevirtualinherited |
|
inlinevirtual |
Returns flag bit if either the wireframe or help string need to be refreshed.
|
inlinevirtual |
Destroy the instance. Called when the user discards the tool.
|
inline |
Process a mouse-down event. If this function returns false, handle processing will be done.
If this function returns false, handle processing will be done instead of raw mouse event processing.
| lwtool_event | The event to the handle. |
|
inlinevirtual |
Display a wireframe representation of the tool in a 3D viewport. Typically this draws the handles.
| co_access | A custom object structure access |
|
inlinevirtual |
Process a general event: DROP, RESET or ACTIVATE.
|
inline |
Returns the 3D location and priority of the handle, or zero if the handle is currently invalid.
| lwtool_event | The event to the handle. |
| i | The number of the handle |
| handle_pos | The 3D location of the handle. |
|
inlinevirtual |
Returns a text string to be displayed as a help tip for this tool.
| lwtool_event | The event to show the help string for. |
|
inlinevirtualinherited |
Load data from a LWLoadState.
| *ls | LWLoadState to load from |
Reimplemented in lwpp::LWItem, lwpp::FileName, lwpp::Image, lwpp::ColourManager, lwpp::NodeEditor, and lwpp::VParm.
|
inlinevirtual |
Process a mouse-move event. This is only called if the down function returned true.
|
inlinevirtual |
Create and return a view-type xPanel for the tool instance.
|
inlinevirtualinherited |
Save data to a LWSaveState.
| *ss | LWSaveState to save to |
Reimplemented in lwpp::LWItem, lwpp::FileName, lwpp::Image, lwpp::ColourManager, lwpp::NodeEditor, and lwpp::VParm.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Take an initial mouse-down position and return the index of the handle that should be dragged.
| lwtool_event | The event to the handle. |
|
inline |
Process a mouse-up event. This is only called if the down function returned true.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |