SoTangentElement Class Reference
[Elements]

Allows read-only access to the top element in the state. More...

#include <Inventor/elements/SoTangentElement.h>

Inheritance diagram for SoTangentElement:
SoReplacedElement SoElement SoTypedObject

List of all members.

Public Member Functions

int32_t getNum () const
const SbVec3fget (int index) const
virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, SoNode *node, int32_t numTangents, const SbVec3f *tangents)
static const SoTangentElementgetInstance (SoState *state)

Detailed Description

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.

SEE ALSO

SoTangent, SoVertexProperty


Member Function Documentation

const SbVec3f& SoTangentElement::get ( int  index  )  const [inline]

Returns the indexed tangent from an element.

static int SoTangentElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoReplacedElement.

static SoType SoTangentElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

static const SoTangentElement* SoTangentElement::getInstance ( SoState state  )  [inline, static]

Returns the top (current) instance of the element in the state.

int32_t SoTangentElement::getNum (  )  const [inline]

Returns the number of tangent vectors in an instance.

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

static void SoTangentElement::set ( SoState state,
SoNode node,
int32_t  numTangents,
const SbVec3f tangents 
) [static]

Sets the current tangents.


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/