Public Member Functions | Public Attributes | Private Attributes | List of all members
GlutSphere Struct Reference

Sphere with center at local origin. More...

#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>

Inheritance diagram for GlutSphere:
GlutRenderObject

Public Member Functions

 GlutSphere (double radius, const SurgSim::Math::Vector3d &color)
 Constructor. More...
 
virtual void draw () const
 Draws the sphere with Glut. More...
 
- Public Member Functions inherited from GlutRenderObject
 GlutRenderObject ()
 Constructor initializes pose as identity (no rotation or translation) More...
 
virtual ~GlutRenderObject ()
 

Public Attributes

double radius
 Radius of the sphere, in meters. More...
 
SurgSim::Math::Vector3d color
 Color of the sphere. More...
 
- Public Attributes inherited from GlutRenderObject
SurgSim::Math::RigidTransform3d pose
 Pose (rotation and translation) of the object. More...
 

Private Attributes

GLUquadric * quadratic
 GLU quadric object for the quadric operations required to build the sphere. More...
 

Detailed Description

Sphere with center at local origin.

Constructor & Destructor Documentation

GlutSphere::GlutSphere ( double  radius,
const SurgSim::Math::Vector3d color 
)
inline

Constructor.

Parameters
radiusRadius of the sphere, in meters.
colorColor of the sphere.

Member Function Documentation

void GlutSphere::draw ( ) const
virtual

Draws the sphere with Glut.

Implements GlutRenderObject.

Member Data Documentation

SurgSim::Math::Vector3d GlutSphere::color

Color of the sphere.

GLUquadric* GlutSphere::quadratic
private

GLU quadric object for the quadric operations required to build the sphere.

double GlutSphere::radius

Radius of the sphere, in meters.


The documentation for this struct was generated from the following files: