16 #ifndef SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H 17 #define SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H 20 #include <osg/Geometry> 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;
104 #endif // SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H Definition: CompoundShapeToGraphics.cpp:29
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
osg::ref_ptr< osg::Geometry > m_geometry
OSG Geometry node holding the data.
Definition: OsgPointCloudRepresentation.h:81
osg::ref_ptr< osg::Vec3Array > m_vertexData
OSG vertex data for updating.
Definition: OsgPointCloudRepresentation.h:78
osg::ref_ptr< osg::DrawArrays > m_drawArrays
OSG DrawArrays for local operations.
Definition: OsgPointCloudRepresentation.h:84
#define SURGSIM_CLASSNAME(ClassName)
Declare the class name of a class with the appropriate function header, do not use quotes...
Definition: Macros.h:21
SurgSim::Math::Vector4d m_color
Color backing variable.
Definition: OsgPointCloudRepresentation.h:90
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55
osg::ref_ptr< osg::Point > m_point
OSG::Point for local operations.
Definition: OsgPointCloudRepresentation.h:87
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
std::shared_ptr< PointCloud > m_vertices
Local pointer to vertices with data.
Definition: OsgPointCloudRepresentation.h:75