Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoGLMultiTextureCoordinateElement Class Reference

The SoGLMultiTextureCoordinateElement class stores the current gltexture coordinates for several units. More...

#include <Inventor/elements/SoGLMultiTextureCoordinateElement.h>

Inheritance diagram for SoGLMultiTextureCoordinateElement:
SoMultiTextureCoordinateElement SoElement

Classes

class  GLUnitData
 

Public Member Functions

virtual CoordType getType (const int unit=0) const
 FIXME: write doc.
 
virtual void init (SoState *state)
 FIXME: write doc.
 
void initMulti (SoState *state) const
 
void initRender (const SbBool *enabled, const int maxenabled) const
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 FIXME: write doc.
 
virtual void push (SoState *state)
 FIXME: write doc.
 
void send (const int index) const
 
void send (const int index, const SbVec3f &c, const SbVec3f &n) const
 
void send (const int unit, const int index) const
 FIXME: write doc.
 
void send (const int unit, const int index, const SbVec3f &c, const SbVec3f &n) const
 FIXME: write doc.
 
- Public Member Functions inherited from SoMultiTextureCoordinateElement
SoElementcopyMatchInfo (void) const
 
const SbVec4fget (const int unit, const SbVec3f &point, const SbVec3f &normal) const
 
const SbVec4fget (const SbVec3f &point, const SbVec3f &normal) const
 
const SbVec2fget2 (const int index) const
 
const SbVec2fget2 (const int unit, const int index) const
 FIXME: write doc.
 
const SbVec3fget3 (const int index) const
 
const SbVec3fget3 (const int unit, const int index) const
 
const SbVec4fget4 (const int index) const
 
const SbVec4fget4 (const int unit, const int index) const
 FIXME: write doc.
 
const SbVec2fgetArrayPtr2 (const int unit=0) const
 
const SbVec3fgetArrayPtr3 (const int unit=0) const
 
const SbVec4fgetArrayPtr4 (const int unit=0) const
 
int32_t getDimension (const int unit=0) const
 
int32_t getNum (const int unit=0) const
 FIXME: write doc.
 
SbBool is2D (const int unit=0) const
 FIXME: write doc. (for backwards compatibility. Use getDimension() instead).
 
virtual SbBool matches (const SoElement *elem) const
 
- Public Member Functions inherited from SoElement
virtual ~SoElement ()
 
int getDepth (void) const
 
int getStackIndex (void) const
 
const SoType getTypeId (void) const
 
virtual void print (FILE *file=stdout) const
 
void setDepth (const int depth)
 

Static Public Member Functions

static voidcreateInstance (void)
 
static int getClassStackIndex (void)
 
static SoType getClassTypeId (void)
 
static const SoGLMultiTextureCoordinateElementgetInstance (SoState *const state)
 FIXME: write doc.
 
static void initClass (void)
 
static void setTexGen (SoState *const state, SoNode *const node, const int unit, SoTexCoordTexgenCB *const texgenFunc, void *const texgenData=NULL, SoTextureCoordinateFunctionCB *const func=NULL, void *const funcData=NULL)
 FIXME: write doc.
 
static void setTexGen (SoState *const state, SoNode *const node, SoTexCoordTexgenCB *const texgenFunc, void *const texgenData=NULL, SoTextureCoordinateFunctionCB *const func=NULL, void *const funcData=NULL)
 
- Static Public Member Functions inherited from SoMultiTextureCoordinateElement
static voidcreateInstance (void)
 
static int getClassStackIndex (void)
 
static SoType getClassTypeId (void)
 
static const SoMultiTextureCoordinateElementgetInstance (SoState *const state)
 FIXME: write doc.
 
static CoordType getType (SoState *const state, const int unit=0)
 
static void initClass (void)
 
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 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 int unit, const int32_t numCoords, const SbVec3f *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 int unit, const int32_t numCoords, const SbVec4f *const coords)
 FIXME: write doc.
 
static void set4 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec4f *const coords)
 
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 setFunction (SoState *const state, SoNode *const node, SoTextureCoordinateFunctionCB *const func, void *const userdata)
 
- Static Public Member Functions inherited from SoElement
static int getClassStackIndex (void)
 
static SoType getClassTypeId (void)
 
