52#ifndef _SO_PROFILE_COORDINATE_ELEMENT
53#define _SO_PROFILE_COORDINATE_ELEMENT
55#include <Inventor/SbBasic.h>
56#include <Inventor/SbLinear.h>
57#include <Inventor/elements/SoReplacedElement.h>
86 int32_t numCoords,
const SbVec2f *coords);
92 int32_t numCoords,
const SbVec3f *coords);
102 int32_t
getNum()
const {
return numCoords; }
149 virtual void init(
SoState *state);
153 static void initClass();
154 static void exitClass();
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.