VisualizationFoundation CAT2DPolylineGP

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


public class CAT2DPolylineGP

Class to create the graphic primitive of a 2D polyline.
Role:

              Example of a CAT2DPolyline made of four points :

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


Constructor and Destructor Index


o CAT2DPolylineGP(float[],int,int)
Constructs a 2D polyline graphic primitive from a list of points.
o CAT2DPolylineGP(CATMathPoint2Df[],int,int)
Constructs a 2D polyline graphic primitive from a list of points.

Constructor and Destructor


o CAT2DPolylineGP
public CAT2DPolylineGP( const iPoints,
const iNbPoints=2,
const iAlloc=ALLOCATE)
Constructs a 2D polyline graphic primitive from a list of points.
Parameters:
iPoints
Array containing the x, y coordinates for each point of the polyline. 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 polyline.
Legal values: the default value is 2.
iAlloc
Parameter used to specify whether to allocate or not the data.
Legal values:
  • ALLOCATE : All data are duplicated into the graphic primitive
  • DONT_ALLOCATEb : The graphic primitive has a pointer to the data given as parameter
o CAT2DPolylineGP
public CAT2DPolylineGP( const iPoints,
const iNbPoints=2,
const iAlloc=ALLOCATE)
Constructs a 2D polyline graphic primitive from a list of points.
Parameters:
iPoints
Array containing 2D points which define the polyline. Its size is equal to one time the number of points.
iNbPoints
The number of points used to define the polyline.
Legal values: the default value is 2.
iAlloc
Parameter used to specify whether to allocate the data or not.
Legal values:
  • ALLOCATE : All data are duplicated into the graphic primitive
  • DONT_ALLOCATEb : The graphic primitive has a pointer to the data given as parameter

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

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