Open Inventor Reference
SoNurbsProfile Class Reference

NURBS profile curve. More...

#include <Inventor/nodes/SoNurbsProfile.h>

Inheritance diagram for SoNurbsProfile:
SoProfile SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoNurbsProfile ()
 Creates a NURBS profile curve 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 approximating the profile.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoMFFloat knotVector
 The knot vector for the NURBS curve.

Protected Member Functions

virtual ~SoNurbsProfile ()

Detailed Description

This node specifies a NURBS curve that is used as a profile. The curve is defined in the same way as a standard SoNurbsCurve, except that the control points are constructed from the current set of profile coordinates, using the index field.

File Format/Default
NurbsProfile {
  index 0
  linkage START_FIRST
  knotVector 0
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoRayPickAction
Adds a profile to the current traversal state.
See Also
SoLinearProfile, SoNurbsCurve, SoProfileCoordinate2, SoProfileCoordinate3

Definition at line 93 of file SoNurbsProfile.h.


Constructor & Destructor Documentation

SoNurbsProfile::SoNurbsProfile ( )
virtual SoNurbsProfile::~SoNurbsProfile ( ) [protected, virtual]

Member Function Documentation

virtual void SoNurbsProfile::getTrimCurve ( SoState state,
int32_t numPoints,
float *&  points,
int &  floatsPerVec,
int32_t numKnots,
float *&  knotVector 
) [virtual]

floatsPerVec will be either 2 or 3 depending on whether the curve is non-rational or rational.

Implements SoProfile.

virtual void SoNurbsProfile::getVertices ( SoState state,
int32_t nVertices,
SbVec2f *&  vertices 
) [virtual]

Implements SoProfile.

static void SoNurbsProfile::initClass ( ) [static]

Reimplemented from SoProfile.


Member Data Documentation

It must be a list of non-decreasing floating point values.

Definition at line 103 of file SoNurbsProfile.h.


The documentation for this class was generated from the following file: