Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::CylinderShape Class Reference

#include <Shape.h>

Inherits G3D::Shape.

List of all members.

Public Types

enum  Type {
  NONE = 0, MESH = 1, BOX, CYLINDER,
  SPHERE, RAY, CAPSULE, PLANE,
  AXES, POINT
}

Public Member Functions

virtual float area () const
virtual CoordinateFrameaxes ()
virtual AABox boundingAABox () const
virtual Sphere boundingSphere () const
virtual const Boxbox () const
virtual Boxbox ()
virtual const Capsulecapsule () const
virtual Capsulecapsule ()
virtual Vector3 center () const
virtual const Cylindercylinder () const
virtual Cylindercylinder ()
 CylinderShape (const G3D::Cylinder &c)
virtual void getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::dummy) const
virtual const Array< int > & indexArray () const
virtual const Planeplane () const
virtual Planeplane ()
virtual const Vector3point () const
virtual Vector3point ()
virtual Vector3 randomInteriorPoint () const
virtual const Rayray () const
virtual Rayray ()
void ReferenceCountedObject_zeroWeakPointers ()
virtual void render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black())
virtual const Spheresphere () const
virtual Spheresphere ()
virtual Type type () const
virtual const Array< Vector3 > & vertexArray () const
virtual float volume () const

Static Public Member Functions

static std::string typeToString (Type t)

Public Attributes

AtomicInt32 ReferenceCountedObject_refCount
_WeakPtrLinkedListReferenceCountedObject_weakPointer


Member Enumeration Documentation

enum G3D::Shape::Type [inherited]

Enumerator:
NONE 
MESH 
BOX 
CYLINDER 
SPHERE 
RAY 
CAPSULE 
PLANE 
AXES 
POINT 


Constructor & Destructor Documentation

G3D::CylinderShape::CylinderShape ( const G3D::Cylinder c  )  [inline, explicit]


Member Function Documentation

virtual float G3D::CylinderShape::area (  )  const [inline, virtual]

Surface area of the outside of this object.

Implements G3D::Shape.

virtual CoordinateFrame& G3D::Shape::axes (  )  [inline, virtual, inherited]

Reimplemented in G3D::AxesShape.

virtual AABox G3D::CylinderShape::boundingAABox (  )  const [inline, virtual]

Bounding axis aligned box of this object.

Implements G3D::Shape.

virtual Sphere G3D::CylinderShape::boundingSphere (  )  const [inline, virtual]

Bounding sphere of this object.

Implements G3D::Shape.

virtual const Box& G3D::Shape::box (  )  const [inline, virtual, inherited]

Reimplemented in G3D::BoxShape.

virtual Box& G3D::Shape::box (  )  [inline, virtual, inherited]

Reimplemented in G3D::BoxShape.

virtual const Capsule& G3D::Shape::capsule (  )  const [inline, virtual, inherited]

Reimplemented in G3D::CapsuleShape.

virtual Capsule& G3D::Shape::capsule (  )  [inline, virtual, inherited]

Reimplemented in G3D::CapsuleShape.

virtual Vector3 G3D::CylinderShape::center (  )  const [inline, virtual]

Center of mass for this object.

Implements G3D::Shape.

virtual const Cylinder& G3D::CylinderShape::cylinder (  )  const [inline, virtual]

Reimplemented from G3D::Shape.

virtual Cylinder& G3D::CylinderShape::cylinder (  )  [inline, virtual]

Reimplemented from G3D::Shape.

virtual void G3D::CylinderShape::getRandomSurfacePoint ( Vector3 P,
Vector3 N = Vector3::dummy 
) const [inline, virtual]

A point selected uniformly at random with respect to the surface area of this object.

Not available on the Plane or Ray, which have infinite extent. The normal has unit length and points out of the surface.

Implements G3D::Shape.

virtual const Array<int>& G3D::Shape::indexArray (  )  const [inline, virtual, inherited]

Reimplemented in G3D::MeshShape.

virtual const Plane& G3D::Shape::plane (  )  const [inline, virtual, inherited]

Reimplemented in G3D::PlaneShape.

virtual Plane& G3D::Shape::plane (  )  [inline, virtual, inherited]

Reimplemented in G3D::PlaneShape.

virtual const Vector3& G3D::Shape::point (  )  const [inline, virtual, inherited]

Reimplemented in G3D::PointShape.

virtual Vector3& G3D::Shape::point (  )  [inline, virtual, inherited]

Reimplemented in G3D::PointShape.

virtual Vector3 G3D::CylinderShape::randomInteriorPoint (  )  const [inline, virtual]

A point selected uniformly at random with respect to the volume of this object.

Not available on objects with infinite extent.

Implements G3D::Shape.

virtual const Ray& G3D::Shape::ray (  )  const [inline, virtual, inherited]

Reimplemented in G3D::RayShape.

virtual Ray& G3D::Shape::ray (  )  [inline, virtual, inherited]

Reimplemented in G3D::RayShape.

void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers (  )  [inline, inherited]

Automatically called immediately before the object is deleted.

This is not called from the destructor because it needs to be invoked before the subclass destructor.

virtual void G3D::CylinderShape::render ( RenderDevice rd,
const CoordinateFrame cframe,
Color4  solidColor = Color4(.5,.5, 0,.5),
Color4  wireColor = Color3::black() 
) [virtual]

Implements G3D::Shape.

virtual const Sphere& G3D::Shape::sphere (  )  const [inline, virtual, inherited]

Reimplemented in G3D::SphereShape.

virtual Sphere& G3D::Shape::sphere (  )  [inline, virtual, inherited]

Reimplemented in G3D::SphereShape.

virtual Type G3D::CylinderShape::type (  )  const [inline, virtual]

Implements G3D::Shape.

static std::string G3D::Shape::typeToString ( Type  t  )  [static, inherited]

virtual const Array<Vector3>& G3D::Shape::vertexArray (  )  const [inline, virtual, inherited]

Reimplemented in G3D::MeshShape.

virtual float G3D::CylinderShape::volume (  )  const [inline, virtual]

Volume of the interior of this object.

Implements G3D::Shape.


Member Data Documentation

The long name is to keep this from accidentally conflicting with a subclass's variable name.

Do not use or explicitly manipulate this value--its type may change in the future and is not part of the supported API.

Linked list of all weak pointers that reference this (some may be on the stack!).

Do not use or explicitly manipulate this value.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo