GlutSphere Struct Reference

Sphere with center at local origin. More...

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

Inheritance diagram for GlutSphere:

## Public Member Functions

| GlutSphere (double radius, const SurgSim::Math::Vector3d &color)
| Constructor. More...
virtual void | draw ()
| 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::GlutSphere | ( | double | radius,
|  | const SurgSim::Math::Vector3d & | color
| ) |  |

inline

Constructor.

Parameters

  radius | Radius of the sphere, in meters.
  color | Color of the sphere.

## Member Function Documentation

## draw()

void GlutSphere::draw | ( |  | ) |

virtual

Draws the sphere with Glut.

Implements GlutRenderObject.

## Member Data Documentation

## color

SurgSim::Math::Vector3d GlutSphere::color

Color of the sphere.

## quadratic

GLUquadric* GlutSphere::quadratic

private

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

## radius

double GlutSphere::radius

Radius of the sphere, in meters.

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

- SurgSim/Testing/VisualTestCommon/GlutRenderer.h
- SurgSim/Testing/VisualTestCommon/GlutRenderer.cpp