OpenCOVER
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...
 
virtual bool update ()=0
 

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

◆ vruiIntersection()

vrui::vruiIntersection::vruiIntersection ( )

◆ ~vruiIntersection()

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

Member Function Documentation

◆ add()

void vrui::vruiIntersection::add ( vruiNode node,
coAction action 
)

◆ callActions()

void vrui::vruiIntersection::callActions ( vruiNode node,
vruiHit hit 
)
protected

◆ callMisses()

void vrui::vruiIntersection::callMisses ( )
protected

◆ frames()

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

◆ getActionName()

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

get the associated action name

Implemented in opencover::coIntersection.

◆ getClassName()

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

get the Element's classname

Implemented in opencover::coIntersection.

◆ getIntersector()

static vruiIntersection * vrui::vruiIntersection::getIntersector ( const std::string &  name)
static

◆ getIntersectorForAction()

static vruiIntersection * vrui::vruiIntersection::getIntersectorForAction ( const std::string &  actionName)
static

◆ intersect()

virtual void vrui::vruiIntersection::intersect ( )
protectedpure virtual

Implemented in opencover::coIntersection.

◆ intersectors()

static std::vector< vruiIntersection * > & vrui::vruiIntersection::intersectors ( )
staticprotected

◆ remove() [1/2]

void vrui::vruiIntersection::remove ( coAction action)

◆ remove() [2/2]

void vrui::vruiIntersection::remove ( vruiNode node)

◆ update()

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

◆ frameIndex

int vrui::vruiIntersection::frameIndex
protected

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