OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
opencover::coVRSelectionManager Class Reference

#include <coVRSelectionManager.h>

Inheritance diagram for opencover::coVRSelectionManager:
Inheritance graph
[legend]
Collaboration diagram for opencover::coVRSelectionManager:
Collaboration graph
[legend]

Public Types

enum  HelperNodeType { MOVE, SHOWHIDE, SELECTION, ANNOTATION }
 

Public Member Functions

 ~coVRSelectionManager ()
 
void addListener (coSelectionListener *)
 
void removeListener (coSelectionListener *)
 
void selectionChanged ()
 
void pickedObjChanged ()
 
void removeNode (osg::Node *)
 
osg::BoundingSphere getBoundingSphere (osg::Node *)
 
virtual bool update ()
 
std::list< osg::ref_ptr
< osg::Node > > 
getSelectionList ()
 
std::list< osg::ref_ptr
< osg::Group > > 
getSelectedParentList ()
 
void addSelection (osg::Group *parent, osg::Node *selectedNode, bool send=true)
 
void receiveAdd (covise::TokenBuffer &messageData)
 
void receiveClear ()
 
void clearSelection (bool send=true)
 
void setSelectionColor (float R, float G, float B)
 
void setSelectionWire (int)
 
void setSelectionOnOff (int)
 
void showhideSelection (int)
 
- Public Member Functions inherited from vrui::coUpdateable
 coUpdateable ()
 Constructor. More...
 
virtual ~coUpdateable ()
 Destructor. More...
 

Static Public Member Functions

static coVRSelectionManagerinstance ()
 
static void insertHelperNode (osg::Group *parent, osg::Node *child, osg::Group *insertNode, HelperNodeType type, bool show=true)
 
static osg::Group * getHelperNode (osg::Group *parent, osg::Node *child, HelperNodeType type)
 
static bool isHelperNode (osg::Node *)
 
static osg::Node * validPath (std::string)
 
static std::string generatePath (osg::Node *)
 
static std::string generateNames (osg::Node *)
 
static void markAsHelperNode (osg::Node *)
 

Public Attributes

vrui::coNavInteractionselectionInteractionA
 

Member Enumeration Documentation

Enumerator
MOVE 
SHOWHIDE 
SELECTION 
ANNOTATION 

Constructor & Destructor Documentation

opencover::coVRSelectionManager::~coVRSelectionManager ( )

Member Function Documentation

void opencover::coVRSelectionManager::addListener ( coSelectionListener )
void opencover::coVRSelectionManager::addSelection ( osg::Group *  parent,
osg::Node *  selectedNode,
bool  send = true 
)
void opencover::coVRSelectionManager::clearSelection ( bool  send = true)
static std::string opencover::coVRSelectionManager::generateNames ( osg::Node *  )
static
static std::string opencover::coVRSelectionManager::generatePath ( osg::Node *  )
static
osg::BoundingSphere opencover::coVRSelectionManager::getBoundingSphere ( osg::Node *  )
static osg::Group* opencover::coVRSelectionManager::getHelperNode ( osg::Group *  parent,
osg::Node *  child,
HelperNodeType  type 
)
static
std::list<osg::ref_ptr<osg::Group> > opencover::coVRSelectionManager::getSelectedParentList ( )
inline
std::list<osg::ref_ptr<osg::Node> > opencover::coVRSelectionManager::getSelectionList ( )
inline
static void opencover::coVRSelectionManager::insertHelperNode ( osg::Group *  parent,
osg::Node *  child,
osg::Group *  insertNode,
HelperNodeType  type,
bool  show = true 
)
static
static coVRSelectionManager* opencover::coVRSelectionManager::instance ( )
static
static bool opencover::coVRSelectionManager::isHelperNode ( osg::Node *  )
static
static void opencover::coVRSelectionManager::markAsHelperNode ( osg::Node *  )
static
void opencover::coVRSelectionManager::pickedObjChanged ( )
void opencover::coVRSelectionManager::receiveAdd ( covise::TokenBuffer &  messageData)
void opencover::coVRSelectionManager::receiveClear ( )
void opencover::coVRSelectionManager::removeListener ( coSelectionListener )
void opencover::coVRSelectionManager::removeNode ( osg::Node *  )
void opencover::coVRSelectionManager::selectionChanged ( )
void opencover::coVRSelectionManager::setSelectionColor ( float  R,
float  G,
float  B 
)
void opencover::coVRSelectionManager::setSelectionOnOff ( int  )
void opencover::coVRSelectionManager::setSelectionWire ( int  )
void opencover::coVRSelectionManager::showhideSelection ( int  )
virtual bool opencover::coVRSelectionManager::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.

static osg::Node* opencover::coVRSelectionManager::validPath ( std::string  )
static

Member Data Documentation

vrui::coNavInteraction* opencover::coVRSelectionManager::selectionInteractionA

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