VisualizationFoundation CAT2DLineRep

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


public class CAT2DLineRep

Class to create the representation of a 2D segment.
Role : this representation is composed only of one 2D segment.


Constructor and Destructor Index


o CAT2DLineRep()
Default constructor.
o CAT2DLineRep(float[4])
Constructs the representation of a 2D segment.
o CAT2DLineRep(float[],int,int,int,TessFlag)
Constructs a 2D line representation from point coordinates.
o CAT2DLineRep(CATMathPoint2Df&,CATMathPoint2Df&)
Constructs the representation of a 2D segment.
o ~CAT2DLineRep()

Method Index


o Modify(float[4])
Modifies the representation of a 2D segment.
o Modify(CATMathPoint2Df&,CATMathPoint2Df&)
Modifies the representation of a 2D segment.

Constructor and Destructor


o CAT2DLineRep
public CAT2DLineRep()
Default constructor.
o CAT2DLineRep
public CAT2DLineRep( const iPoints)
Constructs the representation of a 2D segment.
Parameters:
iPoints
The coordinates of the extremities of the 2D segment (XYXY).
o CAT2DLineRep
public CAT2DLineRep( const iPoints,
const iNbPoints,
const iAlloc=ALLOCATE,
const iLinetype= LINES,
const iTessFlag= LINE)
Constructs a 2D line representation from point coordinates.
Parameters:
iPoints
Array of point coordinates: XYXYXY... Its size is equal to two times the number of points.
iNbPoints
The number of points.
iAlloc
Flag used to specify whether points must be duplicated or not.
Legal values:
  • ALLOCATE : All data are duplicate into the graphic primitive
  • DONT_ALLOCATE The graphic primitive has a pointer to the data given as parameter
The default value is ALLOCATE.
iLineType
Flag to specify the line type to use.
Legal values:
  • LINES : The number of points must be even. A line will be drawn between points 1 and 2, another line will be drawn between points 3 and 4, ...
                           point 1 X--------------------X point 2
                                                       point 3 X-----------------------X point 4
    			
  • LINE_STRIP : The number of points can be either even or odd. A line will be drawn between points 1 and 2, then, another line will be drawn between points 2 and 3, ...
                           point 1 X--------------------X point 2
                                                       /
                                                     /
                                                   /
                                          point 3 X----------------------X point 4
    			
  • LINE_LOOP : Same as LINE_LOOP, excepted that one more line will be drawn between the last and the first points.
                                        point 1 X--------X point 2
                                                 \      /
                                                  \    /      
                                                   \  /
                                                    \/
                                                    /\
                                                   /  \
                                          point 3 X----X point 4
    			
The default value is LINES.
o CAT2DLineRep
public CAT2DLineRep( const iFirstPoint,
const iSecondPoint)
Constructs the representation of a 2D segment.
Parameters:
iFirstPoint
The first extremity of the line segment.
iSecondPoint
The second extremity of the line segment.
o ~CAT2DLineRep
public virtual ~CAT2DLineRep()

Methods


o Modify
public Modify( const iPoints)
Modifies the representation of a 2D segment.
Parameters:
iPoints
The coordinates of the extremities of the 2D segment.
o Modify
public Modify( const iFirstPoint,
const iSecondPoint)
Modifies the representation of a 2D segment.
Parameters:
iFirstPoint
The first extremity of the line segment.
iSecondPoint
The second extremity of the line segment.

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

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