Sphere Class Reference

This ContactGeometry subclass represents a sphere centered at the origin. More...

#include <ContactGeometry.h>

Inheritance diagram for Sphere:
ContactGeometry

List of all members.

Public Member Functions

 Sphere (Real radius)
Real getRadius () const
void setRadius (Real radius)
const SphereImplgetImpl () const
SphereImplupdImpl ()

Static Public Member Functions

static bool isInstance (const ContactGeometry &geo)
 Return true if the supplied ContactGeometry object is a sphere.
static const SpheregetAs (const ContactGeometry &geo)
 Cast the supplied ContactGeometry object to a const sphere.
static SphereupdAs (ContactGeometry &geo)
 Cast the supplied ContactGeometry object to a writable sphere.
static ContactGeometryTypeId classTypeId ()
 Obtain the unique id for Sphere contact geometry.

Detailed Description

This ContactGeometry subclass represents a sphere centered at the origin.


Constructor & Destructor Documentation

Sphere ( Real  radius  )  [explicit]

Member Function Documentation

static ContactGeometryTypeId classTypeId (  )  [static]

Obtain the unique id for Sphere contact geometry.

static const Sphere& getAs ( const ContactGeometry geo  )  [inline, static]

Cast the supplied ContactGeometry object to a const sphere.

const SphereImpl& getImpl (  )  const

Reimplemented from ContactGeometry.

Real getRadius (  )  const
static bool isInstance ( const ContactGeometry geo  )  [inline, static]

Return true if the supplied ContactGeometry object is a sphere.

References ContactGeometry::getTypeId().

void setRadius ( Real  radius  ) 
static Sphere& updAs ( ContactGeometry geo  )  [inline, static]

Cast the supplied ContactGeometry object to a writable sphere.

SphereImpl& updImpl (  ) 

Reimplemented from ContactGeometry.


The documentation for this class was generated from the following file:

Generated on Thu Aug 12 16:37:59 2010 for SimTKcore by  doxygen 1.6.1