Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CrTool Class Reference

Manipulation tool implement controller behavior. More...

#include <CrTool.h>

Inheritance diagram for CrTool:

CrControllerObserver Observer CrHapticRotateTool CrHapticTranslateTool List of all members.

Public Member Functions

virtual ~CrTool ()
 Virtual destructor.
SoSeparator * getSeparator ()
 Returns the tool's graphic SoSeparator node.
virtual void activate ()
 Triggered when the tool activeates.
virtual void deactivate ()
 Triggered when the tool deactivates.
virtual void handleEvent (SoEvent *)
 Handles the most recent event from the CrController.
virtual void handleEventAction (SoHandleEventAction *)
 Handles the event via the event action (UNUSED?).
void setController (CrController *)
 Designates the CrController to which this tool is attached.

Protected Member Functions

 CrTool (CrController *controller=NULL)
 Parameterized constructor requires a CrController.

Protected Attributes

SoSeparator * m_sep
 Contains the tool's visual representation.
SoTransform * m_transform
 The transform is updated continuously by the controller.

Detailed Description

Manipulation tool implement controller behavior.

Author:
Chris Scharver
Date
2004/01/18 00:04:39
Revision
1.10
Tools implement behaviors for user interaction with a specific CrController device. As state changes on the device--in particular, the position and orientation--the CrTool reacts to SoEvents containing state change information.

See also:
CrController, CrControllerObserver


Constructor & Destructor Documentation

CrTool::~CrTool  )  [virtual]
 

Virtual destructor.

CrTool::CrTool CrController controller = NULL  )  [protected]
 

Parameterized constructor requires a CrController.


Member Function Documentation

virtual void CrTool::activate  )  [inline, virtual]
 

Triggered when the tool activeates.

Reimplemented in CrHapticRotateTool, and CrHapticTranslateTool.

virtual void CrTool::deactivate  )  [inline, virtual]
 

Triggered when the tool deactivates.

Reimplemented in CrHapticRotateTool, and CrHapticTranslateTool.

SoSeparator* CrTool::getSeparator  )  [inline]
 

Returns the tool's graphic SoSeparator node.

void CrTool::handleEvent SoEvent *   )  [virtual]
 

Handles the most recent event from the CrController.

Reimplemented from CrControllerObserver.

Reimplemented in CrHapticRotateTool, and CrHapticTranslateTool.

void CrTool::handleEventAction SoHandleEventAction *   )  [virtual]
 

Handles the event via the event action (UNUSED?).

Reimplemented from CrControllerObserver.

void CrTool::setController CrController  ) 
 

Designates the CrController to which this tool is attached.


Member Data Documentation

SoSeparator* CrTool::m_sep [protected]
 

Contains the tool's visual representation.

SoTransform* CrTool::m_transform [protected]
 

The transform is updated continuously by the controller.


The documentation for this class was generated from the following files:
Generated on Wed May 18 01:24:59 2005 for SculptDemo by  doxygen 1.4.3