Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TGCurve
Inherited By:
None.
Purpose:
TGTensionSpline is one of several lightweight classes derived from TGCurve whose sole purpose is to disambiguate the constructors for cubic splines having similar arguments. Applications shouldn't define variables of type TGTensionSpline. Instead, use TGCurve and rely on TGTensionSpline only for its constructor. For example:
TGCurve myCurve =TGTensionSpline( points, tension, bias );
This creates a curve as a cubic matrix spline, where the curve is defined by points, and interpolation is controlled by bias and tension values.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive from this class.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TGTensionSpline (const TGPointArray & points, GCoordinate tension, GCoordinate bias)
- TGTensionSpline ()
- TGTensionSpline (const TGTensionSpline &)
Interface Category:
API.
Purpose:
- Constructs a curve as a cubic matrix spline, where the curve is defined by points, and interpolation is controlled by bias and tension values.
- Default constructor.
- Copy constructor.
Calling Context:
- Call this function directly.
- Called by the stream-in operators. You can also call this function directly.
- Called to copy an object.
Parameters:
- const TGPointArray & points -The control points.
- GCoordinate tension -The tension. 1.0 is a normalized value; the curve gets pulled closer to the control points as the tension increases.
- GCoordinate bias -The bias. This skews the curve towards a particular control point.
- Takes no parameters.
- const TGTensionSpline & -The spline to be copied.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TGTensionSpline ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.