DART
6.7.3
|
#include <ShapeNode.hpp>
Public Member Functions | |
ShapeNode (std::shared_ptr< dart::dynamics::Shape > shape, ShapeFrameNode *parentNode, ::osg::Node *node) | |
virtual | ~ShapeNode () |
const std::shared_ptr< dart::dynamics::Shape > & | getShape () const |
Pointer to the Shape associated with this ShapeNode. More... | |
const dart::dynamics::ShapeFrame * | getShapeFrame () const |
dart::dynamics::VisualAspect * | getVisualAspect () |
const dart::dynamics::VisualAspect * | getVisualAspect () const |
::osg::Node * | getNode () |
Cast this ShapeNode into an osg::Node. More... | |
const ::osg::Node * | getNode () const |
Cast this ShapeNode into an osg::Node. More... | |
ShapeFrameNode * | getParentShapeFrameNode () |
Pointer to the parent EntityNode of this ShapeNode. More... | |
const ShapeFrameNode * | getParentShapeFrameNode () const |
Pointer to the parent EntityNode of this ShapeNode. More... | |
virtual void | refresh ()=0 |
Update all rendering data for this ShapeNode. More... | |
bool | wasUtilized () const |
True iff this ShapeNode has been utilized on the latest update. More... | |
void | clearUtilization () |
Set mUtilized to false. More... | |
Protected Attributes | |
const std::shared_ptr< dart::dynamics::Shape > | mShape |
Pointer to the Shape associated with this ShapeNode. More... | |
dart::dynamics::ShapeFrame * | mShapeFrame |
Pointer to the SimpleFrame associated with this ShapeNode. More... | |
dart::dynamics::VisualAspect * | mVisualAspect |
Pointer to the VisualAspect associated with this ShapeNode. More... | |
ShapeFrameNode * | mParentShapeFrameNode |
Pointer to the parent ShapeFrameNode of this ShapeNode. More... | |
::osg::Node * | mNode |
Should generally be equal to 'this'. More... | |
bool | mUtilized |
True iff this ShapeNode has been utilized on the latest update. More... | |
dart::gui::osg::render::ShapeNode::ShapeNode | ( | std::shared_ptr< dart::dynamics::Shape > | shape, |
ShapeFrameNode * | parentNode, | ||
::osg::Node * | node | ||
) |
|
virtual |
void dart::gui::osg::render::ShapeNode::clearUtilization | ( | ) |
Set mUtilized to false.
osg::Node * dart::gui::osg::render::ShapeNode::getNode | ( | ) |
Cast this ShapeNode into an osg::Node.
const ::osg::Node * dart::gui::osg::render::ShapeNode::getNode | ( | ) | const |
Cast this ShapeNode into an osg::Node.
ShapeFrameNode * dart::gui::osg::render::ShapeNode::getParentShapeFrameNode | ( | ) |
Pointer to the parent EntityNode of this ShapeNode.
const ShapeFrameNode * dart::gui::osg::render::ShapeNode::getParentShapeFrameNode | ( | ) | const |
Pointer to the parent EntityNode of this ShapeNode.
const std::shared_ptr< dart::dynamics::Shape > & dart::gui::osg::render::ShapeNode::getShape | ( | ) | const |
Pointer to the Shape associated with this ShapeNode.
const dart::dynamics::ShapeFrame * dart::gui::osg::render::ShapeNode::getShapeFrame | ( | ) | const |
dart::dynamics::VisualAspect * dart::gui::osg::render::ShapeNode::getVisualAspect | ( | ) |
const dart::dynamics::VisualAspect * dart::gui::osg::render::ShapeNode::getVisualAspect | ( | ) | const |
|
pure virtual |
Update all rendering data for this ShapeNode.
Implemented in dart::gui::osg::render::WarningShapeNode, dart::gui::osg::render::SphereShapeNode, dart::gui::osg::render::SphereShapeGeode, dart::gui::osg::render::SoftMeshShapeNode, dart::gui::osg::render::SoftMeshShapeGeode, dart::gui::osg::render::PlaneShapeNode, dart::gui::osg::render::PlaneShapeGeode, dart::gui::osg::render::MultiSphereShapeNode, dart::gui::osg::render::MultiSphereShapeGeode, dart::gui::osg::render::MeshShapeNode, dart::gui::osg::render::MeshShapeGeometry, dart::gui::osg::render::MeshShapeGeode, dart::gui::osg::render::osgAiNode, dart::gui::osg::render::LineSegmentShapeNode, dart::gui::osg::render::LineSegmentShapeGeode, dart::gui::osg::render::EllipsoidShapeNode, dart::gui::osg::render::EllipsoidShapeGeode, dart::gui::osg::render::CylinderShapeNode, dart::gui::osg::render::CylinderShapeGeode, dart::gui::osg::render::ConeShapeNode, dart::gui::osg::render::ConeShapeGeode, dart::gui::osg::render::CapsuleShapeNode, dart::gui::osg::render::CapsuleShapeGeode, dart::gui::osg::render::BoxShapeNode, and dart::gui::osg::render::BoxShapeGeode.
bool dart::gui::osg::render::ShapeNode::wasUtilized | ( | ) | const |
True iff this ShapeNode has been utilized on the latest update.
|
protected |
Should generally be equal to 'this'.
|
protected |
Pointer to the parent ShapeFrameNode of this ShapeNode.
|
protected |
Pointer to the Shape associated with this ShapeNode.
|
protected |
Pointer to the SimpleFrame associated with this ShapeNode.
|
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.
|
protected |
Pointer to the VisualAspect associated with this ShapeNode.