All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

GeometricObjects Interface CATPSpline

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---GeometricObjects.CATICGMUnknown
        |
        +---GeometricObjects.CATICGMObject
          |
          +---GeometricObjects.CATGeometry
            |
            +---GeometricObjects.CATCurve
              |
              +---GeometricObjects.CATPCurve
                |
                +---CATPSpline
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATPSpline

Interface representing a curve interpolated between a set of points on surface with a spline interpolation .

The CATPSpline is created by the CreatePSpline method of the CATGeoFactory interface and deleted with the Remove method. It is defined with:
CATMathSetOfPoints Points The set of points on surface defining the curve
CATSurface iSupport The surface on which the Spline is defined
The user may define its own parameterization on the curve.


Method Index


o AddOnePoint(CATLONG32,double,double*,double*,double*,CATLONG32,CATLONG32)
Adds a point to the definition of this CATPSpline.
o GetDegree()
Get the degree of this CATPSpline .
o GetNumberOfPoints()
Returns the number points defining this CATPSpline.
o GetOneParameter(CATLONG32)
Returns the global parameter of a definition point of this CATPSpline .
o GetOnePoint(CATLONG32,CATSurParam&)
Returns the parameter of a definition point of this CATPSpline.
o GetOneSecondDerivative(CATLONG32,CATMathVector2D&)
Returns the second derivative at a definition point of this CATPSpline.
o GetOneTangent(CATLONG32,CATMathVector2D&)
Returns the tangent at a definition point of this CATPSpline.
o ReplaceOneParameter(CATLONG32,double&)
Modifies this CATPSpline definition point parameter.
o ReplaceOnePoint(CATLONG32,CATSurParam&)
Modifies the definition of one point of this.
o ReplaceOneTangent(CATLONG32,CATMathVector2D&)
Modifies the tangent of one definition point of this CATPSpline.
o SetOneParameter(CATLONG32,double&)
o SetOnePoint(CATLONG32,CATSurParam&)
o SetOneSecondDerivative(CATLONG32,CATMathVector2D&)
Modifies the second derivative of a point of this CATPSpline.
o SetOneTangent(CATLONG32,CATMathVector2D&)

Methods


o AddOnePoint
public virtual CATBoolean AddOnePoint( const CATLONG32 iRankNumber,
const double iParam,
const double* iPoint,
const double* iTangent,
const double* iSecondDerivative,
const CATLONG32 iFirstCoordIndex,
const CATLONG32 iSecondCoordIndex) = 0
Adds a point to the definition of this CATPSpline.
Parameters:
iRankNumber
The position of the added point (1 to be inserted between the first and the second point).
iParam
The parameter of the added point on the curve
iPoint
The array of the point coordinates.
iTangent
The array of the tangent coordinates.
iSecondDerivative
The array of the second derivative coordinates.
iFirstCoordIndex
This index is such that the point, tangent and second derivative of the first coordinate of the spline are the values of index iFirstCoordIndex
iSecondCoordIndex
Idem as iFirstCoordIndex but for the second coordinate of the spline.
o GetDegree
public virtual CATLONG32 GetDegree()const = 0
Get the degree of this CATPSpline .
Returns:
The degree of this CATPSpline .
o GetNumberOfPoints
public virtual CATLONG32 GetNumberOfPoints()const = 0
Returns the number points defining this CATPSpline.
Returns:
The number of points
o GetOneParameter
public virtual double GetOneParameter(CATLONG32 iNum) const = 0
Returns the global parameter of a definition point of this CATPSpline .
Parameters:
iNum
The number of the definition point starting at 1.
Returns:
The parameter value on the curve.
o GetOnePoint
public virtual void GetOnePoint(CATLONG32 iNum,
CATSurParam& ioParam) const = 0
Returns the parameter of a definition point of this CATPSpline.
Parameters:
iNum
The number of the definition point starting at 1.
ioParam
The corresponding parameter on the underlying surface.
o GetOneSecondDerivative
public virtual void GetOneSecondDerivative(CATLONG32 iNum,
CATMathVector2D& ioSecondDerivativeVector)const = 0
Returns the second derivative at a definition point of this CATPSpline.
Parameters:
iNum
The number of the definition point starting at 1.
ioSecondDerivativeVector
The corresponding second derivative on the underlying surface.
o GetOneTangent
public virtual void GetOneTangent(CATLONG32 iNum,
CATMathVector2D& ioTangentVector)const = 0
Returns the tangent at a definition point of this CATPSpline.
Parameters:
iNum
The number of the definition point starting at 1.
ioTangentVector
The corresponding tangent on the underlying surface.
o ReplaceOneParameter
public virtual void ReplaceOneParameter(CATLONG32 iNum,
const double& iNewParameter) = 0
Modifies this CATPSpline definition point parameter.
Parameters:
iNum
The number of the definition point starting at 1.
iNewParameter
The new parameter value on the curve.
o ReplaceOnePoint
public virtual void ReplaceOnePoint(CATLONG32 iNum,
const CATSurParam& iNewCoord) = 0
Modifies the definition of one point of this.
Parameters:
iNum
The number of the definition point starting at 1.
iNewCoord
The new parameter value on the surface.
o ReplaceOneTangent
public virtual void ReplaceOneTangent(CATLONG32 iNum,
const CATMathVector2D& iNewTangent) = 0
Modifies the tangent of one definition point of this CATPSpline.
Parameters:
iNum
The number of the definition point starting at 1.
iNewTangent
The corresponding tangent on the underlying surface.
o SetOneParameter
public virtual void SetOneParameter(CATLONG32 iNum,
const double& iNewParameter) = 0
Deprecated:
V5R17 ReplaceOneParameter
o SetOnePoint
public virtual void SetOnePoint(CATLONG32 iNum,
const CATSurParam& iNewCoord) = 0
Deprecated:
V5R17 ReplaceOnePoint
o SetOneSecondDerivative
public virtual void SetOneSecondDerivative(CATLONG32 iNum,
const CATMathVector2D& iSecondDerivativeVector)= 0
Modifies the second derivative of a point of this CATPSpline.
Parameters:
iNum
The number of the definition point starting at 1.
iSecondDerivativeVector
The corresponding second derivative on the underlying surface. If the spline degree is 3, this does nothing.
o SetOneTangent
public virtual void SetOneTangent(CATLONG32 iNum,
const CATMathVector2D& iNewTangent) = 0
Deprecated:
V5R17 ReplaceOneTangent

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

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