52#ifndef _SO_PROFILE_COORDINATE_ELEMENT
53#define _SO_PROFILE_COORDINATE_ELEMENT
86 int32_t numCoords,
const SbVec2f *coords);
92 int32_t numCoords,
const SbVec3f *coords);
102 int32_t
getNum()
const {
return numCoords; }
153 static void initClass();
154 static void exitClass();
#define SoEXTENDER_Documented
#define SO_ELEMENT_HEADER(className)
Abstract base class for all database nodes.
Stores the current profile coordinates.
const SbVec3f & get3(int index) const
Returns the indexed coordinate from an element as a 3D vector, converting if necessary.
static void set3(SoState *state, SoNode *node, int32_t numCoords, const SbVec3f *coords)
Sets the current 3D profile coordinates.
const SbVec3f * getCoord3() const
Returns the array of SbVec3f without any conversion.
static SbVec3f getDefault3()
Returns the default 3D profile coordinate.
static void set2(SoState *state, SoNode *node, int32_t numCoords, const SbVec2f *coords)
Sets the current 2D profile coordinates.
int32_t getNum() const
Returns the number of coordinate points in an instance.
SbBool is2D() const
TRUE if set2() was called.
static SbVec2f getDefault2()
Returns the default 2D profile coordinate.
const SbVec2f * getCoord2() const
Returns the array of SbVec2f without any conversion.
const SbVec2f & get2(int index) const
Returns the indexed coordinate from an element as a 2D vector, converting if necessary.
virtual void print(FILE *fp) const
Prints element (for debugging).
static const SoProfileCoordinateElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
Abstract base class for each state element whose value is replaced whenever it is set.