dart
Public Member Functions | Protected Attributes | List of all members
dart::gui::osg::render::ShapeNode Class Referenceabstract
Inheritance diagram for dart::gui::osg::render::ShapeNode:
Inheritance graph
[legend]
Collaboration diagram for dart::gui::osg::render::ShapeNode:
Collaboration graph
[legend]

Public Member Functions

 ShapeNode (std::shared_ptr< dart::dynamics::Shape > shape, ShapeFrameNode *parentNode, ::osg::Node *node)
 
const std::shared_ptr< dart::dynamics::Shape > & getShape () const
 Pointer to the Shape associated with this ShapeNode.
 
const dart::dynamics::ShapeFramegetShapeFrame () const
 
dart::dynamics::VisualAspectgetVisualAspect ()
 
const dart::dynamics::VisualAspectgetVisualAspect () const
 
::osg::Node * getNode ()
 Cast this ShapeNode into an osg::Node.
 
const ::osg::Node * getNode () const
 Cast this ShapeNode into an osg::Node.
 
ShapeFrameNodegetParentShapeFrameNode ()
 Pointer to the parent EntityNode of this ShapeNode.
 
const ShapeFrameNodegetParentShapeFrameNode () const
 Pointer to the parent EntityNode of this ShapeNode.
 
virtual void refresh ()=0
 Update all rendering data for this ShapeNode.
 
bool wasUtilized () const
 True iff this ShapeNode has been utilized on the latest update.
 
void clearUtilization ()
 Set mUtilized to false.
 

Protected Attributes

const std::shared_ptr< dart::dynamics::ShapemShape
 Pointer to the Shape associated with this ShapeNode.
 
dart::dynamics::ShapeFramemShapeFrame
 Pointer to the SimpleFrame associated with this ShapeNode.
 
dart::dynamics::VisualAspectmVisualAspect
 Pointer to the VisualAspect associated with this ShapeNode.
 
ShapeFrameNodemParentShapeFrameNode
 Pointer to the parent ShapeFrameNode of this ShapeNode.
 
::osg::Node * mNode
 Should generally be equal to 'this'.
 
bool mUtilized
 True iff this ShapeNode has been utilized on the latest update. More...
 

Member Data Documentation

◆ mUtilized

bool dart::gui::osg::render::ShapeNode::mUtilized
protected

True iff this ShapeNode has been utilized on the latest update.

If it has not, that is an indication that it is no longer being used and should be deleted.


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