VisualizationController 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
public CAT2DViewer( | | iFather, |
| const | iName, |
| | style | =NULL, |
| const | iWidth | = 800, |
| const | Height | = 500, |
| const | iViewerStyle | =NULL) |
-
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
public virtual GetGlobal2DBoundingBox( | ) |
-
Gets the rectangle zone of the representations attached to the viewer.
return CAT2DBoundingBox.
o GetModelCoordinates
public virtual GetModelCoordinates( | const | iPixelPoint) |
-
Gets the pixel position at which a given model point is displayed.
- Parameters:
-
- iPixelPoint
o GetPixelCoordinates
public virtual GetPixelCoordinates( | const | iModelPoint) |
-
Gets the point expressed in the model coordinate system lying under the given pixel position.
- Parameters:
-
- iModelPoint
o GetViewport
public virtual GetViewport( | | oXMinModel, |
| | oXMaxModel, |
| | oYMinModel, |
| | oYMaxModel) |
-
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 ReframeOn( | const | iXMinModel | =-1e+10, |
| const | iXMaxModel | =1e+10, |
| const | iYMinModel | =-1e+10, |
| const | 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
public SetPlane( | const | iPlane) |
-
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: CATVisController
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.