All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Class CAT3DArcEllipseGP

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---VisualizationBase.CATGraphicPrimitive
        |
        +---VisualizationBase.CATDynamicGP
          |
          +---CAT3DArcEllipseGP
 

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


public class CAT3DArcEllipseGP

Class to create the dynamic graphic primitive of a 3D arc ellipse or a 3D ellipse.


Constructor and Destructor Index


o CAT3DArcEllipseGP(CATMathPointf&,CATMathVectorf&,float,float,CATMathVectorf&,float,float,int)
Constructs a 3D ellipse arc or a 3D ellipse graphic primitive

Method Index


o ImmediateDraw(CATRender&,CATViewpoint*,CATViewport*)
Draws the ellipse arc.
o Modify(CATMathPointf&,CATMathVectorf&,CATMathVectorf&)
Modify the ellipse arc.
o Modify(CATMathPointf&,CATMathVectorf&,float,float,CATMathVectorf&,float,float,int)
Modify the ellipse arc.
o Modify(CATMathPointf&,float,float,float,float)
Modify the ellipse arc.

Constructor and Destructor


o CAT3DArcEllipseGP
public CAT3DArcEllipseGP( const CATMathPointf& iCenter,
const CATMathVectorf& iNormal,
const float iXRadius,
const float iYRadius,
const CATMathVectorf& iReferenceAxis,
const float iBeginAngle= 0.f,
const float iEndAngle= 6.2831853f,
const int iStaticSagUsed= 0)
Constructs a 3D ellipse arc or a 3D ellipse graphic primitive
Parameters:
iCenter
The center of the ellipse arc.
iNormal
The normal to the ellipse plan. This vector must be normalized
iXRadius
The ellipse arc radius in the reference axis direction.
iYRadius
The ellipse arc radius in the reference axis normal direction
iReferenceAxis
The reference axis. It is in the ellipse plan.
iStartAngle
The start angle of the arc with respect to the reference axis.
Legal values: The default start angle value is 0.
iEndAngle
The end angle of the arc with respect to the reference axis.
Legal values: The default end angle value is 360 degrees.
iStaticSagUsed
Used to specify whether using a dynamic or a static sag for the ellipse arc visualization.
Legal values:
1
The sag value is static and taken from the settings, and is constant whatever the distance between the view point and the ellipse arc may be
0
The sag value is dynamic and calculated depending on the distance between the view point and the ellipse arc

Methods


o ImmediateDraw
public virtual void ImmediateDraw(CATRender& iRender,
const CATViewpoint* iViewpoint,
const CATViewport* iViewport)
Draws the ellipse arc.
Parameters:
iRender
The render through which the arc is drawn.
iViewpoint
The viewpoint through which the arc is seen.
iViewport
The viewport in which the arc is located.
o Modify
public void Modify( const CATMathPointf& iCenter,
const CATMathVectorf& iNormal,
const CATMathVectorf& iAxis)
Modify the ellipse arc.
Parameters:
iCenter
The center of the ellipse.
iNormal
The normal to the plane of the ellipse.
iAxis
The direction in the plane of the ellipse used as major axis.
o Modify
public void Modify( const CATMathPointf& iCenter,
const CATMathVectorf& iNormal,
const float iMajorRadius,
const float iMinorRadius,
const CATMathVectorf& iAxis,
const float iStartAngle,
const float iEndAngle,
const int iStaticSagUsed)
Modify the ellipse arc.
Parameters:
iCenter
The center of the ellipse.
iNormal
The normal to the plane of the ellipse.
iMajorRadius
The radius of the ellipse along the major axis, parallel to iAxis.
iMinorRadius
The radius of the ellipse along the minor axis, normal to iAxis.
iAxis
The direction in the plane of the ellipse used as major axis.
iStartAngle
The offset in radian of the beginning of the ellipse arc.
iEndAngle
The offset in radian of the end of the ellipse arc.
iStaticSagUsed
Used to specify whether using a dynamic or a static sag for the ellipse arc.
Legal values:
1
The sag value is static and taken from the settings, and is constant whatever the distance between the view point and the arc ellipse may be
0
The sag value is dynamic and calculated depending on the distance between the view point and the arc ellipse
o Modify
public void Modify( const CATMathPointf& iCenter,
const float iMajorRadius,
const float iMinorRadius,
const float iStartAngle,
const float iEndAngle)
Modify the ellipse arc.
Parameters:
iCenter
The center of the ellipse.
iMajorRadius
The radius of the ellipse along the major axis, parallel to iAxis.
iMinorRadius
The radius of the ellipse along the minor axis, normal to iAxis.
iStartAngle
The offset in radian of the beginning of the ellipse arc.
iEndAngle
The offset in radian of the end of the ellipse arc.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.