SoTextureImageElement Class Reference
[Elements]

Stores the current texture image. More...

#include <Inventor/elements/SoTextureImageElement.h>

Inheritance diagram for SoTextureImageElement:
SoTextureImageElementBase SoReplacedTextureElement SoElement SoTypedObject SoGLTextureImageElement

List of all members.

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, SoNode *node, const SbVec2i32 &size, int numComponents, const void *buffer, SoBufferObject *bufferObject, SoSFImage::DataType dataType, GLint GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float maxAnisotropy, SbBool enableBorder, const SbVec4f &borderColor, SbBool isCompressed, int numCompressedMipmaps, int hasTransparency=-1, int currentTexture=-1)
static void set (SoState *state, SoNode *node, const SbVec2i32 &size, int numComponents, const void *buffer, SoBufferObject *bufferObject, SoSFImage::DataType dataType, GLint GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float maxAnisotropy, const int &minFilter, const int &magFilter, SbBool enableBorder, const SbVec4f &borderColor, SbBool isCompressed, int numCompressedMipmaps, int hasTransparency=-1, int currentTexture=-1)
static const void * get (SoState *state, SbVec2i32 &size, int &numComponents, SoSFImage::DataType &dataType, GLint &GLInternalFormat, int &wrapS, int &wrapT, int &model, SbColor &blendColor, int unit=0)
static void get (SoState *state, int &_minFilter, int &_magFilter, float &_maxAnisotropy, int unit=0)
static void set (SoState *state, SoNode *node, const SbVec2i32 &subSize, int xoffset, int yoffset, const void *buffer, int texname)
static SbBool containsTransparency (SoState *state, int unit=0)
static const void * getDefault (SbVec2i32 &s, int &nc, SoSFImage::DataType &dataType, GLint &GLInternalFormat)

Deprecated



static SoDEPRECATED void set (SoState *state, SoNode *node, const SbVec2s &size, int numComponents, const void *buffer, SoBufferObject *bufferObject, SoSFImage::DataType dataType, GLint GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float maxAnisotropy, SbBool enableBorder, const SbVec4f &borderColor, SbBool isCompressed, int numCompressedMipmaps, int hasTransparency=-1, int currentTexture=-1)
static SoDEPRECATED void set (SoState *state, SoNode *node, const SbVec2s &size, int numComponents, const void *buffer, SoBufferObject *bufferObject, SoSFImage::DataType dataType, GLint GLInternalFormat, SoRenderToTextureProperty *renderToTexProp, int wrapS, int wrapT, int wrapR, int model, const SbColor &blendColor, float maxAnisotropy, const int &minFilter, const int &magFilter, SbBool enableBorder, const SbVec4f &borderColor, SbBool isCompressed, int numCompressedMipmaps, int hasTransparency=-1, int currentTexture=-1)
static SoDEPRECATED const void * get (SoState *state, SbVec2s &size, int &numComponents, SoSFImage::DataType &dataType, GLint &GLInternalFormat, int &wrapS, int &wrapT, int &model, SbColor &blendColor, int unit=0)
static SoDEPRECATED void set (SoState *state, SoNode *node, const SbVec2s &subSize, int xoffset, int yoffset, const void *buffer, int texname)
static SoDEPRECATED const void * getDefault (SbVec2s &s, int &nc, SoSFImage::DataType &dataType, GLint &GLInternalFormat)

Detailed Description

Stores the current texture image.

This element stores the current texture image.

SEE ALSO

SoTexture2, SoExtTexture2, SoIndexedTexture2, SoTextureCubeMap, SoVRMLImageTexture, SoVRMLPixelTexture


Member Function Documentation

static SbBool SoTextureImageElement::containsTransparency ( SoState state,
int  unit = 0 
) [static]

Returns TRUE if the texture contains transparency info.

static SoDEPRECATED const void* SoTextureImageElement::get ( SoState state,
SbVec2s size,
int &  numComponents,
SoSFImage::DataType dataType,
GLint GLInternalFormat,
int &  wrapS,
int &  wrapT,
int &  model,
SbColor blendColor,
int  unit = 0 
) [static]

Gets the current image, wrap, and model.

Deprecated:

Deprecated since Open Inventor 9400
Use a SbVec2i32 as the size parameter since a short can overflow.
static void SoTextureImageElement::get ( SoState state,
int &  _minFilter,
int &  _magFilter,
float &  _maxAnisotropy,
int  unit = 0 
) [static]

Gets the current image minFilter, magFilter and maxAnisotropy.

