DART  6.7.3
dart::gui::osg::render::MeshShapeGeometry Class Reference
Inheritance diagram for dart::gui::osg::render::MeshShapeGeometry:
dart::gui::osg::render::ShapeNode

Public Member Functions

 MeshShapeGeometry (dart::dynamics::MeshShape *shape, ShapeFrameNode *parentShapeFrame, MeshShapeNode *parentNode, MeshShapeGeode *parentGeode, aiMesh *mesh)
 
void refresh ()
 Update all rendering data for this ShapeNode. More...
 
void extractData (bool firstTime)
 
const std::shared_ptr< dart::dynamics::Shape > & getShape () const
 Pointer to the Shape associated with this ShapeNode. More...
 
const dart::dynamics::ShapeFramegetShapeFrame () const
 
dart::dynamics::VisualAspectgetVisualAspect ()
 
const dart::dynamics::VisualAspectgetVisualAspect () 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...
 
ShapeFrameNodegetParentShapeFrameNode ()
 Pointer to the parent EntityNode of this ShapeNode. More...
 
const ShapeFrameNodegetParentShapeFrameNode () const
 Pointer to the parent EntityNode of 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 Member Functions

virtual ~MeshShapeGeometry ()
 

Protected Attributes

::osg::ref_ptr<::osg::Vec3Array > mVertices
 
::osg::ref_ptr<::osg::Vec3Array > mNormals
 
::osg::ref_ptr<::osg::Vec4Array > mColors
 
dart::dynamics::MeshShapemMeshShape
 
const aiMesh * mAiMesh
 
MeshShapeNodemMainNode
 
const std::shared_ptr< dart::dynamics::ShapemShape
 Pointer to the Shape associated with this ShapeNode. More...
 
dart::dynamics::ShapeFramemShapeFrame
 Pointer to the SimpleFrame associated with this ShapeNode. More...
 
dart::dynamics::VisualAspectmVisualAspect
 Pointer to the VisualAspect associated with this ShapeNode. More...
 
ShapeFrameNodemParentShapeFrameNode
 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...
 

Constructor & Destructor Documentation

◆ MeshShapeGeometry()

dart::gui::osg::render::MeshShapeGeometry::MeshShapeGeometry ( dart::dynamics::MeshShape shape,
ShapeFrameNode parentShapeFrame,
MeshShapeNode parentNode,
MeshShapeGeode parentGeode,
aiMesh *  mesh 
)

◆ ~MeshShapeGeometry()

dart::gui::osg::render::MeshShapeGeometry::~MeshShapeGeometry ( )
protectedvirtual

Member Function Documentation

◆ clearUtilization()

void dart::gui::osg::render::ShapeNode::clearUtilization ( )
inherited

Set mUtilized to false.

◆ extractData()

void dart::gui::osg::render::MeshShapeGeometry::extractData ( bool  firstTime)

◆ getNode() [1/2]

osg::Node * dart::gui::osg::render::ShapeNode::getNode ( )
inherited

Cast this ShapeNode into an osg::Node.

◆ getNode() [2/2]

const ::osg::Node * dart::gui::osg::render::ShapeNode::getNode ( ) const
inherited

Cast this ShapeNode into an osg::Node.

◆ getParentShapeFrameNode() [1/2]

ShapeFrameNode * dart::gui::osg::render::ShapeNode::getParentShapeFrameNode ( )
inherited

Pointer to the parent EntityNode of this ShapeNode.

◆ getParentShapeFrameNode() [2/2]

const ShapeFrameNode * dart::gui::osg::render::ShapeNode::getParentShapeFrameNode ( ) const
inherited

Pointer to the parent EntityNode of this ShapeNode.

◆ getShape()

const std::shared_ptr< dart::dynamics::Shape > & dart::gui::osg::render::ShapeNode::getShape ( ) const
inherited

Pointer to the Shape associated with this ShapeNode.

◆ getShapeFrame()

const dart::dynamics::ShapeFrame * dart::gui::osg::render::ShapeNode::getShapeFrame ( ) const
inherited

◆ getVisualAspect() [1/2]

dart::dynamics::VisualAspect * dart::gui::osg::render::ShapeNode::getVisualAspect ( )
inherited

◆ getVisualAspect() [2/2]

const dart::dynamics::VisualAspect * dart::gui::osg::render::ShapeNode::getVisualAspect ( ) const
inherited

◆ refresh()

void dart::gui::osg::render::MeshShapeGeometry::refresh ( )
virtual

Update all rendering data for this ShapeNode.

Implements dart::gui::osg::render::ShapeNode.

◆ wasUtilized()

bool dart::gui::osg::render::ShapeNode::wasUtilized ( ) const
inherited

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

Member Data Documentation

◆ mAiMesh

const aiMesh* dart::gui::osg::render::MeshShapeGeometry::mAiMesh
protected

◆ mColors

::osg::ref_ptr<::osg::Vec4Array> dart::gui::osg::render::MeshShapeGeometry::mColors
protected

◆ mMainNode

MeshShapeNode* dart::gui::osg::render::MeshShapeGeometry::mMainNode
protected

◆ mMeshShape

dart::dynamics::MeshShape* dart::gui::osg::render::MeshShapeGeometry::mMeshShape
protected

◆ mNode

::osg::Node* dart::gui::osg::render::ShapeNode::mNode
protectedinherited

Should generally be equal to 'this'.

◆ mNormals

::osg::ref_ptr<::osg::Vec3Array> dart::gui::osg::render::MeshShapeGeometry::mNormals
protected

◆ mParentShapeFrameNode

ShapeFrameNode* dart::gui::osg::render::ShapeNode::mParentShapeFrameNode
protectedinherited

Pointer to the parent ShapeFrameNode of this ShapeNode.

◆ mShape

const std::shared_ptr<dart::dynamics::Shape> dart::gui::osg::render::ShapeNode::mShape
protectedinherited

Pointer to the Shape associated with this ShapeNode.

◆ mShapeFrame

dart::dynamics::ShapeFrame* dart::gui::osg::render::ShapeNode::mShapeFrame
protectedinherited

Pointer to the SimpleFrame associated with this ShapeNode.

◆ mUtilized

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

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.

◆ mVertices

::osg::ref_ptr<::osg::Vec3Array> dart::gui::osg::render::MeshShapeGeometry::mVertices
protected

◆ mVisualAspect

dart::dynamics::VisualAspect* dart::gui::osg::render::ShapeNode::mVisualAspect
protectedinherited

Pointer to the VisualAspect associated with this ShapeNode.