SoProfileCoordinateElement Class Reference
[Elements]

Stores the current profile coordinates. More...

#include <Inventor/elements/SoProfileCoordinateElement.h>

Inheritance diagram for SoProfileCoordinateElement:
SoReplacedElement SoElement SoTypedObject

List of all members.

Public Member Functions

int32_t getNum () const
const SbVec2fget2 (int index) const
const SbVec3fget3 (int index) const
const SbVec2fgetCoord2 () const
const SbVec3fgetCoord3 () 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 ()

Detailed Description

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.

SEE ALSO

SoProfileCoordinate2, SoProfileCoordinate3


Member Function Documentation

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.

SbBool SoProfileCoordinateElement::is2D (  )  const [inline]

TRUE if set2() was called.

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.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/