static const void* SoTextureImageElement::get ( SoState state,
SbVec2i32 size,
int &  numComponents,
SoSFImage::DataType dataType,
GLint GLInternalFormat,
int &  wrapS,
int &  wrapT,
int &  model,
SbColor blendColor,
int  unit = 0 
) [static]

Gets the current image, wrap, and model.

static int SoTextureImageElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoTextureImageElementBase.

Reimplemented in SoGLTextureImageElement.

static SoType SoTextureImageElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoTextureImageElementBase.

Reimplemented in SoGLTextureImageElement.

static SoDEPRECATED const void* SoTextureImageElement::getDefault ( SbVec2s s,
int &  nc,
SoSFImage::DataType dataType,
GLint GLInternalFormat 
) [static]

Returns the default texture image.

Deprecated:

Deprecated since Open Inventor 9400
Use a SbVec2i32 as the size parameter since a short can overflow.
static const void* SoTextureImageElement::getDefault ( SbVec2i32 s,
int &  nc,
SoSFImage::DataType dataType,
GLint GLInternalFormat 
) [static]

Returns the default texture image.

static SoDEPRECATED void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2s subSize,
int  xoffset,
int  yoffset,
const void *  buffer,
int  texname 
) [static]

Pass texname = -1 to deactivate subtexturing.

Subtexturing not active by default. In any case, the regular set method must be called.

Deprecated:

Deprecated since Open Inventor 9400
Specify the subsize with a SbVec2i32 instead.
static SoDEPRECATED void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2s size,
int  numComponents,
const void *  buffer,
SoBufferObject bufferObject,
SoSFImage::DataType  dataType,
GLint  GLInternalFormat,
SoRenderToTextureProperty renderToTexProp,
int  wrapS,
int  wrapT,
int  wrapR,
int  model,
const SbColor blendColor,
float  maxAnisotropy,
const int &  minFilter,
const int &  magFilter,
SbBool  enableBorder,
const SbVec4f borderColor,
SbBool  isCompressed,
int  numCompressedMipmaps,
int  hasTransparency = -1,
int  currentTexture = -1 
) [static]

Sets the current image, wrap, and model plus minFilter and magFilter.

Deprecated:

Deprecated since Open Inventor 9400
Specify the size with a SbVec2i32 instead.
static SoDEPRECATED void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2s size,
int  numComponents,
const void *  buffer,
SoBufferObject bufferObject,
SoSFImage::DataType  dataType,
GLint  GLInternalFormat,
SoRenderToTextureProperty renderToTexProp,
int  wrapS,
int  wrapT,
int  wrapR,
int  model,
const SbColor blendColor,
float  maxAnisotropy,
SbBool  enableBorder,
const SbVec4f borderColor,
SbBool  isCompressed,
int  numCompressedMipmaps,
int  hasTransparency = -1,
int  currentTexture = -1 
) [static]

Sets the current image, wrap, and model.

Deprecated:

Deprecated since Open Inventor 9400
Specify the size with a SbVec2i32 instead.
static void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2i32 subSize,
int  xoffset,
int  yoffset,
const void *  buffer,
int  texname 
) [static]

Pass texname = -1 to deactivate subtexturing.

Subtexturing not active by default. In any case, the regular set method must be called.

static void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2i32 size,
int  numComponents,
const void *  buffer,
SoBufferObject bufferObject,
SoSFImage::DataType  dataType,
GLint  GLInternalFormat,
SoRenderToTextureProperty renderToTexProp,
int  wrapS,
int  wrapT,
int  wrapR,
int  model,
const SbColor blendColor,
float  maxAnisotropy,
const int &  minFilter,
const int &  magFilter,
SbBool  enableBorder,
const SbVec4f borderColor,
SbBool  isCompressed,
int  numCompressedMipmaps,
int  hasTransparency = -1,
int  currentTexture = -1 
) [static]

Sets the current image, wrap, and model plus minFilter and magFilter.

static void SoTextureImageElement::set ( SoState state,
SoNode node,
const SbVec2i32 size,
int  numComponents,
const void *  buffer,
SoBufferObject bufferObject,
SoSFImage::DataType  dataType,
GLint  GLInternalFormat,
SoRenderToTextureProperty renderToTexProp,
int  wrapS,
int  wrapT,
int  wrapR,
int  model,
const SbColor blendColor,
float  maxAnisotropy,
SbBool  enableBorder,
const SbVec4f borderColor,
SbBool  isCompressed,
int  numCompressedMipmaps,
int  hasTransparency = -1,
int  currentTexture = -1 
) [static]

Sets the current image, wrap, and model.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/