VisualizationFoundation CAT2DPolygonRep

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


public class CAT2DPolygonRep

Class to create the representation of a 2D polygon.
Role:

           Example of a CAT2DPolygon with 4 points :

             point 1 X--------------------X point 2
                     |                    |
                     |                    |
             point 4 X--------------------X point 3
              


Constructor and Destructor Index


o CAT2DPolygonRep()
Default contructor.
o CAT2DPolygonRep(float*,int,int)
Constructs a 2D polygon representation from a list of points.
o ~CAT2DPolygonRep()

Method Index


o GetGeomElement(int)

Constructor and Destructor


o CAT2DPolygonRep
public CAT2DPolygonRep()
Default contructor.
o CAT2DPolygonRep
public CAT2DPolygonRep( const iPoints,
const iNbPoints,
const iFill)
Constructs a 2D polygon representation from a list of points. The last point is linked to the first point.
Parameters:
iPoints
Array containing the x, y coordinates for each point of the polygon. Its size is equal to two times the number of points. So, the coordinates x, y of the first point are respectively stored in iPoints[0], and iPoints[1], the coordinates x, y of the second point, in iPoints[2], iPoints[3], and so on...
iNbPoints
The number of points used to define the polygon.
iFill
the integer which allows to construct a 2D polygon 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.
The default value is FILL.
o ~CAT2DPolygonRep
public virtual ~CAT2DPolygonRep()

Methods


o GetGeomElement
public virtual GetGeomElement( iIndice)

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

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