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

CrControllerObserver Class Reference

Specialized observer for CrController devices. More...

#include <CrControllerObserver.h>

Inheritance diagram for CrControllerObserver:

Observer CrTool CrHapticRotateTool CrHapticTranslateTool List of all members.

Public Member Functions

 CrControllerObserver (CrController *controller=NULL)
 Parameterized constructor requires a CrController.
virtual ~CrControllerObserver ()
 Virtual destructor.
virtual void handleEvent (SoEvent *)
 Manually called to directly send an event to the tool.
virtual void handleEventAction (SoHandleEventAction *)
 Provides an inherited function available to HandleEventCB().
virtual void update (Subject *)
 Triggered notification calls the specialized functions.

Static Public Member Functions

static void HandleEventCB (void *, SoAction *)
 Callback function assigned to the SoHandleEventAction.

Protected Attributes

CrControllerm_controller
 Controller device observed by this object.

Detailed Description

Specialized observer for CrController devices.

Author:
Chris Scharver
Date
2004/06/07 16:56:43
Revision
1.8
The general Observer Pattern has performance issues if Observers must pull state information from the Subject. CrController device events should be handled quickly, so this class implements specialized member functions to which the CrController may push SoEvent information.

See also:
CrController, CrTool


Constructor & Destructor Documentation

CrControllerObserver::CrControllerObserver CrController controller = NULL  ) 
 

Parameterized constructor requires a CrController.

CrControllerObserver::~CrControllerObserver  )  [virtual]
 

Virtual destructor.


Member Function Documentation

void CrControllerObserver::handleEvent SoEvent *   )  [virtual]
 

Manually called to directly send an event to the tool.

Reimplemented in CrHapticRotateTool, CrHapticTranslateTool, and CrTool.

void CrControllerObserver::handleEventAction SoHandleEventAction *   )  [virtual]
 

Provides an inherited function available to HandleEventCB().

Reimplemented in CrTool.

void CrControllerObserver::HandleEventCB void *  ,
SoAction * 
[static]
 

Callback function assigned to the SoHandleEventAction.

void CrControllerObserver::update Subject  )  [virtual]
 

Triggered notification calls the specialized functions.

Implements Observer.


Member Data Documentation

CrController* CrControllerObserver::m_controller [protected]
 

Controller device observed by this object.


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