CIvfWorkspace Class Reference

#include <ivf/IvfWorkspace.h>

Inheritance diagram for CIvfWorkspace:

CIvfSceneBase CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

void disableCursor ()
void enableCursor ()
double getSize ()
bool getUseCursor ()
void setUseCursor (bool flag)
 CIvfWorkspace ()
virtual ~CIvfWorkspace ()
 IvfClassInfo ("CIvfWorkspace", CIvfSceneBase)
void addPlane (CIvfConstructionPlane *plane)
void clearPlanes ()
void updateCursor (int x, int y)
void updateSizes ()
void setCurrentPlane (int idx)
void nextPlane ()
void prevPlane ()
void lockCursor ()
void unlockCursor ()
bool isCursorLocked ()
virtual void setView (CIvfView *view)
void setWorkspaceSize (double size)
void setRelativeAxisSize (double size)
void setRelativeCursorSize (double size)
CIvfConstructionPlanegetCurrentPlane ()
CIvfVec3dgetCursorPosition ()
bool getUsePlanes ()
void setUsePlanes (bool flag)
double getWorkspaceSize ()
void setSize (double size)

Protected Member Functions

virtual void createGeometry ()

Detailed Description

Workspace class

The CIvfWorkspace class implements a complete scene class with construction plane management. Use updateCursor() and updateSizes() to update cursor and gui element sizes in response to mouse moves and camera changes.

Author:
Jonas Lindemann

Definition at line 43 of file IvfWorkspace.h.


Constructor & Destructor Documentation

CIvfWorkspace::CIvfWorkspace  ) 
 

CIvfWorkspace constructor

virtual CIvfWorkspace::~CIvfWorkspace  )  [virtual]
 

CIvfWorkspace destructor


Member Function Documentation

void CIvfWorkspace::addPlane CIvfConstructionPlane plane  ) 
 

Add a construction plane

void CIvfWorkspace::clearPlanes  ) 
 

Clear all construction planes

virtual void CIvfWorkspace::createGeometry  )  [protected, virtual]
 

Forces an object recalculation.

Reimplemented from CIvfSceneBase.

CIvfConstructionPlane* CIvfWorkspace::getCurrentPlane  ) 
 

Return current construction plane

CIvfVec3d& CIvfWorkspace::getCursorPosition  ) 
 

Return global cursor position

bool CIvfWorkspace::isCursorLocked  ) 
 

Query cursor lock state

void CIvfWorkspace::lockCursor  ) 
 

Lock cursor in XZ plane

void CIvfWorkspace::nextPlane  ) 
 

Switch to next construction plane

void CIvfWorkspace::prevPlane  ) 
 

Switch to previous construction plane

void CIvfWorkspace::setCurrentPlane int  idx  ) 
 

Set current construction plane

void CIvfWorkspace::setRelativeAxisSize double  size  ) 
 

Set relative axis size

void CIvfWorkspace::setRelativeCursorSize double  size  ) 
 

Set relative cursor size

void CIvfWorkspace::setSize double  size  ) 
 

No descriptions

virtual void CIvfWorkspace::setView CIvfView view  )  [virtual]
 

Set view used (required)

Reimplemented from CIvfSceneBase.

void CIvfWorkspace::setWorkspaceSize double  size  ) 
 

Set size of workspace

void CIvfWorkspace::unlockCursor  ) 
 

Lock cursor in Y direction

void CIvfWorkspace::updateCursor int  x,
int  y
 

Update cursor on current construction plane

This method should be called whenever the mouse is moved in the window. The (x, y) mouse position is then mapped to the current constructionplane.

void CIvfWorkspace::updateSizes  ) 
 

Update relative cursor and axis sizes

This method should be called when the camera view is moved closer or further away from the construction plane.


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