CEDRIC  Revision_backup-2009-02
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Selectable Class Referenceabstract

#include <Selectable.h>

Inheritance diagram for Selectable:
PickingHandler::Pickable PhastNode

Public Member Functions

 Selectable ()
 
virtual ~Selectable ()
 
virtual bool onSelect (bool selected)=0
 
virtual bool onHighlight (bool highlighted)=0
 
virtual const std::string & toolTip (osg::Node *)
 
- Public Member Functions inherited from PickingHandler::Pickable
 Pickable ()
 
virtual ~Pickable ()
 
virtual bool isPickable (osg::Node *)
 

Static Public Member Functions

static bool selectCurrent (bool select=true)
 
static bool toggleCurrent ()
 
static void resetCurrent ()
 
static Selectable * getCurrent ()
 

Protected Member Functions

bool isSelected () const
 
Pickable implementation
virtual void onMouseOver (const osgGA::GUIEventAdapter *ea, osg::Node *)
 
virtual void onMouseEnter (const osgGA::GUIEventAdapter *ea, osg::Node *)
 
virtual void onMouseLeave (const osgGA::GUIEventAdapter *ea)
 
- Protected Member Functions inherited from PickingHandler::Pickable
void setToolTip (std::string text)
 This may be used for showing a tooltip. More...
 
void setToolTipPosition (float x, float y, float z)
 

Constructor & Destructor Documentation

Selectable::Selectable ( )
inline
virtual Selectable::~Selectable ( )
inlinevirtual

Member Function Documentation

static Selectable* Selectable::getCurrent ( )
inlinestatic
bool Selectable::isSelected ( ) const
inlineprotected
virtual bool Selectable::onHighlight ( bool  highlighted)
pure virtual

Implemented in PhastNode.

void Selectable::onMouseEnter ( const osgGA::GUIEventAdapter *  ea,
osg::Node *  node 
)
protectedvirtual
void Selectable::onMouseLeave ( const osgGA::GUIEventAdapter *  ea)
protectedvirtual
void Selectable::onMouseOver ( const osgGA::GUIEventAdapter *  ea,
osg::Node *  node 
)
protectedvirtual
virtual bool Selectable::onSelect ( bool  selected)
pure virtual

Implemented in PhastNode.

static void Selectable::resetCurrent ( )
inlinestatic
bool Selectable::selectCurrent ( bool  select = true)
static
bool Selectable::toggleCurrent ( )
static
virtual const std::string& Selectable::toolTip ( osg::Node *  )
inlinevirtual

Reimplemented in PhastNode.