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

#include <BoxSelection.h>

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

Public Member Functions

 BoxSelection (vrui::coRowMenu *, const char *name, const char *label)
 
 ~BoxSelection ()
 
BoxSelectioninstance ()
 
void registerInteractionFinishedCallback (void(*interactionFinished)())
 
void unregisterInteractionFinishedCallback ()
 
void setMenuListener (vrui::coMenuListener *)
 
vrui::coMenuListenergetMenuListener () const
 
vrui::coSubMenuItemgetSubMenu () const
 
vrui::coCheckboxMenuItemgetCheckbox () const
 
bool getCheckboxState () const
 
void getBox (float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax)
 
void update (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
 
- Public Member Functions inherited from vrui::coMenuListener
virtual ~coMenuListener ()
 
virtual void menuEvent (coMenuItem *menuItem)
 
virtual void menuPressEvent (coMenuItem *menuItem)
 
virtual void menuReleaseEvent (coMenuItem *menuItem)
 
- Public Member Functions inherited from vrui::coMenuItem
 coMenuItem (const std::string &name)
 
virtual ~coMenuItem ()
 
virtual coMenuListenergetMenuListener ()
 
virtual void setParentMenu (coMenu *parent)
 
virtual void setVisible (bool visible)
 
virtual bool isVisible () const
 
virtual void setAttachment (int)
 sets the attachment border More...
 
virtual const char * getName () const
 
virtual coUIElementgetUIElement ()
 
virtual coMenuItemgetTwin ()
 
virtual void setTwin (coMenuItem *twin)
 get the twin MenuItem More...
 
virtual bool updateContentBool (bool)
 set the twin MenuItem More...
 
virtual bool updateContentPressed ()
 for boolean state transfers More...
 
virtual bool updateContentReleased ()
 for boolean state transfers More...
 
virtual bool updateContentInt (int)
 for boolean state transfers More...
 
virtual bool updateContentFloat (float)
 for discrete state transfers More...
 
virtual bool updateContentRange (float, float, float, bool, float)
 for floating point state transfers between fixed boundaries More...
 
virtual bool updateContentPointer (void *)
 
virtual const char * getClassName () const
 The 'updateContent()' methods are activated if the item's content should be changed from outside. The proper reaction is to transfer the new content into the item's internal state and update its representation immediately.
Several content types are known, the item has to convert or ignore them depending on it's own content.
These methods are to be called by the 'twin' item (see 'myTwin' attribute).
The return value indicates if the update was sucessful (accepted type, etc...). More...
 
virtual bool isOfClassName (const char *) const
 check if the Element or any ancestor is this classname More...
 
coMenugetParentMenu ()
 get my parent menu More...
 
void setName (const std::string &newName, bool updateTwins=true)
 set my name - items with labels must call this when changing label More...
 
virtual void setActive (bool a)
 functions activates or deactivates the item More...
 
virtual bool getActive ()
 return if item is active More...
 
virtual void setLabel (const std::string &newName)
 this function may be overloaded - it is called by setName() More...
 
virtual void selected (bool select)
 MenuItem is selected via joystick. More...
 
virtual void doActionPress ()
 Action is called via joystick. More...
 
virtual void doActionRelease ()
 Action is called via joystick. More...
 
virtual void doSecondActionPress ()
 second Action for Item More...
 
virtual void doSecondActionRelease ()
 second Action for Item More...
 

Additional Inherited Members

- Protected Attributes inherited from vrui::coMenuItem
bool visible
 
coMenumyMenu
 this menu item More...
 
coMenuListenerlistener
 on menu selection More...
 
std::string myName
 symbolic name, or displayed as label) More...
 
coMenuItemmyTwin
 pointer to a cloned 'twin' version (toolbar/menu) of this item. On changes the current content state should be forwarded to the twin so it can update is representation to it. (see 'updateContent()' methods) More...
 
bool active_
 flag if item is active More...
 

Constructor & Destructor Documentation

opencover::BoxSelection::BoxSelection ( vrui::coRowMenu ,
const char *  name,
const char *  label 
)
opencover::BoxSelection::~BoxSelection ( )

Member Function Documentation

void opencover::BoxSelection::getBox ( float &  xmin,
float &  ymin,
float &  zmin,
float &  xmax,
float &  ymax,
float &  zmax 
)
vrui::coCheckboxMenuItem* opencover::BoxSelection::getCheckbox ( ) const
bool opencover::BoxSelection::getCheckboxState ( ) const
vrui::coMenuListener* opencover::BoxSelection::getMenuListener ( ) const
vrui::coSubMenuItem* opencover::BoxSelection::getSubMenu ( ) const
BoxSelection* opencover::BoxSelection::instance ( )
void opencover::BoxSelection::registerInteractionFinishedCallback ( void(*)()  interactionFinished)
void opencover::BoxSelection::setMenuListener ( vrui::coMenuListener )
virtual

Reimplemented from vrui::coMenuItem.

void opencover::BoxSelection::unregisterInteractionFinishedCallback ( )
void opencover::BoxSelection::update ( float  xmin,
float  ymin,
float  zmin,
float  xmax,
float  ymax,
float  zmax 
)

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