CPoint3D Class Reference
[Calques 3D - Geometrical Objects]


Detailed Description
The basic point, defined by its coordinates in space.Public Member Functions | |
| virtual void | Serialize (CArchive &ar) |
| Store and load the object into and from an archive. | |
| virtual CxSchemeSet * | GetRedefineSchemes (CxSchemeSet *pSet) |
| Retrieve the list of possible redefinition schemes of the object. | |
| virtual CObject3D * | CopyObject () |
| Create a clone of this object. | |
| virtual BOOL | IsEqual (CObject3D &other) |
| Verify if this object is analytically identical to another one. | |
| virtual BOOL | GraftOn (CObject3D *pNew) |
| Graft this object to the designated target. | |
| virtual BOOL | SetParents (CxObject3DSet *pSet) |
| Set the parents of the object. | |
| virtual UINT | GetNameID () const |
| Get the resource ID of the string containing the default name of the object. | |
| virtual UINT | GetHelpID () const |
| Get the resource ID of the string containing the designation of the object. | |
| virtual UINT | GetDefID () const |
| Get the resource ID of the string containing the definition of the object. | |
| virtual COLORREF | GetDefaultColor () |
| Get the default color associated with the object. | |
| virtual DWORD | isA () const |
| Get the identifier representing the type of the object. | |
| virtual BOOL | IsInActiveArea (CPoint pt) |
| Verify if the cursor lies within the active region of this object. | |
| virtual CRgn * | InvalideRect () |
| Create a GDI region covering this object. | |
| virtual UINT | IsAlignedWith (CObject3D *pObj1, CObject3D *pObj2) |
| Verify if this object is analytically align with two other ones. | |
| virtual void | TranslateBy (CVector4 ptVec) |
| Translate the position of this object by the specified vector. | |
| virtual int | SetDepth () |
| Update the depth of this object in the dependence graph. | |
| virtual void | CopyPointPosition (CObject3D *) |
| Apply - if adequate - the coordinates of the given object to this object. | |
| virtual void | CopyPointPosition (CVector4) |
| Apply - if adequate - the coordinates of the given object to this object. | |
| virtual UINT | CalculConceptuel () |
| Recompute the analytical representation of the object. | |
| virtual void | CalculVisuel (CVisualParam *) |
| Recompute the graphical representation of the object (in the universe or tracing view). | |
| virtual void | Draw (CDC *pDC, CVisualParam *vp, BOOL bSm=0) |
| Method CObject3D::Draw. | |
| virtual void | DrawRetro (CDC *pDC, CVisualParam *vp) |
| Method CObject3D::DrawRetro. | |
| virtual void | DrawSelected (CDC *pDC, CVisualParam *vp) |
| Method CObject3D::DrawSelected. | |
| virtual CString | ExportSymbolic (int nFormat) |
| Method CObject3D::ExportSymbolic. | |
| virtual void | GetRange (CVector4 &min, CVector4 &max) |
| Recompute the definition range (in terms of spatial coordinates) of the object. | |
| virtual void | Draw3DRendering (int nVolMode) |
| Method CObject3D::Draw3DRendering. | |
| virtual BOOL | MoveObject (CVisualParam *, UINT, CPoint, CVector4 &) |
| Called by the framework to perform the deformation of the object. | |
Public Attributes | |
| CVector4 | Concept_pt |
| 3D coordinates of the point | |
| CPoint | Visual_pt |
| 2D coordinates of the point's projection | |
| BOOL | bUp |
| TRUE is Z-coordinate positive. | |
Member Function Documentation
| 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 CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| CxSchemeSet * GetRedefineSchemes | ( | CxSchemeSet * | pSet | ) | [virtual] |
Retrieve the list of possible redefinition schemes of the object.
- Parameters:
-
pSet A pointer to the current list of schemes to be populated.
- Returns:
- A pointer to the populated list of schemes.
Reimplemented from CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSur3D, CPointSurD3D, CPointSurP3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| CObject3D * CopyObject | ( | ) | [virtual] |
Create a clone of this object.
- Returns:
- A pointer to the clone of this object.
Reimplemented from CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| 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.
| BOOL GraftOn | ( | CObject3D * | pNew | ) | [virtual] |
| virtual BOOL SetParents | ( | CxObject3DSet * | pSet | ) | [inline, virtual] |
Set the parents of the object.
Reimplemented from CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| virtual UINT GetNameID | ( | ) | const [inline, virtual] |
Get the resource ID of the string containing the default name of the object.
Reimplemented from CObject3D.
| virtual UINT GetHelpID | ( | ) | const [inline, virtual] |
Get the resource ID of the string containing the designation of the object.
Reimplemented from CObject3D.
| virtual UINT GetDefID | ( | ) | const [inline, virtual] |
Get the resource ID of the string containing the definition of the object.
Reimplemented from CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| COLORREF GetDefaultColor | ( | ) | [virtual] |
Get the default color associated with the object.
- Returns:
- The default color (RGB)
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 CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| BOOL IsInActiveArea | ( | CPoint | pt | ) | [virtual] |
Verify if the cursor lies within the active region of this object.
- Parameters:
-
pt The location - in view's coordinates - of the cursor.
- Returns:
- TRUE if the cursor is hovering the object, FALSE otherwise.
Reimplemented from CObject3D.
| CRgn * InvalideRect | ( | ) | [virtual] |
Create a GDI region covering this object.
- Returns:
- A new instance of an encompassing region.
Reimplemented from CObject3D.
Verify if this object is analytically align with two other ones.
- Parameters:
-
pObj1 A pointer to the first object to compare with this one. pObj2 A pointer to the second object to compare with this one.
- Returns:
- The code for the property verification
- See also:
- Relation Verification Codes
Reimplemented from CObject3D.
| void TranslateBy | ( | CVector4 | ptVec | ) | [virtual] |
| virtual int SetDepth | ( | ) | [inline, 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.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| void CopyPointPosition | ( | CObject3D * | pObj | ) | [virtual] |
Apply - if adequate - the coordinates of the given object to this object.
- Parameters:
-
pObj A pointer to the object whose coordinates will be duplicated.
Reimplemented from CObject3D.
Reimplemented in CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, and CPointSurCyl3D.
| void CopyPointPosition | ( | CVector4 | ptLoc | ) | [virtual] |
Apply - if adequate - the coordinates of the given object to this object.
- Parameters:
-
ptLoc The 3D coordinates to apply to this object.
Reimplemented from CObject3D.
Reimplemented in CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, and CPointSurCyl3D.
| 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 CObject3D.
Reimplemented in CPointCalc3D, CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
| void CalculVisuel | ( | CVisualParam * | pVisParam | ) | [virtual] |
Recompute the graphical representation of the object (in the universe or tracing view).
- Parameters:
-
pVisParam The visual parameters associated with the view.
Reimplemented from CObject3D.
| void Draw | ( | CDC * | pDC, | |
| CVisualParam * | vp, | |||
| BOOL | bSm = 0 | |||
| ) | [virtual] |
Method CObject3D::Draw.
- Parameters:
-
pDC A pointer to the device-context associated with the drawing view vp A pointer to the visual parameters of the view bSm TRUE if the object is displayed in a reduced form, FALSE otherwise
Reimplemented from CObject3D.
| void DrawRetro | ( | CDC * | pDC, | |
| CVisualParam * | vp | |||
| ) | [virtual] |
Method CObject3D::DrawRetro.
- Parameters:
-
pDC A pointer to the device-context associated with the drawing view vp A pointer to the visual parameters of the view
Reimplemented from CObject3D.
Reimplemented in CPointSurC3D, CPointSurP3D, CPointSurS3D, and CPointSurCyl3D.
| void DrawSelected | ( | CDC * | pDC, | |
| CVisualParam * | vp | |||
| ) | [virtual] |
Method CObject3D::DrawSelected.
- Parameters:
-
pDC A pointer to the device-context associated with the drawing view vp A pointer to the visual parameters of the view
Reimplemented from CObject3D.
| CString ExportSymbolic | ( | int | nFormat | ) | [virtual] |
Method CObject3D::ExportSymbolic.
- Parameters:
-
nFormat The format to use for exporting the object (see CObject3D::TGraphType)
- Returns:
- A String containing the symbolic representation of the object
Reimplemented from CObject3D.
Reimplemented in CPointMilieu3D, CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, CPointSurCyl3D, CPointInterDD3D, CPointInterDP3D, CPointCenter3D, CPointSymetric3D, and CPointTranslat3D.
Recompute the definition range (in terms of spatial coordinates) of the object.
- Parameters:
-
min The minimum coordinates of the objects in the X, Y and Z axis. max The maximum coordinates of the objects in the X, Y and Z axis.
Reimplemented from CObject3D.
| void Draw3DRendering | ( | int | nVolMode | ) | [virtual] |
Method CObject3D::Draw3DRendering.
- Todo:
- Add the OpenGL representation for all objects
Reimplemented from CObject3D.
| BOOL MoveObject | ( | CVisualParam * | pVisual, | |
| UINT | nModKey, | |||
| CPoint | pt, | |||
| CVector4 & | loc | |||
| ) | [virtual] |
Called by the framework to perform the deformation of the object.
- Parameters:
-
pVisual A pointer to the visual parameters of the view the deformation is taking place in. nModKey Indicates whether various virtual keys are down. pt The location - in view coordinates - of the cursor during deformation loc A reference to the 3D coordinate corresponding to the new object's location.
- Returns:
- TRUE if the deformation took place, FALSE otherwise
Reimplemented from CObject3D.
Reimplemented in CPointSurD3D, CPointSurC3D, CPointSurP3D, CPointSurS3D, and CPointSurCyl3D.
Member Data Documentation
3D coordinates of the point
| CPoint Visual_pt |
2D coordinates of the point's projection
| BOOL bUp |
TRUE is Z-coordinate positive.



