dart
|
Public Member Functions | |
ShapeFrameNode (dart::dynamics::ShapeFrame *frame, WorldNode *worldNode) | |
Create a ShapeFrameNode. More... | |
dart::dynamics::ShapeFrame * | getShapeFrame (bool checkUtilization=false) |
Pointer to the ShapeFrame associated with this ShapeFrameNode. | |
const dart::dynamics::ShapeFrame * | getShapeFrame (bool checkUtilization=false) const |
Pointer to the ShapeFrame associated with this ShapeFrameNode. | |
WorldNode * | getWorldNode () |
const WorldNode * | getWorldNode () const |
void | refresh (bool shortCircuitIfUtilized=false) |
Update all rendering data for this ShapeFrame. More... | |
bool | wasUtilized () const |
True iff this ShapeFrameNode has been utilized on the latest update. | |
void | clearUtilization () |
Set mUtilized to false. | |
Protected Member Functions | |
void | refreshShapeNode (const std::shared_ptr< dart::dynamics::Shape > &shape) |
void | createShapeNode (const std::shared_ptr< dart::dynamics::Shape > &shape) |
Protected Attributes | |
dart::dynamics::ShapeFrame * | mShapeFrame |
Pointer to the ShapeFrame that this ShapeFrameNode is associated with. | |
WorldNode * | mWorldNode |
Pointer to the WorldNode that this ShapeFrameNode belongs to. | |
render::ShapeNode * | mRenderShapeNode |
bool | mUtilized |
True iff this ShapeFrameNode has been utilized on the latest update. More... | |
dart::gui::osg::ShapeFrameNode::ShapeFrameNode | ( | dart::dynamics::ShapeFrame * | frame, |
WorldNode * | worldNode | ||
) |
Create a ShapeFrameNode.
If recursive is set to true, it will also create nodes for all child Entities and child Frames
void dart::gui::osg::ShapeFrameNode::refresh | ( | bool | shortCircuitIfUtilized = false | ) |
Update all rendering data for this ShapeFrame.
If shortCircuitIfUtilized is true, this will skip the refresh process if mUtilized is set to true. clearUtilization() needs to be called before this function if short circuiting is going to be used.
|
protected |
True iff this ShapeFrameNode 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.