VisualizationFoundation CAT2DArcCircleGP
Usage: you must use this class as is. You should never derive it.
public class CAT2DArcCircleGP
Class to create a dynamic graphic primitives of a 2D circle arc or a 2D circle.
Constructor and Destructor Index
- o
CAT2DArcCircleGP()
- Default constructor.
- o
CAT2DArcCircleGP(CATMathPoint2D&,double,double,double,int,int)
- Constructs a 2D circle arc Graphic primitive.
- o
CAT2DArcCircleGP(CATMathPoint2Df&,double,double,double,int,int)
- Constructs a 2D circle arc Graphic primitive.
Method Index
- o
Draw(CATRender&)
- Draws the dynamic graphic primitive with a render.
- o
Get(double**,double*,double*,double*,int*)
- Retrieves data about the 2D circle arc or the 2D circle.
- o
Modify(float[2],float)
- Modifies the center or the radius of the 2D circle arc or the 2D circle.
Constructor and Destructor
o CAT2DArcCircleGP
public CAT2DArcCircleGP( | ) |
-
Default constructor.
o CAT2DArcCircleGP
public CAT2DArcCircleGP( | const | iCenter, |
| const | iRadius, |
| const | iStart_angle | = 0.0, |
| const | iEnd_angle | = 6.2831853, |
| const | iFill | = NOFILL, |
| const | iStaticSagUsed | = 0) |
-
Constructs a 2D circle arc Graphic primitive.
- Parameters:
-
- iCenter
- the center of the 2D circle or 2D circle arc, it is a 2D point.
- iRadius
- the radius of the 2D circle or 2D circle arc.
- iStart_angle
- the start angle to construct a 2D circle arc.
legal values: the default value is 0.
By this way, it creates a 2D circle.
- iEnd_angle
- the end angle to construct a 2D circle arc.
legal values: the default value is 2*pi.
By this way, it creates a 2D circle.
- iFill
- the integer which allows to construct a 2D circle arc or a 2D circle
just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D circle arc or the 2D circle is filled
with graphic attributes.
- iStaticSagUsed
- used to specify wheter using a dynamic or a static sag
for the circle arc visualization.
legal values:
0 : the sag value is static and taken from settings,
and is constant whatever the distance between the viewpoint
and the circle arc be
1 : the sage value is dynamic and calculated
depending on the distance between the viewpoint and
the circle arc.
o CAT2DArcCircleGP
public CAT2DArcCircleGP( | const | iCenter, |
| const | iRadius, |
| const | iStart_angle | = 0., |
| const | iEnd_angle | = 6.2831853, |
| const | iFill | = NOFILL, |
| const | iStaticSagUsed | = 0) |
-
Constructs a 2D circle arc Graphic primitive.
- Parameters:
-
- iCenter
- the center of the 2D circle or 2D circle arc, it is a 2D point.
- iRadius
- the radius of the 2D circle or 2D circle arc.
- iStart_angle
- the start angle to construct a 2D circle arc.
legal values: the default value is 0.
By this way, it creates a 2D circle.
- iEnd_angle
- the end angle to construct a 2D circle arc.
legal values: the default value is 2*pi.
By this way, it creates a 2D circle.
- iFill
- the integer which allows to construct a 2D circle arc or a 2D circle
just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D circle arc or the 2D circle is filled
with graphic attributes.
- iStaticSagUsed
- used to specify wheter using a dynamic or a static sag
for the circle arc visualization.
legal values:
0 : the sag value is static and taken from settings,
and is constant whatever the distance between the viewpoint
and the circle arc be
1 : the sage value is dynamic and calculated
depending on the distance between the viewpoint and
the circle arc.
Methods
o Draw
public virtual Draw( | | iRender) |
-
Draws the dynamic graphic primitive with a render.
- Parameters:
-
- iRender
- the render used to draw the dynamic graphic primitive.
o Get
public Get( | | oCenter, |
| | oRadius, |
| | oBegin_angle, |
| | oEnd_angle, |
| | oFill) |
-
Retrieves data about the 2D circle arc or the 2D circle.
- Parameters:
-
- oCenter
- the center of the 2D circle or 2D circle arc, it is a 2D point.
- oRadius
- the radius of the 2D circle or 2D circle arc.
- oBegin_angle
- the begin angle to construct a 2D circle arc.
legal values: the default value is 0.
By this way, it creates a 2D circle.
- oEnd_angle
- the end angle to construct a 2D circle arc.
legal values: the default value is 2*pi.
By this way, it creates a 2D circle.
- oFill
- the integer which allows to construct a 2D circle arc or a 2D circle
just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D circle arc or the 2D circle is filled
with graphic attributes.
o Modify
public Modify( | const | iCenter, |
| const | iRadius) |
-
Modifies the center or the radius of the 2D circle arc or the 2D circle.
- Parameters:
-
- iCenter
- the new center of the 2D circle arc or the 2D circle
- iRadius
- the new radius of the 2D circle arc or the 2D circle
This object is included in the file: CAT2DArcCircleGP.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.