World Manager
C4Primitives.h

class PrimitiveGeometry

The PrimitiveGeometry class represents a primitive geometry node in a scene graph.
Definition

class PrimitiveGeometry : public Geometry, public Constructable<PrimitiveGeometry>

Member Functions
PrimitiveGeometry::GetPrimitiveType Returns the specific type of a primitive geometry.
Constructor

PrimitiveGeometry(PrimitiveType type);

The constructor has protected access. The PrimitiveGeometry class can only exist as the base class for another class.
Parameters
type The type of the primitive geometry. See below for a list of possible types.
Description


kPrimitivePlate A planar rectangle primitive.
kPrimitiveDisk A planar disk primitive.
kPrimitiveHole A plate primitive with a hole cut out of the center.
kPrimitiveAnnulus A planar annulus primitive.
kPrimitiveBox A box primitive.
kPrimitivePyramid A pyramid primitive.
kPrimitiveCylinder A cylinder primitive.
kPrimitiveCone A cone primitive.
kPrimitiveTruncatedCone A truncated cone primitive.
kPrimitiveSphere A sphere primitive.
kPrimitiveDome A dome primitive.
kPrimitiveTorus A torus primitive.
kPrimitiveTube A path tube primitive.
kPrimitiveExtrusion A path extrusion primitive.
kPrimitiveRevolution A path revolution primitive.
Base Classes
Geometry A primitive geometry is a specific type of geometry.
Constructable<PrimitiveGeometry> New primitive geometry subclasses may be defined by an application, and a constructor function can be installed using the Constructable class.
See Also
PrimitiveGeometryObject