Simbody  3.4 (development)
SimTK::ContactGeometry::Cylinder Class Reference

This ContactGeometry subclass represents a cylinder centered at the origin, with radius r in the x-y plane, and infinite length along z. More...

#include <ContactGeometry.h>

+ Inheritance diagram for SimTK::ContactGeometry::Cylinder:

List of all members.

Public Member Functions

 Cylinder (Real radius)
Real getRadius () const
void setRadius (Real radius)
const Impl & getImpl () const
Impl & updImpl ()
 Internal use only.

Static Public Member Functions

static bool isInstance (const ContactGeometry &geo)
 Return true if the supplied ContactGeometry object is a cylinder.
static const CylindergetAs (const ContactGeometry &geo)
 Cast the supplied ContactGeometry object to a const cylinder.
static CylinderupdAs (ContactGeometry &geo)
 Cast the supplied ContactGeometry object to a writable cylinder.
static ContactGeometryTypeId classTypeId ()
 Obtain the unique id for Cylinder contact geometry.

Detailed Description

This ContactGeometry subclass represents a cylinder centered at the origin, with radius r in the x-y plane, and infinite length along z.

TODO: should allow finite length to be specified.


Constructor & Destructor Documentation

SimTK::ContactGeometry::Cylinder::Cylinder ( Real  radius) [explicit]

Member Function Documentation

static bool SimTK::ContactGeometry::Cylinder::isInstance ( const ContactGeometry geo) [inline, static]

Return true if the supplied ContactGeometry object is a cylinder.

static const Cylinder& SimTK::ContactGeometry::Cylinder::getAs ( const ContactGeometry geo) [inline, static]

Cast the supplied ContactGeometry object to a const cylinder.

Cast the supplied ContactGeometry object to a writable cylinder.

Obtain the unique id for Cylinder contact geometry.

Internal use only.

Reimplemented from SimTK::ContactGeometry.

Internal use only.

Reimplemented from SimTK::ContactGeometry.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines