SmallChange
1.0.0
A collection of extensions to Coin3D
|
The SoTCBCurve class is a node for representing smooth curves. More...
#include <Inventor/nodes/SoTCBCurve.h>
Public Member Functions | |
SoTCBCurve (void) | |
int | getLinesPerSegment (void) |
Static Public Member Functions | |
static void | initClass (void) |
static void | TCB (const SbVec3f *vec, const SoMFTime ×tamp, const int numControlpoints, const SbTime time, SbVec3f &res) |
Public Attributes | |
SoSFInt32 | numControlpoints |
SoMFTime | timestamp |
Protected Member Functions | |
virtual | ~SoTCBCurve () |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
virtual void | generatePrimitives (SoAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
The SoTCBCurve class is a node for representing smooth curves.
The TCB-type curve guarantees that all control points are touched by the curve. If no timestamps are specified, all time intervals are set to equal length. Coordinates are read from the state.
Note that the list of timestamps must be sorted in increasing order.
Example usage:
SoTCBCurve::SoTCBCurve | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
Returns an integer with the number of lines per segment rendered at the previous pass.
|
static |
Static function to interpolate values along a curve.
This function is based on the Lightwave SDK (ftp.newtek.com) and calculates a TCB-type curve. Code for handling continuity / tension / bias is removed (values = 1). Quite ironic as this is how the curve got its name. :) The timestamp table must be sorted in increasing order. Time values specified outside the range of timestamps will be clipped to the nearest value.
This function is totally independent of the rest of the class, and may be used for general curve calculations.
SoSFInt32 SoTCBCurve::numControlpoints |
Number of control points to use in this NURBS curve.
SoMFTime SoTCBCurve::timestamp |
The timestamps for the curve. This table must contain either 0 elements or exactly numControlpoints elements. Nothing in between. This list must be sorted in increasing order.