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
public CAT2DViewer(CATDialog* iFather,
const CATString& iName,
CATDlgStyle iStyle=NULL,
const int iWidth= 800,
const int iHeight= 500,
const CATViewerStyle 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
public static const CLSID & __stdcall ClassId()
Returns the class identifier for which the given object is an instance.
o GetGlobal2DBoundingBox
public virtual CAT2DBoundingBox GetGlobal2DBoundingBox()
Gets the rectangle zone of the representations attached to the viewer. return CAT2DBoundingBox.
o GetModelCoordinates
public virtual CATMathPoint2Df GetModelCoordinates( const CATMathPoint2Df& iPixelPoint) const
Gets the pixel position at which a given model point is displayed.
Parameters:
iPixelPoint
o GetPixelCoordinates
public virtual CATMathPoint2Df GetPixelCoordinates( const CATMathPoint2Df& iModelPoint) const
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
public void SetPlane( const CATMathPlane& 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: CATVisualization

Copyright © 2003, Dassault Systèmes. All rights reserved.