VisualizationFoundation CAT2DTo3DRep

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


public class CAT2DTo3DRep

Class to immerge a 2D Representation into a 3D Viewpoint.
Role: This class adds 2DRep into a 3D rep tree You can use this class to display 2D elements into a 3D vue.


Constructor and Destructor Index


o CAT2DTo3DRep()
o CAT2DTo3DRep(CAT2DBagRep*,CATMathPointf&,CATMathDirectionf&,CATMathDirectionf&,int)
o ~CAT2DTo3DRep()

Method Index


o AddChild(CATRep&)
Adds a child representation to the bag.
o ComputeBoundingElement(int)
Recalculates the bounding element.
o CreateRep()
Constructs an empty 2DTo3D graphic representation.
o CreateRep(CAT2DBagRep*,CATMathPointf&,CATMathDirectionf&,CATMathDirectionf&,int)
Constructs a CAT2Dto3DRep rep.

Constructor and Destructor


o CAT2DTo3DRep
public CAT2DTo3DRep()
Deprecated:
R417 : Use CreateRep instead.
o CAT2DTo3DRep
public static CAT2DTo3DRep( ibag2D,
const ipoint,
const idir_x,
const idir_y,
const i_mode=0)
Deprecated:
R417 : Use CreateRep instead.
o ~CAT2DTo3DRep
public virtual ~CAT2DTo3DRep()

Methods


o AddChild
public virtual AddChild( iRep)
Adds a child representation to the bag.
Parameters:
iRep
Child representation to be added.
o ComputeBoundingElement
public virtual ComputeBoundingElement( iShowSpace=1)
Recalculates the bounding element.
Parameters:
iShowSpace
o CreateRep
public static CreateRep()
Constructs an empty 2DTo3D graphic representation.
o CreateRep
public static CreateRep( ibag2D,
const ipoint,
const idir_x,
const idir_y,
const i_mode=0)
Constructs a CAT2Dto3DRep rep.
Parameters:
ibag2D
The CAT2DBagRep containing the CAT2DRep to display
ipoint
The position of the CAT2DBagRep inside the 3D view
idir_x
The X direction inside the 3D view
idir_y
The Y direction inside the 3D view
istatic_mode
When this paramter is set to 0 (default value), the CAT2DBagRep will move according to the 3D View. When this parameter is set to 1, CAT2DBagRep will be modified so that it will always be drawn in front of the screen. When this parameter is set to 2, CAT2DBagRep will move according to the 3D View but it will be drawn only if the scalar product between the 3D sight direction and (idir_x^idir_y) is negative.

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

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