Support Forum G3D Web Page |
Inherits G3D::Shape.
Public Member Functions | |
AxesShape (const G3D::CoordinateFrame &a, float axisLength=1.0f) | |
virtual float | area () const |
Surface area of the outside of this object. More... | |
virtual CoordinateFrame & | axes () |
virtual const CoordinateFrame & | axes () const |
virtual AABox | boundingAABox () const |
Bounding axis aligned box of this object. More... | |
virtual Sphere | boundingSphere () const |
Returns a bound on the graphic representation of the axes. More... | |
virtual Box & | box () |
virtual const Box & | box () const |
virtual Capsule & | capsule () |
virtual const Capsule & | capsule () const |
virtual Vector3 | center () const |
Center of mass for this object. More... | |
virtual Cylinder & | cylinder () |
virtual const Cylinder & | cylinder () const |
virtual void | getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::ignore, Random &rnd=Random::common()) const |
Returns the origin, normal = NaN. More... | |
virtual const Array< int > & | indexArray () const |
virtual Plane & | plane () |
virtual const Plane & | plane () const |
virtual Vector3 & | point () |
virtual const Vector3 & | point () const |
virtual Vector3 | randomInteriorPoint (Random &rnd=Random::common()) const |
A point selected uniformly at random with respect to the volume of this object. More... | |
virtual Ray & | ray () |
virtual const Ray & | ray () const |
virtual void | render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black()) |
virtual Sphere & | sphere () |
virtual const Sphere & | sphere () const |
virtual Triangle & | triangle () |
virtual const Triangle & | triangle () const |
virtual Type | type () const |
virtual const Array< Vector3 > & | vertexArray () const |
virtual float | volume () const |
Volume of the interior of this object. More... | |
Static Public Member Functions | |
static String | typeToString (Type t) |
Static Protected Member Functions | |
template<class T , class ... ArgTypes> | |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
Like std::make_shared, but works for protected constructors. More... | |
|
inlineexplicit |
|
inlinevirtual |
Surface area of the outside of this object.
Implements G3D::Shape.
|
inlinevirtual |
Reimplemented from G3D::Shape.
|
inlinevirtual |
|
inlinevirtual |
Bounding axis aligned box of this object.
Implements G3D::Shape.
|
inlinevirtual |
Returns a bound on the graphic representation of the axes.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtual |
Center of mass for this object.
Implements G3D::Shape.
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtual |
Returns the origin, normal = NaN.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::MeshShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PointShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PointShape, and G3D::ArrowShape.
|
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.
|
inlinevirtualinherited |
Reimplemented in G3D::RayShape.
|
inlinevirtualinherited |
Reimplemented in G3D::RayShape.
|
virtual |
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtual |
Implements G3D::Shape.
Reimplemented in G3D::MeshShape.
|
inlinevirtual |
Volume of the interior of this object.
Implements G3D::Shape.