OpenSceneGraph
3.4.0
|
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 ©op=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::BoundingBoxf & | getExtents () 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 |
osgGA::Widget::Widget | ( | const Widget & | tfw, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osgGA::Widget::~Widget | ( | ) | [inline, protected, virtual] |
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] |
FocusBehaviour osgGA::Widget::getFocusBehaviour | ( | ) | 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.
osg::BoundingBoxf osgGA::Widget::_extents [protected] |
FocusBehaviour osgGA::Widget::_focusBehaviour [protected] |
bool osgGA::Widget::_graphicsInitialized [protected] |
bool osgGA::Widget::_hasEventFocus [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:47 for the OpenSceneGraph by doxygen 1.7.6.1. |