Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
G3D::CylinderShape Class Reference

Inherits G3D::Shape.

Public Types

typedef shared_ptr< ShapeRef
 
enum  Type {
  NONE = 0,
  MESH = 1,
  BOX,
  CYLINDER,
  SPHERE,
  RAY,
  ARROW,
  CAPSULE,
  PLANE,
  AXES,
  POINT,
  TRIANGLE
}
 

Public Member Functions

 CylinderShape (const G3D::Cylinder &c)
 
virtual float area () const
 Surface area of the outside of this object.
 
virtual CoordinateFrameaxes ()
 
virtual AABox boundingAABox () const
 Bounding axis aligned box of this object.
 
virtual Sphere boundingSphere () const
 Bounding sphere of this object.
 
virtual Boxbox ()
 
virtual const Boxbox () const
 
virtual Capsulecapsule ()
 
virtual const Capsulecapsule () const
 
virtual Vector3 center () const
 Center of mass for this object.
 
virtual Cylindercylinder ()
 
virtual const Cylindercylinder () const
 
virtual void getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::ignore()) const
 A point selected uniformly at random with respect to the surface area of this object.
 
virtual const Array< int > & indexArray () const
 
virtual Planeplane ()
 
virtual const Planeplane () const
 
virtual Vector3point ()
 
virtual const Vector3point () const
 
virtual Vector3 randomInteriorPoint () const
 A point selected uniformly at random with respect to the volume of this object.
 
virtual Rayray ()
 
virtual const Rayray () const
 
virtual void render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black())
 
virtual Spheresphere ()
 
virtual const Spheresphere () const
 
virtual Triangletriangle ()
 
virtual const Triangletriangle () const
 
virtual Type type () const
 
virtual const Array< Vector3 > & vertexArray () const
 
virtual float volume () const
 Volume of the interior of this object.
 

Static Public Member Functions

static std::string typeToString (Type t)
 

Member Typedef Documentation

typedef shared_ptr<Shape> G3D::Shape::Ref
inherited

Member Enumeration Documentation

enum G3D::Shape::Type
inherited
Enumerator:
NONE 
MESH 
BOX 
CYLINDER 
SPHERE 
RAY 
ARROW 
CAPSULE 
PLANE 
AXES 
POINT 
TRIANGLE 

Constructor & Destructor Documentation

G3D::CylinderShape::CylinderShape ( const G3D::Cylinder c)
inlineexplicit

Member Function Documentation

virtual float G3D::CylinderShape::area ( ) const
inlinevirtual

Surface area of the outside of this object.

Implements G3D::Shape.

virtual CoordinateFrame& G3D::Shape::axes ( )
inlinevirtualinherited

Reimplemented in G3D::AxesShape.

virtual AABox G3D::CylinderShape::boundingAABox ( ) const
inlinevirtual

Bounding axis aligned box of this object.

Implements G3D::Shape.

virtual Sphere G3D::CylinderShape::boundingSphere ( ) const
inlinevirtual

Bounding sphere of this object.

Implements G3D::Shape.

virtual Box& G3D::Shape::box ( )
inlinevirtualinherited

Reimplemented in G3D::BoxShape.

virtual const Box& G3D::Shape::box ( ) const
inlinevirtualinherited

Reimplemented in G3D::BoxShape.

virtual Capsule& G3D::Shape::capsule ( )
inlinevirtualinherited

Reimplemented in G3D::CapsuleShape.

virtual const Capsule& G3D::Shape::capsule ( ) const
inlinevirtualinherited

Reimplemented in G3D::CapsuleShape.

virtual Vector3 G3D::CylinderShape::center ( ) const
inlinevirtual

Center of mass for this object.

Implements G3D::Shape.

virtual Cylinder& G3D::CylinderShape::cylinder ( )
inlinevirtual

Reimplemented from G3D::Shape.

virtual const Cylinder& G3D::CylinderShape::cylinder ( ) const
inlinevirtual

Reimplemented from G3D::Shape.

virtual void G3D::CylinderShape::getRandomSurfacePoint ( Vector3 P,
Vector3 N = Vector3::ignore() 
) const
inlinevirtual

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
inlinevirtualinherited

Reimplemented in G3D::MeshShape.

virtual Plane& G3D::Shape::plane ( )
inlinevirtualinherited

Reimplemented in G3D::PlaneShape.

virtual const Plane& G3D::Shape::plane ( ) const
inlinevirtualinherited

Reimplemented in G3D::PlaneShape.

virtual Vector3& G3D::Shape::point ( )
inlinevirtualinherited

Reimplemented in G3D::PointShape.

virtual const Vector3& G3D::Shape::point ( ) const
inlinevirtualinherited

Reimplemented in G3D::PointShape, and G3D::ArrowShape.

virtual Vector3 G3D::CylinderShape::randomInteriorPoint ( ) const
inlinevirtual

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 Ray& G3D::Shape::ray ( )
inlinevirtualinherited

Reimplemented in G3D::RayShape.

virtual const Ray& G3D::Shape::ray ( ) const
inlinevirtualinherited

Reimplemented in G3D::RayShape.

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 Sphere& G3D::Shape::sphere ( )
inlinevirtualinherited

Reimplemented in G3D::SphereShape.

virtual const Sphere& G3D::Shape::sphere ( ) const
inlinevirtualinherited

Reimplemented in G3D::SphereShape.

virtual Triangle& G3D::Shape::triangle ( )
inlinevirtualinherited

Reimplemented in G3D::TriangleShape.

virtual const Triangle& G3D::Shape::triangle ( ) const
inlinevirtualinherited

Reimplemented in G3D::TriangleShape.

virtual Type G3D::CylinderShape::type ( ) const
inlinevirtual

Implements G3D::Shape.

static std::string G3D::Shape::typeToString ( Type  t)
staticinherited
virtual const Array<Vector3>& G3D::Shape::vertexArray ( ) const
inlinevirtualinherited

Reimplemented in G3D::MeshShape.

virtual float G3D::CylinderShape::volume ( ) const
inlinevirtual

Volume of the interior of this object.

Implements G3D::Shape.


documentation generated on Sat Jan 12 2013 22:49:54 using doxygen 1.8.2