DART  6.10.1
dart::gui::osg::render::HeightmapShapeDrawable< S > Class Template Reference

#include <HeightmapShapeNode.hpp>

Inheritance diagram for dart::gui::osg::render::HeightmapShapeDrawable< S >:

Public Types

using Vector3 = Eigen::Matrix< S, 3, 1 >
 
using osgVec3 = typename std::conditional< std::is_same< S, float >::value, ::osg::Vec3f, ::osg::Vec3d >::type
 
using Vec3Array = typename std::conditional< std::is_same< S, float >::value, ::osg::Vec3Array, ::osg::Vec3dArray >::type
 
using Vec4Array = typename std::conditional< std::is_same< S, float >::value, ::osg::Vec4Array, ::osg::Vec4dArray >::type
 

Public Member Functions

 HeightmapShapeDrawable (dynamics::HeightmapShape< S > *shape, dynamics::VisualAspect *visualAspect, HeightmapShapeGeode< S > *parent)
 
void refresh (bool firstTime)
 

Protected Member Functions

 ~HeightmapShapeDrawable () override=default
 

Protected Attributes

dynamics::HeightmapShape< S > * mHeightmapShape
 
dynamics::VisualAspectmVisualAspect
 
HeightmapShapeGeode< S > * mParent
 

Private Attributes

::osg::ref_ptr< Vec3ArraymVertices
 
::osg::ref_ptr<::osg::DrawElementsUInt > mElements
 
::osg::ref_ptr< Vec3ArraymNormals
 
::osg::ref_ptr<::osg::Vec4Array > mColors
 

Member Typedef Documentation

◆ osgVec3

template<typename S >
using dart::gui::osg::render::HeightmapShapeDrawable< S >::osgVec3 = typename std::conditional< std::is_same<S, float>::value, ::osg::Vec3f, ::osg::Vec3d>::type

◆ Vec3Array

template<typename S >
using dart::gui::osg::render::HeightmapShapeDrawable< S >::Vec3Array = typename std::conditional< std::is_same<S, float>::value, ::osg::Vec3Array, ::osg::Vec3dArray>::type

◆ Vec4Array

template<typename S >
using dart::gui::osg::render::HeightmapShapeDrawable< S >::Vec4Array = typename std::conditional< std::is_same<S, float>::value, ::osg::Vec4Array, ::osg::Vec4dArray>::type

◆ Vector3

template<typename S >
using dart::gui::osg::render::HeightmapShapeDrawable< S >::Vector3 = Eigen::Matrix<S, 3, 1>

Constructor & Destructor Documentation

◆ HeightmapShapeDrawable()

template<typename S >
dart::gui::osg::render::HeightmapShapeDrawable< S >::HeightmapShapeDrawable ( dynamics::HeightmapShape< S > *  shape,
dynamics::VisualAspect visualAspect,
HeightmapShapeGeode< S > *  parent 
)

◆ ~HeightmapShapeDrawable()

template<typename S >
dart::gui::osg::render::HeightmapShapeDrawable< S >::~HeightmapShapeDrawable ( )
overrideprotecteddefault

Member Function Documentation

◆ refresh()

template<typename S >
void dart::gui::osg::render::HeightmapShapeDrawable< S >::refresh ( bool  firstTime)

Member Data Documentation

◆ mColors

template<typename S >
::osg::ref_ptr<::osg::Vec4Array> dart::gui::osg::render::HeightmapShapeDrawable< S >::mColors
private

◆ mElements

template<typename S >
::osg::ref_ptr<::osg::DrawElementsUInt> dart::gui::osg::render::HeightmapShapeDrawable< S >::mElements
private

◆ mHeightmapShape

template<typename S >
dynamics::HeightmapShape<S>* dart::gui::osg::render::HeightmapShapeDrawable< S >::mHeightmapShape
protected

◆ mNormals

template<typename S >
::osg::ref_ptr<Vec3Array> dart::gui::osg::render::HeightmapShapeDrawable< S >::mNormals
private

◆ mParent

template<typename S >
HeightmapShapeGeode<S>* dart::gui::osg::render::HeightmapShapeDrawable< S >::mParent
protected

◆ mVertices

template<typename S >
::osg::ref_ptr<Vec3Array> dart::gui::osg::render::HeightmapShapeDrawable< S >::mVertices
private

◆ mVisualAspect

template<typename S >
dynamics::VisualAspect* dart::gui::osg::render::HeightmapShapeDrawable< S >::mVisualAspect
protected