|
G3D::PointShape 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 CoordinateFrame & | axes () |
| virtual AABox | boundingAABox () const |
| virtual Sphere | boundingSphere () const |
| virtual const Box & | box () const |
| virtual Box & | box () |
| virtual const Capsule & | capsule () const |
| virtual Capsule & | capsule () |
| virtual Vector3 | center () const |
| virtual const Cylinder & | cylinder () const |
| virtual Cylinder & | cylinder () |
| virtual void | getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::dummy) const |
| virtual const Array< int > & | indexArray () const |
| virtual const Plane & | plane () const |
| virtual Plane & | plane () |
| virtual const Vector3 & | point () const |
| virtual Vector3 & | point () |
| | PointShape (const Vector3 &p) |
| virtual Vector3 | randomInteriorPoint () const |
| virtual const Ray & | ray () const |
| virtual Ray & | ray () |
| void | ReferenceCountedObject_zeroWeakPointers () |
| virtual void | render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black()) |
| virtual const Sphere & | sphere () const |
| virtual Sphere & | sphere () |
| 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 |
| _WeakPtrLinkedList * | ReferenceCountedObject_weakPointer |
Member Enumeration Documentation
- Enumerator:
-
| NONE |
|
| MESH |
|
| BOX |
|
| CYLINDER |
|
| SPHERE |
|
| RAY |
|
| CAPSULE |
|
| PLANE |
|
| AXES |
|
| POINT |
|
Constructor & Destructor Documentation
| G3D::PointShape::PointShape |
( |
const Vector3 & |
p |
) |
[inline, explicit] |
Member Function Documentation
| virtual float G3D::PointShape::area |
( |
|
) |
const [inline, virtual] |
Surface area of the outside of this object.
Implements G3D::Shape.
| virtual AABox G3D::PointShape::boundingAABox |
( |
|
) |
const [inline, virtual] |
Bounding axis aligned box of this object.
Implements G3D::Shape.
| virtual Sphere G3D::PointShape::boundingSphere |
( |
|
) |
const [inline, virtual] |
Bounding sphere of this object.
Implements G3D::Shape.
| virtual const Box& G3D::Shape::box |
( |
|
) |
const [inline, virtual, inherited] |
| virtual Box& G3D::Shape::box |
( |
|
) |
[inline, virtual, inherited] |
| virtual const Capsule& G3D::Shape::capsule |
( |
|
) |
const [inline, virtual, inherited] |
| virtual Capsule& G3D::Shape::capsule |
( |
|
) |
[inline, virtual, inherited] |
| virtual Vector3 G3D::PointShape::center |
( |
|
) |
const [inline, virtual] |
Center of mass for this object.
Implements G3D::Shape.
| virtual const Cylinder& G3D::Shape::cylinder |
( |
|
) |
const [inline, virtual, inherited] |
| virtual Cylinder& G3D::Shape::cylinder |
( |
|
) |
[inline, virtual, inherited] |
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] |
| virtual const Plane& G3D::Shape::plane |
( |
|
) |
const [inline, virtual, inherited] |
| virtual Plane& G3D::Shape::plane |
( |
|
) |
[inline, virtual, inherited] |
| virtual const Vector3& G3D::PointShape::point |
( |
|
) |
const [inline, virtual] |
| virtual Vector3& G3D::PointShape::point |
( |
|
) |
[inline, virtual] |
| virtual Vector3 G3D::PointShape::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] |
| virtual Ray& G3D::Shape::ray |
( |
|
) |
[inline, virtual, inherited] |
| 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 const Sphere& G3D::Shape::sphere |
( |
|
) |
const [inline, virtual, inherited] |
| virtual Sphere& G3D::Shape::sphere |
( |
|
) |
[inline, virtual, inherited] |
| virtual Type G3D::PointShape::type |
( |
|
) |
const [inline, virtual] |
| static std::string G3D::Shape::typeToString |
( |
Type |
t |
) |
[static, inherited] |
| virtual const Array<Vector3>& G3D::Shape::vertexArray |
( |
|
) |
const [inline, virtual, inherited] |
| virtual float G3D::PointShape::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:47 2007 for G3D by
1.5.2
Hosted by
| |