16 #ifndef SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H 20 #include <osg/Geometry> 23 #include "SurgSim/Framework/Macros.h" 24 #include "SurgSim/Framework/ObjectFactory.h" 25 #include "SurgSim/Graphics/PointCloudRepresentation.h" 26 #include "SurgSim/Graphics/OsgRepresentation.h" 30 namespace DataStructures
43 #pragma warning(disable:4250) 45 SURGSIM_STATIC_REGISTRATION(OsgPointCloudRepresentation);
60 std::shared_ptr<PointCloud> getVertices()
const override;
62 void setPointSize(
double val)
override;
64 double getPointSize()
const override;
66 void doUpdate(
double dt)
override;
75 std::shared_ptr<PointCloud> m_vertices;
78 osg::ref_ptr<osg::Vec3Array> m_vertexData;
81 osg::ref_ptr<osg::Geometry> m_geometry;
84 osg::ref_ptr<osg::DrawArrays> m_drawArrays;
87 osg::ref_ptr<osg::Point> m_point;
104 #endif // SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
Osg point cloud representation, implementation of a PointCloudRepresenation using OSG...
Definition: OsgPointCloudRepresentation.h:48
Graphic representation of a point cloud, hase a very basic interface and is intentionally kept generi...
Definition: PointCloudRepresentation.h:36
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51