OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgGA::Widget Class Reference
Inheritance diagram for osgGA::Widget:
Inheritance graph
[legend]

List of all members.

Public Types

enum  FocusBehaviour { CLICK_TO_FOCUS, FOCUS_FOLLOWS_POINTER, EVENT_DRIVEN_FOCUS_DISABLED }

Public Member Functions

 Widget ()
 Widget (const Widget &tfw, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgGA, Widget)
virtual void traverse (osg::NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.
virtual void traverseImplementation (osg::NodeVisitor &nv)
virtual bool handle (osgGA::EventVisitor *ev, osgGA::Event *event)
virtual bool handleImplementation (osgGA::EventVisitor *ev, osgGA::Event *event)
virtual bool computePositionInLocalCoordinates (osgGA::EventVisitor *ev, osgGA::GUIEventAdapter *event, osg::Vec3 &localPosition) const
virtual void createGraphics ()
virtual void createGraphicsImplementation ()
virtual void setExtents (const osg::BoundingBoxf &bb)
const osg::BoundingBoxfgetExtents () const
void setFocusBehaviour (FocusBehaviour behaviour)
FocusBehaviour getFocusBehaviour () const
virtual void updateFocus (osg::NodeVisitor &nv)
 update the focus according to events.
virtual void setHasEventFocus (bool focus)
 set whether the widget has focus or not.
virtual bool getHasEventFocus () const
 get whether the widget has focus or not.
virtual osg::BoundingSphere computeBound () const
 Compute the bounding sphere around Node's geometry or children.
virtual void enter ()
 update any focus related graphics+state to the focused state.
virtual void enterImplementation ()
virtual void leave ()
 update any focus related graphics+state to the unfocused state.
virtual void leaveImplementation ()

Protected Member Functions

virtual ~Widget ()

Protected Attributes

FocusBehaviour _focusBehaviour
bool _hasEventFocus
bool _graphicsInitialized
osg::BoundingBoxf _extents

Member Enumeration Documentation

Enumerator:
CLICK_TO_FOCUS 
FOCUS_FOLLOWS_POINTER 
EVENT_DRIVEN_FOCUS_DISABLED 

Constructor & Destructor Documentation

osgGA::Widget::Widget ( const Widget tfw,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgGA::Widget::~Widget ( ) [inline, protected, virtual]

Member Function Documentation

virtual osg::BoundingSphere osgGA::Widget::computeBound ( ) const [virtual]

Compute the bounding sphere around Node's geometry or children.

This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().

Reimplemented from osg::Group.

virtual bool osgGA::Widget::computePositionInLocalCoordinates ( osgGA::EventVisitor ev,
osgGA::GUIEventAdapter event,
osg::Vec3 localPosition 
) const [virtual]
virtual void osgGA::Widget::createGraphics ( ) [virtual]
virtual void osgGA::Widget::createGraphicsImplementation ( ) [virtual]
virtual void osgGA::Widget::enter ( ) [virtual]

update any focus related graphics+state to the focused state.

virtual void osgGA::Widget::enterImplementation ( ) [virtual]
const osg::BoundingBoxf& osgGA::Widget::getExtents ( ) const [inline]
virtual bool osgGA::Widget::getHasEventFocus ( ) const [virtual]

get whether the widget has focus or not.

virtual bool osgGA::Widget::handle ( osgGA::EventVisitor ev,
osgGA::Event event 
) [virtual]
virtual bool osgGA::Widget::handleImplementation ( osgGA::EventVisitor ev,
osgGA::Event event 
) [virtual]
virtual void osgGA::Widget::leave ( ) [virtual]

update any focus related graphics+state to the unfocused state.

virtual void osgGA::Widget::leaveImplementation ( ) [virtual]
osgGA::Widget::META_Node ( osgGA  ,
Widget   
)
virtual void osgGA::Widget::setExtents ( const osg::BoundingBoxf bb) [virtual]
void osgGA::Widget::setFocusBehaviour ( FocusBehaviour  behaviour) [inline]
virtual void osgGA::Widget::setHasEventFocus ( bool  focus) [virtual]

set whether the widget has focus or not.

virtual void osgGA::Widget::traverse ( osg::NodeVisitor ) [virtual]

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Group.

virtual void osgGA::Widget::traverseImplementation ( osg::NodeVisitor nv) [virtual]
virtual void osgGA::Widget::updateFocus ( osg::NodeVisitor nv) [virtual]

update the focus according to events.


Member Data Documentation


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

osg logo
Generated at Tue Dec 8 2015 00:16:47 for the OpenSceneGraph by doxygen 1.7.6.1.