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 Definition: CompoundShapeToGraphics.cpp:29
OsgSphereRepresentation(const std::string &name)
Constructor.
Definition: OsgSphereRepresentation.cpp:32
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
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgSphereRepresentation)
Base graphics sphere representation class, which defines the basic interface for a sphere that can be...
Definition: SphereRepresentation.h: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
Base OSG implementation of a graphics representation.
Definition: OsgRepresentation.h:55
static std::shared_ptr< OsgUnitSphere > getSharedUnitSphere()
Returns the shared unit sphere.
Definition: OsgSphereRepresentation.cpp:54