A 3D Dynamic Geometry Software

Calques 3D C++



CShape Class Reference

Inheritance diagram for CShape:

Inheritance graph
Collaboration diagram for CShape:

Collaboration graph

List of all members.


Detailed Description

Build and draw the various shapes of geometrical objects.

Public Types

enum  TShapeType { LineShape, PointShape, VolShape, PolShape }
 Used to identify the type of shape of a given object. More...
enum  TShapeLine
 Used to identify the shape of a line. More...
enum  TShapePoint
 Used to identify the shape of a point. More...
enum  TShapeVolume
 Used to identify the shape of a composite. More...
enum  TShapePolygon
 Used to identify the shape of a polygon. More...

Public Member Functions

int GetShapeType ()
 Get the type of shape associated with the object.

Public Attributes

COLORREF clrObject
 The color of the geometrical object.
int nShapeId
 Zero-based index of the shape of the geometrical object.
int nShapeNb
 Number of possibles shapes for this object.

Protected Attributes

int nShapeType
 The type of shape associated with the object.
int nShapeDef
 Zero-based index of the default shape for the object.

Member Enumeration Documentation

enum TShapeType

Used to identify the type of shape of a given object.

Enumerator:
LineShape  Shapes for lines and planes.
PointShape  Shapes for points.
VolShape  Shapes for volumes.
PolShape  Shapes for polygons.

enum TShapeLine

Used to identify the shape of a line.

Used to identify the shape of a point.

Used to identify the shape of a composite.

Used to identify the shape of a polygon.


Member Function Documentation

int GetShapeType (  )  [inline]

Get the type of shape associated with the object.

Returns:
The zero-based identifier of the shape (TShapeType)


Member Data Documentation

COLORREF clrObject

The color of the geometrical object.

int nShapeId

Zero-based index of the shape of the geometrical object.

int nShapeNb

Number of possibles shapes for this object.

int nShapeType [protected]

The type of shape associated with the object.

int nShapeDef [protected]

Zero-based index of the default shape for the object.