A 3D Dynamic Geometry Software

Calques 3D C++



CVisualParam Class Reference

Inheritance diagram for CVisualParam:

Inheritance graph
Collaboration diagram for CVisualParam:

Collaboration graph

List of all members.


Detailed Description

CVisualParam.

Public Types

enum  TVisuType { VisuNone, VisuRep, VisuPlane, VisuClois }
 Types of System of Reference (SoR) used in Calques3D. More...
enum  TVisuParam { ID_THETA, ID_PHI, ID_RHO, ID_DIS }
 Identifiers of the projection parameters. More...

Public Member Functions

CVector4 ProjectPoint (CVector4 src)
 Method CVisualParam::ProjectPoint.

Public Attributes

int nVisuKind
 Nature of the SoR.
BOOL bParProj
 TRUE if parallel projection, FALSE otherwise.
SProjection ProjParam
 The current projection parameters.
int nWndWidth
 Width of the projection plane.
int nWndHeight
 Height of the projection plane.
CPoint ptRepCoord
 Center of the projected SoR.
int nCalqueNum
 Index of the current tracing.
FCoord nZoom
 Zoom factor of the projection.
BOOL bDrawMark
 TRUE if the objects' marks are drawn, FALSE otherwise.
BOOL bFixed
 TRUE if the projection parameters are fixed, FALSE otherwise.
BOOL bKeepProj
 TRUE if the projection is maintained during deformation, FALSE otherwise.
BOOL bFeedPlane
 TRUE if the base plane (for point creation/deformation) is materialized.
CPoint3DOrig
 A pointer to the point materializing the origin of the SoR.
CPlan3DF
 A pointer to the plane materializing the horizontal wall.
CPlan3DG
 A pointer to the plane materializing the left wall.
CPlan3DH
 A pointer to the plane materializing the right wall.

Private Attributes

FCoord ST
 Saving computation of sin(t).
FCoord SP
 Saving computation of sin(p).
FCoord CT
 Saving computation of cos(t).
FCoord CP
 Saving computation of cos(p).

Member Enumeration Documentation

enum TVisuType

Types of System of Reference (SoR) used in Calques3D.

Enumerator:
VisuNone  No SoR is visible.
VisuRep  SoR materialized by the three axes.
VisuPlane  SoR materialized by an horizontal floor.
VisuClois  SoR materialized by three perpendicular walls.

enum TVisuParam

Identifiers of the projection parameters.

Enumerator:
ID_THETA  Theta angle.
ID_PHI  Phi angle.
ID_RHO  Distance of the projection plane.
ID_DIS  Distance from the observer.


Member Function Documentation

CVector4 ProjectPoint ( CVector4  src  ) 

Method CVisualParam::ProjectPoint.

///    | Px |   | -sin(t)        cos(t)         0        0 |   | Sx |
///    | Py |   | -cos(t)sin(p)  -sin(t)sin(p)  cos(p)   0 |   | Sy |
///    | Pz | = | -cos(t)cos(p)  -sin(t)cos(p)  -sin(p)  r | * | Sz |
///    | Pw |   | 0              0              0        1 |   | Sw |
/// 


Member Data Documentation

int nVisuKind

Nature of the SoR.

BOOL bParProj

TRUE if parallel projection, FALSE otherwise.

The current projection parameters.

int nWndWidth

Width of the projection plane.

Height of the projection plane.

CPoint ptRepCoord

Center of the projected SoR.

Index of the current tracing.

Zoom factor of the projection.

BOOL bDrawMark

TRUE if the objects' marks are drawn, FALSE otherwise.

BOOL bFixed

TRUE if the projection parameters are fixed, FALSE otherwise.

BOOL bKeepProj

TRUE if the projection is maintained during deformation, FALSE otherwise.

BOOL bFeedPlane

TRUE if the base plane (for point creation/deformation) is materialized.

A pointer to the point materializing the origin of the SoR.

A pointer to the plane materializing the horizontal wall.

A pointer to the plane materializing the left wall.

A pointer to the plane materializing the right wall.

FCoord ST [private]

Saving computation of sin(t).

FCoord SP [private]

Saving computation of sin(p).

FCoord CT [private]

Saving computation of cos(t).

FCoord CP [private]

Saving computation of cos(p).