33 #ifndef DART_GUI_OSG_RENDER_VOXELGRIDSHAPENODE_HPP_
34 #define DART_GUI_OSG_RENDER_VOXELGRIDSHAPENODE_HPP_
36 #include "dart/config.hpp"
40 # include <osg/MatrixTransform>
41 # include <osg/ShapeDrawable>
55 class VoxelGridShapeGeode;
58 class VoxelGridShapeNode :
public ShapeNode,
public ::osg::Group
62 std::shared_ptr<dynamics::VoxelGridShape> shape, ShapeFrameNode* parent);
64 void refresh()
override;
65 void extractData(
bool firstTime);
68 virtual ~VoxelGridShapeNode()
override;
70 std::shared_ptr<dynamics::VoxelGridShape> mVoxelGridShape;
71 VoxelGridShapeGeode* mGeode;
72 std::vector<::osg::ref_ptr<VoxelNode>> mVoxelNodes;
73 std::size_t mVoxelGridVersion;
Definition: BulletCollisionDetector.cpp:65