VisualizationFoundation 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 iOrigin,
const iDirection1,
const iDirection2,
const 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 Get( oOrigin,
oDirection1,
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 ImmediateDraw( iRender,
const iViewpoint,
const 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: CATVisFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.