1#ifndef COIN_SOTEXTUREIMAGEELEMENT_H
2#define COIN_SOTEXTUREIMAGEELEMENT_H
27#include <Inventor/elements/SoReplacedElement.h>
28#include <Inventor/SbVec2s.h>
29#include <Inventor/SbVec3s.h>
30#include <Inventor/SbColor.h>
34class COIN_DLL_API SoTextureImageElement :
public SoReplacedElement {
35 typedef SoReplacedElement inherited;
37 SO_ELEMENT_HEADER(SoTextureImageElement);
41 virtual ~SoTextureImageElement();
60 CLAMP_TO_BORDER = 0x812D
65 static void setDefault(
SoState *
const state,
SoNode *
const node);
68 const SbVec2s & size,
const int numComponents,
69 const unsigned char * bytes,
70 const int wrapS,
const int wrapT,
71 const int model,
const SbColor & blendColor);
73 const SbVec3s & size,
const int numComponents,
74 const unsigned char * bytes,
75 const int wrapS,
const int wrapT,
const int wrapR,
76 const int model,
const SbColor & blendColor);
79 const SbVec2s & size,
const int numComponents,
80 const unsigned char * bytes,
81 const Wrap wrapS,
const Wrap wrapT,
82 const Model model,
const SbColor & blendColor);
84 const SbVec3s & size,
const int numComponents,
85 const unsigned char * bytes,
86 const Wrap wrapS,
const Wrap wrapT,
const Wrap wrapR,
87 const Model model,
const SbColor & blendColor);
89 static const unsigned char *get(
SoState *
const state,
96 static const unsigned char *get(
SoState *
const state,
105 static const unsigned char *get(
SoState *
const state,
112 static const unsigned char *get(
SoState *
const state,
122 static const unsigned char *getImage(
SoState *
const state,
125 static const unsigned char *getImage(
SoState *
const state,
128 static Model getModel(
SoState *
const state);
129 static Wrap getWrapS(
SoState *
const state);
130 static Wrap getWrapT(
SoState *
const state);
131 static Wrap getWrapR(
SoState *
const state);
133 static SbBool containsTransparency(
SoState *
const state);
135 static const unsigned char *getDefault(
SbVec2s & size,
int & numComponents);
136 static const unsigned char *getDefault(
SbVec3s & size,
int & numComponents);
139 virtual void setElt(
const SbVec2s & size,
const int numComponents,
140 const unsigned char * bytes,
141 const Wrap wrapS,
const Wrap wrapT,
142 const Model model,
const SbColor & blendColor);
143 virtual void setElt(
const SbVec3s & size,
const int numComponents,
144 const unsigned char * bytes,
145 const Wrap wrapS,
const Wrap wrapT,
const Wrap wrapR,
146 const Model model,
const SbColor & blendColor);
148 virtual SbBool hasTransparency(
void)
const;
158 void setDefaultValues(
void);
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:30
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition SbVec3s.h:39
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
virtual void init(SoState *state)
Definition SoReplacedElement.cpp:79
The SoState class manages the Coin scenegraph traversal state data.
Definition SoState.h:35
Wrap wrapS
Definition SoTextureImageElement.h:153
static void initClass(void)
Definition SoTextureImageElement.cpp:115
Model model
Definition SoTextureImageElement.h:154
Model
Definition SoTextureImageElement.h:44
Wrap
Definition SoTextureImageElement.h:54
int numComponents
Definition SoTextureImageElement.h:151
const unsigned char * bytes
Definition SoTextureImageElement.h:152
SbColor blendColor
Definition SoTextureImageElement.h:155
SbVec3s size
Definition SoTextureImageElement.h:150
Wrap wrapR
Definition SoTextureImageElement.h:153
Wrap wrapT
Definition SoTextureImageElement.h:153
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen 1.13.2.