static SoType getIdFromStackIndex (const int stackIndex)
 
static int getNumStackIndices (void)
 
static void initClass (void)
 
static void initElements (void)
 

Protected Member Functions

 SoGLMultiTextureCoordinateElement (void)
 
virtual ~SoGLMultiTextureCoordinateElement ()
 
virtual void setElt (const int unit, SoTexCoordTexgenCB *func, void *data=NULL)
 FIXME: write doc.
 
- Protected Member Functions inherited from SoMultiTextureCoordinateElement
 SoMultiTextureCoordinateElement (void)
 
virtual ~SoMultiTextureCoordinateElement ()
 
int getMaxUnits () const
 
UnitDatagetUnitData (const int unit)
 
const UnitDatagetUnitData (const int unit) const
 
- Protected Member Functions inherited from SoElement
 SoElement (void)
 
void capture (SoState *const state) const
 
virtual void captureThis (SoState *state) const
 
SoElementgetNextFree (void) const
 
SoElementgetNextInStack (void) const
 
void setStackIndex (const int index)
 
void setTypeId (const SoType typeId)
 

Additional Inherited Members

- Public Types inherited from SoMultiTextureCoordinateElement
enum  CoordType {
  NONE = 0 , TEXGEN = 0 , EXPLICIT = 1 , FUNCTION = 2 ,
  DEFAULT = 3
}
 
- Static Protected Member Functions inherited from SoElement
static int createStackIndex (const SoType id)
 
static const SoElementgetConstElement (SoState *const state, const int stackIndex)
 
static SoElementgetElement (SoState *const state, const int stackIndex)
 
- Protected Attributes inherited from SoMultiTextureCoordinateElement
SbVec2f convert2
 
SbVec3f convert3
 
SbVec4f convert4
 
- Protected Attributes inherited from SoElement
int depth
 
int stackIndex
 
SoType typeId
 
- Static Protected Attributes inherited from SoElement
static int classStackIndex
 
static SoTypeListstackToType
 

Detailed Description

The SoGLMultiTextureCoordinateElement class stores the current gltexture coordinates for several units.

Constructor & Destructor Documentation

◆ SoGLMultiTextureCoordinateElement()

SoGLMultiTextureCoordinateElement::SoGLMultiTextureCoordinateElement ( void )
protected

Constructor.

◆ ~SoGLMultiTextureCoordinateElement()

SoGLMultiTextureCoordinateElement::~SoGLMultiTextureCoordinateElement ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ createInstance()

void * SoGLMultiTextureCoordinateElement::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.

◆ getClassStackIndex()

int SoGLMultiTextureCoordinateElement::getClassStackIndex ( void )
static

This static method returns the state stack index for the class.

◆ getClassTypeId()

SoType SoGLMultiTextureCoordinateElement::getClassTypeId ( void )
static

This static method returns the SoType object associated with objects of this class.

◆ getType()

SoMultiTextureCoordinateElement::CoordType SoGLMultiTextureCoordinateElement::getType ( const int unit = 0) const
virtual

FIXME: write doc.

Reimplemented from SoMultiTextureCoordinateElement.

◆ init()

void SoGLMultiTextureCoordinateElement::init ( SoState * state)
virtual

FIXME: write doc.

Reimplemented from SoMultiTextureCoordinateElement.

◆ initClass()

void SoGLMultiTextureCoordinateElement::initClass ( void )
static

Initialize relevant common data for all instances, like the type system.

◆ initMulti()

void SoGLMultiTextureCoordinateElement::initMulti ( SoState * state) const

Called from SoTextureCoordinateBundle to initialize multi texturing.

◆ initRender()

void SoGLMultiTextureCoordinateElement::initRender ( const SbBool * enabled,
const int maxenabled ) const

Internal method that is called from SoGLTextureCoordinateBundle to set up optimized rendering.

◆ pop()

void SoGLMultiTextureCoordinateElement::pop ( SoState * state,
const SoElement * prevTopElement )
virtual

FIXME: write doc.

Reimplemented from SoElement.

◆ push()

void SoGLMultiTextureCoordinateElement::push ( SoState * state)
virtual

FIXME: write doc.

Reimplemented from SoMultiTextureCoordinateElement.


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