CIvfWorkspaceWidget Class Reference

#include <ivfwidget/IvfWorkspaceWidget.h>

Inheritance diagram for CIvfWorkspaceWidget:

CIvfWidgetBase CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfFltkWorkspace CIvfWorkspaceWindow List of all members.

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 ()
CIvfWorkspacegetWorkspace ()
CIvfCameragetCamera ()
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)

Detailed Description

Workspace widget class

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.


Constructor & Destructor Documentation

CIvfWorkspaceWidget::CIvfWorkspaceWidget  ) 
 

CIvfWorkspace constructor

virtual CIvfWorkspaceWidget::~CIvfWorkspaceWidget  )  [virtual]
 

CIvfWorkspace destructor


Member Function Documentation

void CIvfWorkspaceWidget::addChild CIvfShape shape  ) 
 

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.

virtual void CIvfWorkspaceWidget::doDestroy  )  [virtual]
 

Called by the doDraw() method

Reimplemented from CIvfWidgetBase.

virtual void CIvfWorkspaceWidget::doInit int  width,
int  height
[virtual]
 

Called by doResize()

Reimplemented from CIvfWidgetBase.

virtual void CIvfWorkspaceWidget::doKeyboard int  key,
int  x,
int  y
[virtual]
 

Keyboard event handling (called from widget)

Derived widget should call this method when a key on the keyboard is pressed.

Reimplemented from CIvfWidgetBase.

virtual void CIvfWorkspaceWidget::doMouseDown int  x,
int  y
[virtual]
 

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.

virtual void CIvfWorkspaceWidget::doMouseMove int  x,
int  y
[virtual]
 

MouseMove event handling (called from widget)

Derived widget should call this method when the mouse is moved.

Reimplemented from CIvfWidgetBase.

virtual void CIvfWorkspaceWidget::doMouseUp int  x,
int  y
[virtual]
 

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.

virtual void CIvfWorkspaceWidget::doRender  )  [virtual]
 

Called by doDraw()

Reimplemented from CIvfWidgetBase.

virtual void CIvfWorkspaceWidget::doResize int  width,
int  height
[virtual]
 

Resize event handling (called from widget)

Derived widget should call this method when widget is resized.

Reimplemented from CIvfWidgetBase.

CIvfCamera* CIvfWorkspaceWidget::getCamera  ) 
 

Return current camera

TEditMode CIvfWorkspaceWidget::getEditMode  ) 
 

Return the current edit mode

CIvfWorkspace* CIvfWorkspaceWidget::getWorkspace  ) 
 

Return CIvfWorkspace instance

virtual void CIvfWorkspaceWidget::onCursor double  x,
double  y,
double  z
[virtual]
 

3D cursor event method

This method should be overridden in derived classes to receive 3d cursor movement updates.

void CIvfWorkspaceWidget::setEditMode TEditMode  mode  ) 
 

Sets the edit mode

Parameters:
mode three modes are defined in this class EM_VIEW for viewing the workspace, EM_SELECT for selecting objects in the workspace and EM_CREATE for creating objects.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:37:02 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO