class Shape
Defined in: C4Shapes.h
The Shape class represents a shape node in a scene graph.
Definition
class Shape : public Node, public ListElement<Shape>
Member Functions
Constructor
Shape(ShapeType type);
The constructor has protected access. A Shape class can only exist as the base class for a more specific type of shape.
Parameters
type |
The type of the shape. See below for a list of possible types.
|
Description
The Shape class represents a shape node in a scene graph.
A shape node can be of one of the following types.
kShapeBox |
A box shape.
|
kShapePyramid |
A pyramid shape.
|
kShapeCylinder |
A cylinder shape.
|
kShapeCone |
A cone shape.
|
kShapeSphere |
A sphere shape.
|
kShapeDome |
A dome shape.
|
kShapeCapsule |
A capsule shape.
|
kShapeTruncatedPyramid |
A truncated pyramid shape.
|
kShapeTruncatedCone |
A truncated cone shape.
|
kShapeTruncatedDome |
A truncated dome shape.
|
Base Classes
Node |
A Shape node is a scene graph node.
|
ListElement<Shape> |
Each rigid body maintains a list of the shapes that compose it.
|
See Also
ShapeObject
RigidBodyController
|