The SoMultiTextureCoordinateElement class is yet to be documented.
More...
#include <Inventor/elements/SoMultiTextureCoordinateElement.h>
|
enum | CoordType {
NONE = 0
, TEXGEN = 0
, EXPLICIT = 1
, FUNCTION = 2
,
DEFAULT = 3
} |
|
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void * | createInstance (void) |
|
static void | initClass (void) |
|
static void | setDefault (SoState *const state, SoNode *const node, const int unit=0) |
| FIXME: write doc.
|
|
static void | setFunction (SoState *const state, SoNode *const node, const int unit, SoTextureCoordinateFunctionCB *const func, void *const userdata) |
| FIXME: write doc.
|
|
static void | set2 (SoState *const state, SoNode *const node, const int unit, const int32_t numCoords, const SbVec2f *const coords) |
| FIXME: write doc.
|
|
static void | set3 (SoState *const state, SoNode *const node, const int unit, const int32_t numCoords, const SbVec3f *const coords) |
|
static void | set4 (SoState *const state, SoNode *const node, const int unit, const int32_t numCoords, const SbVec4f *const coords) |
| FIXME: write doc.
|
|
static CoordType | getType (SoState *const state, const int unit=0) |
|
static const SoMultiTextureCoordinateElement * | getInstance (SoState *const state) |
| FIXME: write doc.
|
|
static void | setFunction (SoState *const state, SoNode *const node, SoTextureCoordinateFunctionCB *const func, void *const userdata) |
|
static void | set2 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec2f *const coords) |
|
static void | set3 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec3f *const coords) |
|
static void | set4 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec4f *const coords) |
|
static void | initClass (void) |
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void | initElements (void) |
|
static int | getNumStackIndices (void) |
|
static SoType | getIdFromStackIndex (const int stackIndex) |
|
The SoMultiTextureCoordinateElement class is yet to be documented.
FIXME: write doc.
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
- Since
- Coin 2.2
◆ SoMultiTextureCoordinateElement()
SoMultiTextureCoordinateElement::SoMultiTextureCoordinateElement |
( |
void | | ) |
|
|
protected |
◆ ~SoMultiTextureCoordinateElement()
SoMultiTextureCoordinateElement::~SoMultiTextureCoordinateElement |
( |
| ) |
|
|
protectedvirtual |
◆ getClassTypeId()
SoType SoMultiTextureCoordinateElement::getClassTypeId |
( |
void | | ) |
|
|
static |
This static method returns the SoType object associated with objects of this class.
◆ getClassStackIndex()
int SoMultiTextureCoordinateElement::getClassStackIndex |
( |
void | | ) |
|
|
static |
This static method returns the state stack index for the class.
◆ createInstance()
void * SoMultiTextureCoordinateElement::createInstance |
( |
void | | ) |
|
|
static |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
◆ initClass()
void SoMultiTextureCoordinateElement::initClass |
( |
void | | ) |
|
|
static |
Initialize relevant common data for all instances, like the type system.
◆ init()
void SoMultiTextureCoordinateElement::init |
( |
SoState * | state | ) |
|
|
virtual |
◆ set3()
void SoMultiTextureCoordinateElement::set3 |
( |
SoState *const | state, |
|
|
SoNode *const | node, |
|
|
const int | unit, |
|
|
const int32_t | numCoords, |
|
|
const SbVec3f *const | coords ) |
|
static |
◆ getType() [1/2]
SoMultiTextureCoordinateElement::CoordType SoMultiTextureCoordinateElement::getType |
( |
SoState *const | state, |
|
|
const int | unit = 0 ) |
|
static |
This method is used by shapes. Three return values are possible.
DEFAULT means that the shapes should generate their own texture coordinates.
EXPLICIT means that discrete texture coordinates are stored, and should be fetched with get2(), get3() or get4().
FUNCTION means that get(point, normal) must be used to generate texture coordinates.
◆ getType() [2/2]
SoMultiTextureCoordinateElement::CoordType SoMultiTextureCoordinateElement::getType |
( |
const int | unit = 0 | ) |
const |
|
virtual |
◆ get()
const SbVec4f & SoMultiTextureCoordinateElement::get |
( |
const int | unit, |
|
|
const SbVec3f & | point, |
|
|
const SbVec3f & | normal ) const |
This method returns texture coordinate for the given point and normal. The coordinate is returned as a 4D vector where the r and q coordinates may be set to 0 and 1 respectively depending on what texture coordinate dimension we're using.
This method should only be used if the CoordType is FUNCTION.
◆ getDimension()
int32_t SoMultiTextureCoordinateElement::getDimension |
( |
const int | unit = 0 | ) |
const |
◆ get3()
const SbVec3f & SoMultiTextureCoordinateElement::get3 |
( |
const int | unit, |
|
|
const int | index ) const |
◆ getArrayPtr2()
const SbVec2f * SoMultiTextureCoordinateElement::getArrayPtr2 |
( |
const int | unit = 0 | ) |
const |
Returns a pointer to the 2D texture coordinate array. This method is not part of the OIV API.
◆ getArrayPtr3()
const SbVec3f * SoMultiTextureCoordinateElement::getArrayPtr3 |
( |
const int | unit = 0 | ) |
const |
Returns a pointer to the 3D texture coordinate array.
◆ getArrayPtr4()
const SbVec4f * SoMultiTextureCoordinateElement::getArrayPtr4 |
( |
const int | unit = 0 | ) |
const |
Returns a pointer to the 4D texture coordinate array. This method is not part of the OIV API.
◆ push()
void SoMultiTextureCoordinateElement::push |
( |
SoState * | state | ) |
|
|
virtual |
◆ matches()
SbBool SoMultiTextureCoordinateElement::matches |
( |
const SoElement * | element | ) |
const |
|
virtual |
This function returns TRUE
is the element matches another element (of the same class), with respect to cache validity.
If the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function.
Implements SoElement.
◆ copyMatchInfo()
SoElement * SoMultiTextureCoordinateElement::copyMatchInfo |
( |
void | | ) |
const |
|
virtual |
This function creates a copy of the element that contains enough information to enable the matches() function to work.
Used to help with scene graph traversal caching operations.
Implements SoElement.
◆ getUnitData()
Returns the per-unit data for this element.
The documentation for this class was generated from the following files: