41 typedef std::vector<osgUtil::LineSegmentIntersector::Intersection>
Intersections;
bool runNamedCallbackObjects(osg::Object *object, const std::string &name, osg::Parameters &inputParameters, osg::Parameters &outputParameters)
Call run(..) on named CallbackObjects attached to specified Object.
Definition Callback:187
BoundingBoxImpl< Vec3f > BoundingBoxf
Definition BoundingBox:251
BoundingSphered BoundingSphere
Definition BoundingSphere:308
std::vector< osg::ref_ptr< osg::Object > > Parameters
Definition Callback:130
Definition AlignmentSettings:23
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
General group node which maintains a list of children.
Definition Group:29
Base class for all internal nodes in the scene graph.
Definition Node:72
unsigned int NodeMask
This is a set of bits (flags) that represent the Node.
Definition Node:363
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
Base Event class.
Definition Event:27
Basic EventVisitor implementation for animating a scene.
Definition EventVisitor:42
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
Definition AlignmentSettings:26
Definition FrameSettings:25
Definition TextSettings:26
const osg::StateSet * getWidgetStateSet() const
Definition Widget:67
std::vector< osgUtil::LineSegmentIntersector::Intersection > Intersections
Definition Widget:41
virtual void traverse(osg::NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
osg::ref_ptr< AlignmentSettings > _alignmentSettings
Definition Widget:169
virtual void releaseGLObjects(osg::State *=0) const
resize all GLObjectBuffers.
virtual void leaveImplementation()
void setWidgetStateSet(osg::StateSet *stateset)
Set the WidgetStateSet is used internally by Widgets to manage state that decorates the subgraph.
Definition Widget:65
bool _hasEventFocus
Definition Widget:159
virtual osg::BoundingSphere computeBound() const
Compute the bounding sphere of the widget.
virtual void traverseImplementation(osg::NodeVisitor &nv)
void setFrameSettings(FrameSettings *textSettings)
Definition Widget:89
virtual void enter()
update any focus related graphics+state to the focused state.
virtual void setVisible(bool visible)
set the visibility of the widget.
Definition Widget:103
const osg::BoundingBoxf & getExtents() const
Definition Widget:79
osg::ref_ptr< Style > _style
Definition Widget:167
const AlignmentSettings * getAlignmentSettings() const
Definition Widget:87
virtual void setAutoFillBackground(bool enabled)
set whether the widget should fill the extents of its background.
Definition Widget:98
FrameSettings * getFrameSettings()
Definition Widget:90
std::map< int, osg::ref_ptr< osg::Node > > GraphicsSubgraphMap
Definition Widget:48
virtual void setExtents(const osg::BoundingBoxf &bb)
osg::ref_ptr< TextSettings > _textSettings
Definition Widget:171
bool _visible
Definition Widget:174
virtual bool getVisible() const
get the visibility of the widget.
Definition Widget:105
void setStyle(Style *style)
Definition Widget:81
const osg::Node * getGraphicsSubgraph(int orderNum) const
Get the const subgraph to be used to render the widget.
Definition Widget:55
void setAlignmentSettings(AlignmentSettings *alignmentSettings)
Definition Widget:85
osg::StateSet * getOrCreateWidgetStateSet()
Definition Widget:68
virtual bool handleImplementation(osgGA::EventVisitor *ev, osgGA::Event *event)
const FrameSettings * getFrameSettings() const
Definition Widget:91
bool runCallbacks(const std::string &name, osg::Parameters &inputParameters, osg::Parameters &outputParameters)
invoke all callbacks with specified names providing input and output parameters.
Definition Widget:133
osg::BoundingBoxf _extents
Definition Widget:165
virtual void setEnabled(bool enabled)
set whether the widget is enabled for user interaction.
Definition Widget:108
Widget(const Widget &widget, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
FocusBehaviour getFocusBehaviour() const
Definition Widget:120
virtual bool getEnabled() const
get whether the widget is enabled for user interaction.
Definition Widget:110
virtual bool computePositionInLocalCoordinates(osgGA::EventVisitor *ev, osgGA::GUIEventAdapter *event, osg::Vec3d &localPosition) const
Style * getStyle()
Definition Widget:82
void setFocusBehaviour(FocusBehaviour behaviour)
Definition Widget:119
bool _autoFillBackground
Definition Widget:172
GraphicsSubgraphMap & getGraphicsSubgraphMap()
Definition Widget:58
virtual void leave()
update any focus related graphics+state to the unfocused state.
FocusBehaviour
Definition Widget:113
@ FOCUS_FOLLOWS_POINTER
Definition Widget:115
@ CLICK_TO_FOCUS
Definition Widget:114
@ EVENT_DRIVEN_FOCUS_DISABLED
Definition Widget:116
virtual void setHasEventFocus(bool focus)
set whether the widget has focus or not.
const Style * getStyle() const
Definition Widget:83
void setGraphicsSubgraphMap(const GraphicsSubgraphMap &gsm)
Definition Widget:57
bool _graphicsInitialized
Definition Widget:160
virtual bool getAutoFillBackground() const
get whether the widget should fill the extents of its background.
Definition Widget:100
virtual bool handle(osgGA::EventVisitor *ev, osgGA::Event *event)
virtual void updateFocus(osg::NodeVisitor &nv)
update the focus according to events.
osg::Node * getGraphicsSubgraph(int orderNum)
Get the subgraph to be used to render the widget.
Definition Widget:53
bool _enabled
Definition Widget:175
osg::ref_ptr< osg::StateSet > _widgetStateSet
Definition Widget:163
FocusBehaviour _focusBehaviour
Definition Widget:158
const GraphicsSubgraphMap & getGraphicsSubgraphMap() const
Definition Widget:59
TextSettings * getTextSettings()
Definition Widget:94
virtual void enterImplementation()
bool runCallbacks(const std::string &name)
invoke all callbacks with specified names without any specified input or output parameters.
Definition Widget:136
virtual bool getHasEventFocus() const
get whether the widget has focus or not.
GraphicsSubgraphMap _graphicsSubgraphMap
Definition Widget:162
virtual void createGraphicsImplementation()
createGraphicsImplementation method that creates the subgraph that will render the widget and assigns...
virtual void createGraphics()
createGraphics entry method, calls either callback object named "createGraphics" or the createGraphic...
virtual bool computeIntersections(osgGA::EventVisitor *ev, osgGA::GUIEventAdapter *event, Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff) const
virtual ~Widget()
Definition Widget:156
void setTextSettings(TextSettings *textSettings)
Definition Widget:93
AlignmentSettings * getAlignmentSettings()
Definition Widget:86
virtual bool computeExtentsPositionInLocalCoordinates(osgGA::EventVisitor *ev, osgGA::GUIEventAdapter *event, osg::Vec3d &localPosition, bool withinExtents=true) const
osg::ref_ptr< FrameSettings > _frameSettings
Definition Widget:170
virtual void resizeGLObjectBuffers(unsigned int maxSize)
resize all GLObjectBuffers.
osg::StateSet * getWidgetStateSet()
Definition Widget:66
const TextSettings * getTextSettings() const
Definition Widget:95
void setGraphicsSubgraph(int orderNum, osg::Node *node)
Set the subgraph to be used to render the widget.
Definition Widget:51
#define OSGUI_EXPORT
Definition Export:40