Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGSPHEREREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_OSGSPHEREREPRESENTATION_H
25 #include <osg/PositionAttitudeTransform>
30 #pragma warning(disable:4250)
39 SURGSIM_STATIC_REGISTRATION(OsgSphereRepresentation);
75 #endif // SURGSIM_GRAPHICS_OSGSPHEREREPRESENTATION_H
virtual double getRadius() const
Returns the radius of the sphere.
Definition: OsgSphereRepresentation.cpp:46
std::shared_ptr< OsgUnitSphere > m_sharedUnitSphere
Shared unit sphere, so that the geometry can be instanced rather than having multiple copies.
Definition: OsgSphereRepresentation.h:61
Base graphics sphere representation class, which defines the basic interface for a sphere that can be...
Definition: SphereRepresentation.h:29
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgSphereRepresentation)
Definition: CompoundShapeToGraphics.cpp:29
OSG implementation of a graphics sphere representation.
Definition: OsgSphereRepresentation.h:42
virtual void setRadius(double radius)
Sets the radius of the sphere.
Definition: OsgSphereRepresentation.cpp:41
static std::shared_ptr< OsgUnitSphere > getSharedUnitSphere()
Returns the shared unit sphere.
Definition: OsgSphereRepresentation.cpp:54
OsgSphereRepresentation(const std::string &name)
Constructor.
Definition: OsgSphereRepresentation.cpp:32
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55