All Frameworks Class Hierarchy This Framework Next Indexes
Visualization Class CAT2DViewer
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---System.CATEventSubscriber
|
+---System.CATCommand
|
+---Dialog.CATDialog
|
+---Dialog.CATDlgBox
|
+---Dialog.CATDlgFrame
|
+---Visualization.CATViewer
|
+---CAT2DViewer
Usage: you must use this class as is. You should never derive it.
public class CAT2DViewer
Class to display 2D Graphic Representations on the screen.
Constructor and Destructor Index
- o
CAT2DViewer(CATDialog*,CATString&,CATDlgStyle,int,int,CATViewerStyle)
- Creates a 2D Dialog frame.
Method Index
- o
ClassId()
- Returns the class identifier for which the given object is an instance.
- o
GetGlobal2DBoundingBox()
- Gets the rectangle zone of the representations attached to the viewer.
- o
GetModelCoordinates(CATMathPoint2Df&)
- Gets the pixel position at which a given model point is displayed.
- o
GetPixelCoordinates(CATMathPoint2Df&)
- Gets the point expressed in the model coordinate system lying under the given pixel position.
- o
GetViewport(float&,float&,float&,float&)
- Gets the rectangle zone seen through the window.
- o
ReframeOn(float,float,float,float)
- Reframes a zone of the model into the window.
- o
SetPlane(CATMathPlane&)
- Synchronizes the 3DMainViewpoint and the 2DMainViewpoint.
Constructor and Destructor
o CAT2DViewer
-
Creates a 2D Dialog frame.
- Parameters:
-
- iFather
- Dialog object the viewer will be inserted into.
- iName
- Name of the viewer.
- iStyle
- Frame style (See CATDlgFrame styles)
- iWidth
- Width of the viewer's window (in pixel)
- iHeight
- Height of the viewer's window
- iViewerStyle
- Options of the viewer's behaviour.
Methods
o ClassId
-
Returns the class identifier for which the given object is an instance.
o GetGlobal2DBoundingBox
-
Gets the rectangle zone of the representations attached to the viewer.
return CAT2DBoundingBox.
o GetModelCoordinates
-
Gets the pixel position at which a given model point is displayed.
- Parameters:
-
- iPixelPoint
o GetPixelCoordinates
-
Gets the point expressed in the model coordinate system lying under the given pixel position.
- Parameters:
-
- iModelPoint
o GetViewport
public virtual void GetViewport( | float& | oXMinModel, |
| float& | oXMaxModel, |
| float& | oYMinModel, |
| float& | oYMaxModel) const |
-
Gets the rectangle zone seen through the window.
- Parameters:
-
- oXMinModel
- Left side of the zone
- oXMaxModel
- Right side of the zone
- oYMinModel
- Bottom side of the zone
- oYMaxModel
- Top side of the zone
o ReframeOn
public virtual void ReframeOn( | const float | iXMinModel | =-1e+10, |
| const float | iXMaxModel | =1e+10, |
| const float | iYMinModel | =-1e+10, |
| const float | iYMaxModel | =1e+10) |
-
Reframes a zone of the model into the window.
This zone is described in model
coordinates. All the zone (or more depending of width/height ratios) is seen.
- Parameters:
-
- iXMinModel
- Left side of the zone
- iXMaxModel
- Right side of the zone
- iYMinModel
- Bottom side of the zone
- iYMaxModel
- Top side of the zone
o SetPlane
-
Synchronizes the 3DMainViewpoint and the 2DMainViewpoint.
The synchronization is done by a geometrical relation : The position
of the 2D viewpoint'space into 3D viewpoint'space is gived by a 3D Plane.
- Parameters:
-
- iPlane
- plane of the 2D space into 3D space.
This object is included in the file: CAT2DViewer.h
If needed, your Imakefile.mk should include the module: CATVisualization