CATSketcherUseItf Interface CATISktUse2DSplineCurve
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATISktUse2DSplineCurve
Method Index
- o
AddLastPoint(CATISktUse2DPoint*,int)
- Inserts control point in the spline at the last position.
- o
Compute(int)
- Computes the spline, according to the recorded control points.
- o
GetClosure(int*)
- Gets whether the curve is closed.
- o
GetCstPoints(CATLISTV(CATISktUse2DCstPoint_var)&)
- Gives the list of the control points of the spline.
- o
GetDegree(int*)
- Gives the degree of the curve (3 or 5)
- o
InsertControlPointAfter(CATISktUse2DPoint*,unsigned long,int)
- Inserts control point in the spline.
- o
RemovePoint(CATISktUse2DPoint*,int)
- Removes control point in the spline.
- o
SetClosure(int)
- Sets whether the curve is closed.
Methods
o AddLastPoint
public virtual AddLastPoint( | | iPoint, |
| const | iEvaluationType) |
-
Inserts control point in the spline at the last position.
If a 2D point is given (and not a control point), a new control point is created
and aggregated in the spline.
If a 2D control point is given, it will be aggregated in the spline.
If the 2D control point is previously aggregated in a spline, the return code will be E_FAIL.
- Parameters:
-
- iPoint
- The new point to be inserted. (@see CATISktUse2DPoint and CATISktUse2DCstPoint for more information).
- iEvaluationType
- Unused.
o Compute
public virtual Compute( | const | iEvaluationType) |
-
Computes the spline, according to the recorded control points.
- Parameters:
-
- iEvaluationType
- Unused.
o GetClosure
public virtual GetClosure( | | oClosed) |
-
Gets whether the curve is closed.
- Parameters:
-
- oClosed
- Closing flag
- 1
- for a closed curve
- 0
- for an open curve
o GetCstPoints
public virtual GetCstPoints( | | oCstPointsList) |
-
Gives the list of the control points of the spline.
- Parameters:
-
- oCstPointsList
- The list of the control points. (@see CATISktUse2DPoint and CATISktUse2DCstPoint for more information).
o GetDegree
public virtual GetDegree( | | oDegree) |
-
Gives the degree of the curve (3 or 5)
- Parameters:
-
- oDegree
- The degree of the spline curve
o InsertControlPointAfter
public virtual InsertControlPointAfter( | | iPoint, |
| const | iPosition, |
| const | iEvaluationType) |
-
Inserts control point in the spline.
If a 2D point is given (and not a control point), a new control point is created
and aggregated in the spline.
If a 2D control point is given, it will be aggregated in the spline.
If the 2D control point is previously aggregated in a spline, the return code will be E_FAIL.
- Parameters:
-
- iPoint
- The new point to be inserted. (@see CATISktUse2DPoint and CATISktUse2DCstPoint for more information).
- iPosition
- The position at which to insert the point.
To insert a new control point as the first element, set iPosition to 0.
- iEvaluationType
- Unused.
o RemovePoint
public virtual RemovePoint( | | iPoint, |
| const | iEvaluationType) |
-
Removes control point in the spline.
- Parameters:
-
- iPoint
- The point to be removed. (@see CATISktUse2DPoint and CATISktUse2DCstPoint for more information).
- iEvaluationType
- Unused.
o SetClosure
public virtual SetClosure( | const | iClosed) |
-
Sets whether the curve is closed.
- Parameters:
-
- iClosed
- Closing flag
- 1
- for a closed curve
- 0
- for an open curve
This object is included in the file: CATISktUse2DSplineCurve.h
If needed, your Imakefile.mk should include the module: CATSketcherUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.