VisualizationFoundation class CAT2DRectangleGP
Usage: you must use this class as is. You should never derive it.
public class CAT2DRectangleGP
Class to create a dynamic graphic primitive of a 2D rectangle.
Constructor and Destructor Index
- o
CAT2DRectangleGP()
- Default constructor.
- o
CAT2DRectangleGP(float[2],float[2],int)
- Constructs a 2D rectangle dynamic graphic primitive.
Method Index
- o
Draw(CATRender&)
- Draws the dynamic graphic primitive with a render.
- o
Get(float**,float**,int*)
- Retrieves data about the 2D rectangle.
Constructor and Destructor
o CAT2DRectangleGP
public CAT2DRectangleGP( | ) |
-
Default constructor.
o CAT2DRectangleGP
public CAT2DRectangleGP( | const float[2] | iBottomLeft, |
| const float[2] | iTopRight, |
| const int | iFill | =NOFILL) |
-
Constructs a 2D rectangle dynamic graphic primitive.
+----------------------x topRight Point
| |
bottoLeft point x----------------------+
- Parameters:
-
- iBottomLeft
- the bottom-left 2D point of the 2D rectangle (XY).
- iTopRight
- the top-right 2D point of the 2D rectangle (XY).
- iFill
- the integer which allows to construct a 2D rectangle
just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D rectangle is filled
with graphic attributes.
By default, the 2D rectangle is not filled.
Methods
o Draw
-
Draws the dynamic graphic primitive with a render.
- Parameters:
-
- iRender
- the render used to draw the dynamic graphic primitive.
o Get
public inline void Get( | float** | oBottomLeft, |
| float** | oTopRight, |
| int* | oFill) const |
-
Retrieves data about the 2D rectangle.
- Parameters:
-
- oBottomLeft
- the bottom-left 2D point of the 2D rectangle (XY).
- oTopRight
- the top-right 2D point of the 2D rectangle (XY).
- oFill
- the integer which allows to construct a 2D rectangle
just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D rectangle is filled
with graphic attributes.
This object is included in the file: CAT2DRectangleGP.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.