#include <ivfwidget/IvfWorkspaceWidget.h>
Inheritance diagram for CIvfWorkspaceWidget:
Public Types | |
enum | TEditMode { EM_VIEW, EM_INTERACT, EM_CREATE_POINT, EM_CREATE_LINE, EM_CREATE_POLY } |
Public Member Functions | |
CIvfWorkspaceWidget () | |
virtual | ~CIvfWorkspaceWidget () |
IvfClassInfo ("CIvfWorkspaceWidget", CIvfWidgetBase) | |
void | addChild (CIvfShape *shape) |
void | setEditMode (TEditMode mode) |
TEditMode | getEditMode () |
CIvfWorkspace * | getWorkspace () |
CIvfCamera * | getCamera () |
bool | isShapeOverEnabled () |
void | disableShapeOver () |
void | enableShapeOver () |
virtual void | doInit (int width, int height) |
virtual void | doResize (int width, int height) |
virtual void | doRender () |
virtual void | doDestroy () |
virtual void | doKeyboard (int key, int x, int y) |
virtual void | doMouseDown (int x, int y) |
virtual void | doMouseMove (int x, int y) |
virtual void | doMouseUp (int x, int y) |
virtual void | onCursor (double x, double y, double z) |
virtual void | onShapeDown (CIvfShape *shape) |
virtual void | onShapeClick (CIvfShape *shape) |
virtual void | onShapeUp (CIvfShape *shape) |
virtual void | onShapeOver (CIvfShape *shape) |
virtual void | onShapeLeave (CIvfShape *shape) |
virtual void | onShapeDrag (CIvfShape *shape) |
virtual void | onControlOver (CIvfUIInteractiveBase *uiControl) |
virtual void | onControlLeave (CIvfUIInteractiveBase *uiControl) |
virtual void | onControlDrag (CIvfUIInteractiveBase *uiControl) |
virtual void | onControlUp (CIvfUIInteractiveBase *uiControl) |
virtual void | onControlClick (CIvfUIInteractiveBase *uiControl) |
virtual void | onControlDown (CIvfUIInteractiveBase *uiControl) |
This class implements a widget with workspace functionality. A 3d cursor is also implemented and construction planes using the CIvfWorkspace class.
NOTE. Consider using event handlers instead of this class.
Definition at line 54 of file IvfWorkspaceWidget.h.
|
CIvfWorkspace constructor |
|
CIvfWorkspace destructor |
|
Adds a child to the workspace This is really just a convinience class. If more functionality is wanted use the getWorkspace() method to retrieved the CIvfWorkspace object. |
|
Called by the doDraw() method Reimplemented from CIvfWidgetBase. |
|
Called by doResize() Reimplemented from CIvfWidgetBase. |
|
Keyboard event handling (called from widget) Derived widget should call this method when a key on the keyboard is pressed. Reimplemented from CIvfWidgetBase. |
|
MouseDown event handling (called from widget) Derived widget should call this method when any of the mouse buttons is pressed. Reimplemented from CIvfWidgetBase. Reimplemented in CIvfWorkspaceWindow. |
|
MouseMove event handling (called from widget) Derived widget should call this method when the mouse is moved. Reimplemented from CIvfWidgetBase. |
|
MouseUp event handling (called from widget) Derived widget should call this method when any of the mouse buttons is released. Reimplemented from CIvfWidgetBase. Reimplemented in CIvfWorkspaceWindow. |
|
Called by doDraw() Reimplemented from CIvfWidgetBase. |
|
Resize event handling (called from widget) Derived widget should call this method when widget is resized. Reimplemented from CIvfWidgetBase. |
|
Return current camera |
|
Return the current edit mode |
|
Return CIvfWorkspace instance |
|
3D cursor event method This method should be overridden in derived classes to receive 3d cursor movement updates. |
|
Sets the edit mode
|