All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CAT3DFixedPlanGP

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---VisualizationBase.CATGraphicPrimitive
        |
        +---VisualizationBase.CATDynamicGP
          |
          +---CAT3DFixedPlanGP
 

Usage: you must use this class as is. You should never derive it.


public class CAT3DFixedPlanGP

Class to create the graphic primitive of a 3D fixed plan.
Role: Graphic primitive to display a 3D square which size remains constant on the screen (i.e, does not change with zoom, etc..)


Constructor and Destructor Index


o CAT3DFixedPlanGP()
Default constructor
o CAT3DFixedPlanGP(CATMathPointf,CATMathDirectionf,CATMathDirectionf,float)
Constructs a 3D fixed plan from an origin, two directions, and a lenght expressed in millimeters.

Method Index


o Get(CATMathPointf&,CATMathDirectionf&,CATMathDirectionf&)
Retrieves the 3D fixed plan parameters.
o ImmediateDraw(CATRender&,CATViewpoint*,CATViewport*)
Draws the 3D fixed plan.

Constructor and Destructor


o CAT3DFixedPlanGP
public CAT3DFixedPlanGP()
Default constructor
o CAT3DFixedPlanGP
public CAT3DFixedPlanGP( const CATMathPointf iOrigin,
const CATMathDirectionf iDirection1,
const CATMathDirectionf iDirection2,
const float iLengthInMM)
Constructs a 3D fixed plan from an origin, two directions, and a lenght expressed in millimeters.

                         -----------------------------      ^
                        |                             |     |
                        |          iDirection1        |     |     
                        |              ^              |     |
                        |              |              |     |
                        |              |  iDirection2 |     |
                        |              x --->         |     | iLenghtInMM
                        |           iOrigin           |     |
                        |                             |     |
                        |                             |     |
                        |                             |     |
                        |                             |     |
                        |                             |     |
                         -----------------------------      v

                         <--------------------------->
                                  iLenghtInMM
       

 
Parameters:
iOrigin
The square center.
iDirection1
The first direction which is parallel to two of the edges.
iDirection2
The second direction which is parallel to the two other edges.
iLengthInMM
The square length expressed in millimeters.

Methods


o Get
public void Get(CATMathPointf& oOrigin,
CATMathDirectionf& oDirection1,
CATMathDirectionf& oDirection2)
Retrieves the 3D fixed plan parameters.
Parameters:
oOrigin
The center of the square.
oDirection1
The first square direction. (Direction parallel to two of the square edges)
oDirection2
The second square direction. (Direction parallel to the two other edges)
o ImmediateDraw
public virtual void ImmediateDraw(CATRender& iRender,
const CATViewpoint* iViewpoint,
const CATViewport* iViewport)
Draws the 3D fixed plan.
Parameters:
iRender
The render through which the plan is drawn.
iViewpoint
The viewpoint through which the plan is seen.
iViewport
The viewport in which the plan is located.

This object is included in the file: CAT3DFixedPlanGP.h
If needed, your Imakefile.mk should include the module: CATViz

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