OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
vrui::coAction Class Referenceabstract

#include <coAction.h>

Inheritance diagram for vrui::coAction:
Inheritance graph
[legend]

Public Types

enum  Result { ACTION_DONE = 0x00, ACTION_CALL_ON_MISS = 0x01, ACTION_UNDEF = 0x02 }
 

Public Member Functions

 coAction ()
 Constructor. More...
 
virtual ~coAction ()
 Destructor. More...
 
virtual int hit (vruiHit *hit)=0
 
virtual void miss ()
 
void setFrame (unsigned int frame)
 INTERNAL set the framecounter (used to produce the miss call) More...
 
unsigned int getFrame () const
 INTERNAL get the framecounter (used to produce the miss call) More...
 
void setNode (vruiNode *)
 INTERNAL set the node this action belongs to. More...
 
void addChild (coAction *)
 INTERNAL add a child action. More...
 
virtual int hitAll (vruiHit *hit)
 INTERNAL same as miss/hit, but do it for all children as well. More...
 
virtual void missAll ()
 INTERNAL same as miss/hit, but do it for all children as well. More...
 

Protected Attributes

std::string actionName
 

Detailed Description

classes that are derived from coAction can be attached tho the scenegraph and will be called when user interacts with the object

Member Enumeration Documentation

Enumerator
ACTION_DONE 
ACTION_CALL_ON_MISS 
ACTION_UNDEF 

Constructor & Destructor Documentation

vrui::coAction::coAction ( )

Constructor.

virtual vrui::coAction::~coAction ( )
virtual

Destructor.

Member Function Documentation

void vrui::coAction::addChild ( coAction )

INTERNAL add a child action.

unsigned int vrui::coAction::getFrame ( ) const
inline

INTERNAL get the framecounter (used to produce the miss call)

virtual int vrui::coAction::hit ( vruiHit hit)
pure virtual
virtual int vrui::coAction::hitAll ( vruiHit hit)
virtual

INTERNAL same as miss/hit, but do it for all children as well.

virtual void vrui::coAction::miss ( )
virtual
virtual void vrui::coAction::missAll ( )
virtual

INTERNAL same as miss/hit, but do it for all children as well.

void vrui::coAction::setFrame ( unsigned int  frame)
inline

INTERNAL set the framecounter (used to produce the miss call)

void vrui::coAction::setNode ( vruiNode )

INTERNAL set the node this action belongs to.

Member Data Documentation

std::string vrui::coAction::actionName
protected

name of this action this can be used to distinguish betwenn different types of actions like touch and intersection actions


The documentation for this class was generated from the following file: