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

#include <vruiIntersection.h>

Inheritance diagram for vrui::vruiIntersection:
Inheritance graph
[legend]
Collaboration diagram for vrui::vruiIntersection:
Collaboration graph
[legend]

Public Member Functions

void add (vruiNode *node, coAction *action)
 
void remove (vruiNode *node)
 
 vruiIntersection ()
 
virtual ~vruiIntersection ()
 
bool update ()
 
void remove (coAction *action)
 
virtual const char * getClassName () const =0
 get the Element's classname More...
 
virtual const char * getActionName () const =0
 get the associated action name More...
 
- Public Member Functions inherited from vrui::coUpdateable
 coUpdateable ()
 Constructor. More...
 
virtual ~coUpdateable ()
 Destructor. More...
 

Static Public Member Functions

static vruiIntersectiongetIntersectorForAction (const std::string &actionName)
 
static vruiIntersectiongetIntersector (const std::string &name)
 

Protected Member Functions

virtual void intersect ()=0
 
void callMisses ()
 
void callActions (vruiNode *node, vruiHit *hit)
 

Static Protected Member Functions

static std::vector< int * > & frames ()
 
static std::vector
< vruiIntersection * > & 
intersectors ()
 

Protected Attributes

int frameIndex
 

Constructor & Destructor Documentation

vrui::vruiIntersection::vruiIntersection ( )
virtual vrui::vruiIntersection::~vruiIntersection ( )
virtual

Member Function Documentation

void vrui::vruiIntersection::add ( vruiNode node,
coAction action 
)
void vrui::vruiIntersection::callActions ( vruiNode node,
vruiHit hit 
)
protected
void vrui::vruiIntersection::callMisses ( )
protected
static std::vector<int *>& vrui::vruiIntersection::frames ( )
staticprotected
virtual const char* vrui::vruiIntersection::getActionName ( ) const
pure virtual

get the associated action name

Implemented in opencover::coIntersection.

virtual const char* vrui::vruiIntersection::getClassName ( ) const
pure virtual

get the Element's classname

Implemented in opencover::coIntersection.

static vruiIntersection* vrui::vruiIntersection::getIntersector ( const std::string &  name)
static
static vruiIntersection* vrui::vruiIntersection::getIntersectorForAction ( const std::string &  actionName)
static
virtual void vrui::vruiIntersection::intersect ( )
protectedpure virtual

Implemented in opencover::coIntersection.

static std::vector<vruiIntersection *>& vrui::vruiIntersection::intersectors ( )
staticprotected
void vrui::vruiIntersection::remove ( vruiNode node)
void vrui::vruiIntersection::remove ( coAction action)
bool vrui::vruiIntersection::update ( )
virtual

this method is called once per frame as long as it returns true. as soon as it returns false, it is removed from the update manager and not called again. the update method is called prior to preFrame();

Implements vrui::coUpdateable.

Member Data Documentation

int vrui::vruiIntersection::frameIndex
protected

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