Open Inventor Reference
SoProfileCoordinateElement Class Reference

Element storing the current profile coordinates, as either 2-D or 3-D points. More...

#include <Inventor/elements/SoProfileCoordinateElement.h>

Inheritance diagram for SoProfileCoordinateElement:
SoReplacedElement SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
int32_t getNum () const
 Returns the number of coordinate points in an instance.
const SbVec2fget2 (int index) const
 Returns the indexed coordinate from an element as a 2- or 3-vector, converting if necessary.
const SbVec3fget3 (int index) const
SbBool is2D () const
 TRUE if set2() was called.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

static void set2 (SoState *state, SoNode *node, int32_t numCoords, const SbVec2f *coords)
 Sets the current profile coordinates.
static void set3 (SoState *state, SoNode *node, int32_t numCoords, const SbVec3f *coords)
static const
SoProfileCoordinateElement
getInstance (SoState *state)
 Returns the top (current) instance of the element in the state.
static SbVec2f getDefault2 ()
 Returns the default profile coordinate.
static SbVec3f getDefault3 ()
static void initClass ()
 Initializes the SoCoordinateElement class.

Protected Member Functions

virtual ~SoProfileCoordinateElement ()

Protected Attributes

int32_t numCoords
const SbVec2fcoords2
const SbVec3fcoords3
SbBool coordsAre2D

Detailed Description

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.

Definition at line 75 of file SoProfileCoordinateElement.h.


Constructor & Destructor Documentation

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

Member Function Documentation

const SbVec2f& SoProfileCoordinateElement::get2 ( int  index) const
const SbVec3f& SoProfileCoordinateElement::get3 ( int  index) const
static SbVec2f SoProfileCoordinateElement::getDefault2 ( ) [inline, static]

Definition at line 104 of file SoProfileCoordinateElement.h.

static SbVec3f SoProfileCoordinateElement::getDefault3 ( ) [inline, static]

Definition at line 105 of file SoProfileCoordinateElement.h.

static const SoProfileCoordinateElement* SoProfileCoordinateElement::getInstance ( SoState state) [static]
int32_t SoProfileCoordinateElement::getNum ( ) const [inline]

Definition at line 93 of file SoProfileCoordinateElement.h.

virtual void SoProfileCoordinateElement::init ( SoState state) [virtual]

Reimplemented from SoReplacedElement.

static void SoProfileCoordinateElement::initClass ( ) [static]

Reimplemented from SoReplacedElement.

SbBool SoProfileCoordinateElement::is2D ( ) const [inline]

Definition at line 101 of file SoProfileCoordinateElement.h.

virtual void SoProfileCoordinateElement::print ( FILE *  fp) const [virtual]

Reimplemented from SoReplacedElement.

static void SoProfileCoordinateElement::set2 ( SoState state,
SoNode node,
int32_t  numCoords,
const SbVec2f coords 
) [static]
static void SoProfileCoordinateElement::set3 ( SoState state,
SoNode node,
int32_t  numCoords,
const SbVec3f coords 
) [static]

Member Data Documentation

Definition at line 115 of file SoProfileCoordinateElement.h.

Definition at line 116 of file SoProfileCoordinateElement.h.


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