Stores the current profile coordinates. More...
#include <Inventor/elements/SoProfileCoordinateElement.h>
Public Member Functions | |
| int32_t | getNum () const |
| const SbVec2f & | get2 (int index) const |
| const SbVec3f & | get3 (int index) const |
| const SbVec2f * | getCoord2 () const |
| const SbVec3f * | getCoord3 () const |
| SbBool | is2D () const |
| virtual void | print (FILE *fp) const |
Static Public Member Functions | |
| static SoType | getClassTypeId () |
| static int | getClassStackIndex () |
| static void | set2 (SoState *state, SoNode *node, int32_t numCoords, const SbVec2f *coords) |
| static void | set3 (SoState *state, SoNode *node, int32_t numCoords, const SbVec3f *coords) |
| static const SoProfileCoordinateElement * | getInstance (SoState *state) |
| static SbVec2f | getDefault2 () |
| static SbVec3f | getDefault3 () |
Stores the current profile coordinates.
This element stores the current profile coordinates, as either 2D or 3D points.
This class allows read-only access to the top element in the state to make accessing several values in it more efficient. Individual values must be accessed through this instance.
SoProfileCoordinate2, SoProfileCoordinate3
| const SbVec2f& SoProfileCoordinateElement::get2 | ( | int | index | ) | const |
Returns the indexed coordinate from an element as a 2D vector, converting if necessary.
| const SbVec3f& SoProfileCoordinateElement::get3 | ( | int | index | ) | const |
Returns the indexed coordinate from an element as a 3D vector, converting if necessary.
| static int SoProfileCoordinateElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
| static SoType SoProfileCoordinateElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
| const SbVec2f* SoProfileCoordinateElement::getCoord2 | ( | ) | const [inline] |
Returns the array of SbVec2f without any conversion.
The pointer may be NULL if coordinates are specified as 3D vectors.
| const SbVec3f* SoProfileCoordinateElement::getCoord3 | ( | ) | const [inline] |
Returns the array of SbVec3f without any conversion.
The pointer may be NULL if coordinates are specified as 2D vectors.
| static SbVec2f SoProfileCoordinateElement::getDefault2 | ( | ) | [inline, static] |
Returns the default 2D profile coordinate.
| static SbVec3f SoProfileCoordinateElement::getDefault3 | ( | ) | [inline, static] |
Returns the default 3D profile coordinate.
| static const SoProfileCoordinateElement* SoProfileCoordinateElement::getInstance | ( | SoState * | state | ) | [static] |
Returns the top (current) instance of the element in the state.
| int32_t SoProfileCoordinateElement::getNum | ( | ) | const [inline] |
Returns the number of coordinate points in an instance.
| virtual void SoProfileCoordinateElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
| static void SoProfileCoordinateElement::set2 | ( | SoState * | state, | |
| SoNode * | node, | |||
| int32_t | numCoords, | |||
| const SbVec2f * | coords | |||
| ) | [static] |
Sets the current 2D profile coordinates.
| static void SoProfileCoordinateElement::set3 | ( | SoState * | state, | |
| SoNode * | node, | |||
| int32_t | numCoords, | |||
| const SbVec3f * | coords | |||
| ) | [static] |
Sets the current 3D profile coordinates.