A 3D Dynamic Geometry Software

Calques 3D C++



CInterCircDr3D Class Reference
[Calques 3D - Geometrical Objects]

Inheritance diagram for CInterCircDr3D:

Inheritance graph
Collaboration diagram for CInterCircDr3D:

Collaboration graph

List of all members.


Detailed Description

This is the main class.

Public Member Functions

virtual int SetDepth ()
 Update the depth of this object in the dependence graph.
virtual CObject3DCopyObject ()
 Create a clone of this object.
virtual CxObject3DSetGetParents ()
 Get all the parents of this object from the dependence graph.
virtual BOOL IsEqual (CObject3D &other)
 Verify if this object is analytically identical to another one.
virtual DWORD isA () const
 Get the identifier representing the type of the object.
virtual UINT GetDefID () const
 Get the resource ID of the string containing the definition of the object.
virtual void Serialize (CArchive &ar)
 Store and load the object into and from an archive.
virtual void SetColor (COLORREF rColor)
 Set the color of the object.
virtual void SetStyle (int nStyle)
 Set the shape of the object.
virtual CString GetObjectDef ()
 Get the definition of the object.
virtual UINT CalculConceptuel ()
 Recompute the analytical representation of the object.

Member Function Documentation

int SetDepth (  )  [virtual]

Update the depth of this object in the dependence graph.

Basically, the depth of an object is either 0 if it has no parents or the maximum of its parents' depth +1.

Returns:
The current depth of this object

Reimplemented from CObject3D.

CObject3D * CopyObject (  )  [virtual]

Create a clone of this object.

Returns:
A pointer to the clone of this object.

Reimplemented from CCompositeObj3D.

CxObject3DSet * GetParents (  )  [virtual]

Get all the parents of this object from the dependence graph.

Returns:
A pointer to a list containing the parents, NULL if no parents.

Reimplemented from CObject3D.

BOOL IsEqual ( CObject3D other  )  [virtual]

Verify if this object is analytically identical to another one.

Parameters:
other A reference to the object to compare with this one.
Returns:
TRUE if both object are analytically the same, FALSE otherwise

Reimplemented from CObject3D.

virtual DWORD isA (  )  const [inline, virtual]

Get the identifier representing the type of the object.

See TObject3DClass and others identifiers

Reimplemented from CCompositeObj3D.

virtual UINT GetDefID (  )  const [inline, virtual]

Get the resource ID of the string containing the definition of the object.

Reimplemented from CCompositeObj3D.

void Serialize ( CArchive &  ar  )  [virtual]

Store and load the object into and from an archive.

Parameters:
ar A CArchive object to serialize to or from.

Reimplemented from CCompositeObj3D.

void SetColor ( COLORREF  rColor  )  [virtual]

Set the color of the object.

Parameters:
rColor The new color for the object.

Reimplemented from CObject3D.

void SetStyle ( int  nStyle  )  [virtual]

Set the shape of the object.

Parameters:
nStyle The new shape for the object.

Reimplemented from CObject3D.

CString GetObjectDef (  )  [virtual]

Get the definition of the object.

The definition of an object is a string containing a complete description of the object, including references to the objects to which it depends for its construction. Names of the objects and its parents are automatically updated. For example, a segment will be defined by "S is a segment line going through A and B". This definition is mainly used to populate the History view (see CViewHisto) and the status bar when an object is designated (see CViewUniv::OnUpdateObjTooltip).

Reimplemented from CObject3D.

UINT CalculConceptuel (  )  [virtual]

Recompute the analytical representation of the object.

Returns:
0 if the computation is correct, an error code otherwise.
See also:
Description of all Error Codes

Reimplemented from CCompositeObj3D.