Go to the documentation of this file.
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;
104 #endif // SURGSIM_GRAPHICS_OSGPOINTCLOUDREPRESENTATION_H
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgPointCloudRepresentation)
SurgSim::Math::Vector4d getColor() const override
Gets the color.
Definition: OsgPointCloudRepresentation.cpp:147
void setPointSize(double val) override
Sets point size for the point elements.
Definition: OsgPointCloudRepresentation.cpp:123
SurgSim::Math::Vector4d m_color
Color backing variable.
Definition: OsgPointCloudRepresentation.h:90
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
void updateGeometry(const DataStructures::VerticesPlain &vertices)
Update the geometry.
Definition: OsgPointCloudRepresentation.cpp:87
~OsgPointCloudRepresentation()
Destructor.
Definition: OsgPointCloudRepresentation.cpp:64
Definition: CompoundShapeToGraphics.cpp:29
void doUpdate(double dt) override
Definition: OsgPointCloudRepresentation.cpp:68
Osg point cloud representation, implementation of a PointCloudRepresenation using OSG.
Definition: OsgPointCloudRepresentation.h:48
osg::ref_ptr< osg::Point > m_point
OSG::Point for local operations.
Definition: OsgPointCloudRepresentation.h:87
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
osg::ref_ptr< osg::DrawArrays > m_drawArrays
OSG DrawArrays for local operations.
Definition: OsgPointCloudRepresentation.h:84
double getPointSize() const override
Gets point size.
Definition: OsgPointCloudRepresentation.cpp:128
std::shared_ptr< PointCloud > m_vertices
Local pointer to vertices with data.
Definition: OsgPointCloudRepresentation.h:75
OsgPointCloudRepresentation(const std::string &name)
Constructor.
Definition: OsgPointCloudRepresentation.cpp:33
Graphic representation of a point cloud, hase a very basic interface and is intentionally kept generi...
Definition: PointCloudRepresentation.h:36
std::shared_ptr< PointCloud > getVertices() const override
Pull the vertices.
Definition: OsgPointCloudRepresentation.cpp:118
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
void setColor(const SurgSim::Math::Vector4d &color) override
Sets a color for all of the points together.
Definition: OsgPointCloudRepresentation.cpp:133
osg::ref_ptr< osg::Geometry > m_geometry
OSG Geometry node holding the data.
Definition: OsgPointCloudRepresentation.h:81
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55
osg::ref_ptr< osg::Vec3Array > m_vertexData
OSG vertex data for updating.
Definition: OsgPointCloudRepresentation.h:78