Allows read-only access to the top element in the state. More...
#include <Inventor/elements/SoTangentElement.h>
Public Member Functions | |
int32_t | getNum () const |
Returns the number of tangent vectors in an instance. | |
const SbVec3f & | get (int index) const |
Returns the indexed tangent from an element. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging). | |
![]() | |
virtual void | push (SoState *state) |
Pushes element. | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Pops element. | |
virtual SoType | getTypeId () const |
Returns type identifier for element instance. | |
![]() | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
static void | set (SoState *state, SoNode *node, int32_t numTangents, const SbVec3f *tangents) |
Sets the current tangents. | |
static const SoTangentElement * | getInstance (SoState *state) |
Returns the top (current) instance of the element in the state. | |
![]() | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
![]() | |
static SoType | getClassTypeId () |
Returns type identifier for SoElement class. | |
![]() | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Allows read-only access to the top element in the state.
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.
SoTangent, SoVertexProperty
Definition at line 40 of file SoTangentElement.h.
|
inline |
Returns the indexed tangent from an element.
Definition at line 70 of file SoTangentElement.h.
|
static |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
|
inlinestatic |
Returns the top (current) instance of the element in the state.
Definition at line 54 of file SoTangentElement.h.
|
inline |
Returns the number of tangent vectors in an instance.
Definition at line 62 of file SoTangentElement.h.
|
virtual |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
|
static |
Sets the current tangents.