Open Inventor Reference
|
Piecewise-linear profile curve. More...
#include <Inventor/nodes/SoLinearProfile.h>
Public Member Functions | |
SoLinearProfile () | |
Creates a linear profile node with default settings. | |
virtual void | getTrimCurve (SoState *state, int32_t &numPoints, float *&points, int &floatsPerVec, int32_t &numKnots, float *&knotVector) |
Returns a profile as a trim curve. | |
virtual void | getVertices (SoState *state, int32_t &nVertices, SbVec2f *&vertices) |
Returns vertices defining the profile. | |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Protected Member Functions | |
virtual | ~SoLinearProfile () |
This node specifies a piecewise-linear curve that is used as a profile for either a trimming patch of a Nurbs surface or for the bevel of SoText3. The index field indexes into the current profile coordinates (specified in an SoProfileCoordinate2 or SoProfileCoordinate3 node). If the last value of the index field is SO_LINEAR_PROFILE_USE_REST_OF_VERTICES
(-1), all remaining coordinates in the current coordinates will be used, starting with the coordinate after the previous index (all coordinates will be used if SO_LINEAR_PROFILE_USE_REST_OF_VERTICES
is the only value in the index field). For example, if index contains the values [2,0,-1]
and there are 4 profile coordinates (0-3), it is as if the index field contains [2,0,1,2,3]
.
LinearProfile { index 0 linkage START_FIRST }
Definition at line 106 of file SoLinearProfile.h.
SoLinearProfile::SoLinearProfile | ( | ) |
virtual SoLinearProfile::~SoLinearProfile | ( | ) | [protected, virtual] |
virtual void SoLinearProfile::getTrimCurve | ( | SoState * | state, |
int32_t & | numPoints, | ||
float *& | points, | ||
int & | floatsPerVec, | ||
int32_t & | numKnots, | ||
float *& | knotVector | ||
) | [virtual] |
numKnots will be zero. floatsPerVec will be either 2 or 3 depending on whether the curve is non-rational or rational.
Implements SoProfile.
virtual void SoLinearProfile::getVertices | ( | SoState * | state, |
int32_t & | nVertices, | ||
SbVec2f *& | vertices | ||
) | [virtual] |
Implements SoProfile.
static void SoLinearProfile::initClass | ( | ) | [static] |
Reimplemented from SoProfile.