VisualizationFoundation CAT2DArcEllipseGP

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


public class CAT2DArcEllipseGP

Class to create a dynamic graphic primitives of a 2D ellipse arc or a 2D ellipse.


Constructor and Destructor Index


o CAT2DArcEllipseGP()
Default constructor.
o CAT2DArcEllipseGP(CATMathPoint2D&,double,double,double,double,double,int,int)
Constructs a 2D ellipse arc Graphic primitive.
o CAT2DArcEllipseGP(CATMathPoint2Df&,double,double,double,double,double,int,int)
Constructs a 2D ellipse arc Graphic primitive.

Method Index


o Draw(CATRender&)
Draws the dynamic graphic primitive with a render.
o Get(double**,double*,double*,double*,double*,double*)
Retrieves data about the 2D ellipse arc or the 2D ellipse.
o ImmediateDraw(CATRender&,CATViewpoint*,CATViewport*)
Draws a 2D ellipse arc or a 2D ellipse.
o IsFilled()
Returns whether or not the 2D ellipse is filled.
o Modify(float[2],float,float)
Modifies the 2D ellipse arc or the 2D ellipse.

Constructor and Destructor


o CAT2DArcEllipseGP
public CAT2DArcEllipseGP()
Default constructor.
o CAT2DArcEllipseGP
public CAT2DArcEllipseGP( const iCenter,
const iXRadius,
const iYRadius,
const iStart_angle= 0.,
const iEnd_angle= 6.2831853,
const iOffset= 0.,
const iFill= NOFILL,
const iStaticSagUsed= 0)
Constructs a 2D ellipse arc Graphic primitive.
Parameters:
iCenter
the center of the 2D ellipse or 2D ellipse arc, it is a 2D point.
iXRadius
the radius among X axis of the 2D ellipse or 2D ellipse arc.
iYRadius
the radius among Y axis of the 2D ellipse or 2D ellipse arc.
iStart_angle
the start angle to construct a 2D ellipse arc.
legal values: the default value is 0. By this way, it creates a 2D ellipse.
iEnd_angle
the end angle to construct a 2D ellipse arc.
legal values: the default value is 2*pi. By this way, it creates a 2D ellipse.
iOffset
the angle between X axis and main axis of the 2D ellipse. By this way, it is possible to rotate the 2D ellipse arc or the 2D ellipse in the 2D plan.
iFill
the integer which allows to construct a 2D ellipse arc or a 2D ellipse just with edges or filled with some graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D ellipse arc or the 2D ellipse is filled with graphic attributes.
iStaticSagUsed
used to specify wheter using a dynamic or a static sag for the ellipse 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 ellipse arc be
1 : the sage value is dynamic and calculated depending on the distance between the viewpoint and the ellipse arc.
o CAT2DArcEllipseGP
public CAT2DArcEllipseGP( const iCenter,
const iXRadius,
const iYRadius,
const iStart_angle= 0.,
const iEnd_angle= 6.2831853,
const iOffset= 0.,
const iFill= NOFILL,
const iStaticSagUsed= 0)
Constructs a 2D ellipse arc Graphic primitive.
Parameters:
iCenter
the center of the 2D ellipse or 2D ellipse arc, it is a 2D point.
iXRadius
the radius among X axis of the 2D ellipse or 2D ellipse arc.
iYRadius
the radius among Y axis of the 2D ellipse or 2D ellipse arc.
iStart_angle
the start angle to construct a 2D ellipse arc.
legal values: the default value is 0. By this way, it creates a 2D ellipse.
iEnd_angle
the end angle to construct a 2D ellipse arc.
legal values: the default value is 2*pi. By this way, it creates a 2D ellipse.
iOffset
the angle between X axis and main axis of the 2D ellipse. By this way, it is possible to rotate the 2D ellipse arc or the 2D ellipse in the 2D plan.
iFill
the integer which allows to construct a 2D ellipse arc or a 2D ellipse just with edges or filled with some graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D ellipse arc or the 2D ellipse is filled with graphic attributes.
iStaticSagUsed
used to specify wheter using a dynamic or a static sag for the ellipse 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 ellipse arc be
1 : the sage value is dynamic and calculated depending on the distance between the viewpoint and the ellipse 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,
oXradius,
oYradius,
oBegin_angle,
oEnd_angle,
oOffset)
Retrieves data about the 2D ellipse arc or the 2D ellipse.
Parameters:
oCenter
the center of the 2D ellipse or 2D ellipse arc, it is a 2D point.
oXRadius
the radius among X axis of the 2D ellipse or 2D ellipse arc.
oYRadius
the radius among Y axis of the 2D ellipse or 2D ellipse arc.
oBegin_angle
the started angle to construct a 2D ellipse arc.
legal values: the default value is 0. By this way, it creates a 2D ellipse.
oEnd_angle
the end angle to construct a 2D ellipse arc.
legal values: the default value is 2*pi. By this way, it creates a 2D ellipse.
oOffset
the angle between X axis and main axis of the 2D ellipse.
oFill
the integer which allows to construct a 2D ellipse arc or a 2D ellipse just with edges or filled with graphic attributes.
legal values:
NOFILL : just edges are drawn.
FILL : the 2D ellipse arc or the 2D ellipse is filled with graphic attributes.
o ImmediateDraw
public virtual ImmediateDraw( iRender,
const iViewpoint,
const iViewport)
Draws a 2D ellipse arc or a 2D ellipse.
Parameters:
iRender
the render used to draw the 2D ellipse arc or the 2D ellipse.
iViewpoint
the viewpoint used to draw the 2D ellipse arc or the 2D ellipse.
iViewport
the viewport used to draw tthe 2D ellipse arc or the 2D ellipse.
o IsFilled
public IsFilled()
Returns whether or not the 2D ellipse is filled.
o Modify
public Modify( const iCenter,
const iXRadius,
const iYRadius)
Modifies the 2D ellipse arc or the 2D ellipse.
Parameters:
iCenter
the new center of the 2D ellipse or 2D ellipse arc, it is a 2D point.
iXRadius
the new radius among X axis of the 2D ellipse or 2D ellipse arc.
iYRadius
the new radius among Y axis of the 2D ellipse or 2D ellipse arc.

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

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