16 #ifndef SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H
20 #include <osg/Geometry>
30 namespace DataStructures
43 #pragma warning(disable:4250)
62 virtual std::shared_ptr<PointCloud>
getVertices()
const override;
74 virtual void doUpdate(
double dt)
override;
104 #if defined(_MSC_VER)
111 #endif // SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H
Definition: DriveElementFromInputBehavior.cpp:27
SURGSIM_STATIC_REGISTRATION(OsgBoxRepresentation)
Osg point cloud representation, implementation of a PointCloudRepresenation using OSG...
Definition: OsgPointCloudRepresentation.h:48
virtual std::shared_ptr< PointCloud > getVertices() const override
Gets the vertices.
Definition: OsgPointCloudRepresentation.cpp:98
Graphic representation of a point cloud, hase a very basic interface and is intentionally kept generi...
Definition: PointCloudRepresentation.h:35
osg::ref_ptr< osg::Geometry > m_geometry
OSG Geometry node holding the data.
Definition: OsgPointCloudRepresentation.h:92
osg::ref_ptr< osg::Vec3Array > m_vertexData
OSG vertex data for updating.
Definition: OsgPointCloudRepresentation.h:89
osg::ref_ptr< osg::DrawArrays > m_drawArrays
OSG DrawArrays for local operations.
Definition: OsgPointCloudRepresentation.h:95
OsgPointCloudRepresentation(const std::string &name)
Constructor.
Definition: OsgPointCloudRepresentation.cpp:33
virtual void setColor(const SurgSim::Math::Vector4d &color) override
Sets a color.
Definition: OsgPointCloudRepresentation.cpp:113
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgPointCloudRepresentation)
virtual void doUpdate(double dt) override
Executes the update operation.
Definition: OsgPointCloudRepresentation.cpp:69
virtual SurgSim::Math::Vector4d getColor() const override
Gets the color.
Definition: OsgPointCloudRepresentation.cpp:127
virtual void setPointSize(double val) override
Sets point size.
Definition: OsgPointCloudRepresentation.cpp:103
SurgSim::Math::Vector4d m_color
Color backing variable.
Definition: OsgPointCloudRepresentation.h:101
~OsgPointCloudRepresentation()
Destructor.
Definition: OsgPointCloudRepresentation.cpp:65
virtual double getPointSize() const override
Gets point size.
Definition: OsgPointCloudRepresentation.cpp:108
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:60
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:42
osg::ref_ptr< osg::Point > m_point
OSG::Point for local operations.
Definition: OsgPointCloudRepresentation.h:98
std::shared_ptr< PointCloud > m_vertices
Local pointer to vertices with data.
Definition: OsgPointCloudRepresentation.h:86