IGTensionSpline

The IGTensionSpline class provides a cubic matrix spline, where the curve is defined by points, and interpolation is controlled by bias and tension values. IGTensionSpline is one of several lightweight classes derived from IGCurve2D. Its sole purpose is to render unambiguous the constructors for cubic splines having similar arguments. Note the number of points must be a multiple of four (else assertion).

Note also that the IRawArray does not check whether allocation is successful. Before construction, one should check if there is enough memory and use a reasonable size.


IGTensionSpline - Member Functions and Data by Group

Constructors & Destructor

Use the constructors and destructor in this group to create and destroy objects of class IGTensionSpline.


[view class]
~IGTensionSpline
public:
virtual ~IGTensionSpline()
Destroys the IGTensionSpline object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IGTensionSpline
Constructs an object of class IGTensionSpline.


Overload 1
Default constructor which does nothing.
public:
IGTensionSpline()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
Copy constructor.
public:
IGTensionSpline(const IGTensionSpline&)
Use this constructor to create an IGTensionSpline object that is copied from the given one.

IGCardinalSpline
A constant reference to the spline to be copied.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 3
Constructs a curve as a cubic matrix spline, where the curve is defined by points, and interpolation is controlled by bias and tension values.
public:
IGTensionSpline( const IGPoint2DArray& points, GCoordinate tension, GCoordinate bias )
Use this constructor to create a curve as a cubic matrix spline, where the curve is defined by points, and interpolation is controlled by bias and tension values.

points
The control points.
tension
The tension. 1.0 is a normalized value.
bias
The bias. This skews the curve towards a particular control point.

Exception

A parameter assertion fails if the number of points is not a multiple of four.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IGTensionSpline - Inherited Member Functions and Data

Inherited Public Functions

IBaseCurve
IGCurve2D

Inherited Public Data

Inherited Protected Functions

IBaseCurve
IGCurve2D

Inherited Protected Data