1 #ifndef COIN_SOMULTITEXTUREIMAGEELEMENT_H 2 #define COIN_SOMULTITEXTUREIMAGEELEMENT_H 36 #include <Inventor/elements/SoReplacedElement.h> 37 #include <Inventor/SbVec2s.h> 38 #include <Inventor/SbVec3s.h> 39 #include <Inventor/SbColor.h> 42 class SoMultiTextureImageElementP;
71 CLAMP_TO_BORDER = 0x812D
75 static void setDefault(
SoState *
const state,
SoNode *
const node,
const int unit = 0);
79 const SbVec2s & size,
const int numComponents,
80 const unsigned char * bytes,
83 const Model model,
const SbColor & blendColor);
86 const SbVec3s & size,
const int numComponents,
87 const unsigned char * bytes,
91 const Model model,
const SbColor & blendColor);
93 static const unsigned char *
get(
SoState *
const state,
101 static const unsigned char *
get(
SoState *
const state,
111 static const unsigned char *getImage(
SoState *
const state,
114 int & numComponents);
115 static const unsigned char *getImage(
SoState *
const state,
120 static const SbColor & getBlendColor(
SoState *
const state,
const int unit = 0);
121 static Model getModel(
SoState *
const state,
const int unit = 0);
122 static Wrap getWrapS(
SoState *
const state,
const int unit = 0);
123 static Wrap getWrapT(
SoState *
const state,
const int unit = 0);
124 static Wrap getWrapR(
SoState *
const state,
const int unit = 0);
126 static SbBool containsTransparency(
SoState *
const state);
128 static const unsigned char * getDefault(
SbVec2s & size,
int & numComponents);
129 static const unsigned char * getDefault(
SbVec3s & size,
int & numComponents);
135 virtual void setElt(
const int unit,
136 const SbUniqueId nodeid,
137 const SbVec2s & size,
const int numComponents,
138 const unsigned char * bytes,
143 virtual void setElt(
const int unit,
144 const SbUniqueId nodeid,
145 const SbVec3s & size,
const int numComponents,
146 const unsigned char * bytes,
153 virtual SbBool hasTransparency(
const int unit = 0)
const;
162 const unsigned char * bytes;
163 Wrap wrapS, wrapT, wrapR;
169 const UnitData & getUnitData(
const int unit)
const;
170 int getNumUnits()
const;
173 SoMultiTextureImageElementP * pimpl;
177 const SbVec2s & size,
const int numComponents,
178 const unsigned char * bytes,
179 const int wrapS,
const int wrapT,
180 const int model,
const SbColor & blendColor) {
181 set(state, node,0, size, numComponents, bytes,
182 (Wrap) wrapS, (Wrap) wrapT, (Model) model, blendColor);
185 const SbVec2s & size,
const int numComponents,
186 const unsigned char * bytes,
187 const Wrap wrapS,
const Wrap wrapT,
188 const Model model,
const SbColor & blendColor) {
189 set(state, node, 0, size, numComponents, bytes,
190 wrapS, wrapT, model, blendColor);
194 const SbVec3s & size,
const int numComponents,
195 const unsigned char * bytes,
196 const int wrapS,
const int wrapT,
const int wrapR,
197 const int model,
const SbColor & blendColor) {
198 set(state, node, 0, size, numComponents, bytes,
199 (Wrap) wrapS, (Wrap) wrapT, (Wrap) wrapR, (Model) model, blendColor);
203 const SbVec3s & size,
const int numComponents,
204 const unsigned char * bytes,
205 const Wrap wrapS,
const Wrap wrapT,
const Wrap wrapR,
206 const Model model,
const SbColor & blendColor) {
207 set(state, node, 0, size, numComponents, bytes,
208 wrapS, wrapT, wrapR, model, blendColor);
211 static const unsigned char *
get(
SoState *
const state,
218 return get(state, 0, size, numComponents, wrapS, wrapT, model, blendColor);
220 static const unsigned char *
get(
SoState *
const state,
228 return get(state, 0, size, numComponents, wrapS, wrapT, wrapR, model, blendColor);
231 static const unsigned char *
get(
SoState *
const state,
240 const unsigned char * bytes =
get(state, 0, size, numComponents, s, t, m, blendColor);
246 static const unsigned char *
get(
SoState *
const state,
256 const unsigned char * bytes =
get(state, 0, size, numComponents, s, t, r, m, blendColor);
263 static const unsigned char *getImage(
SoState *
const state,
265 int &numComponents) {
266 return getImage(state, 0, size, numComponents);
268 static const unsigned char *getImage(
SoState *
const state,
270 int &numComponents) {
271 return getImage(state, 0, size, numComponents);
275 #endif // !COIN_SOMULTITEXTUREIMAGEELEMENT_H The SbColor class contains the red, green and blue components which make up a color value...
Definition: SbColor.h:39
static void initClass(void)
Definition: SoElement.cpp:506
virtual SbBool matches(const SoElement *element) const =0
Definition: SoElement.cpp:608
virtual void push(SoState *state)
Definition: SoElement.cpp:569
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition: SbVec3s.h:51
The SoMultiTextureImageElement class is yet to be documented.
Definition: SoMultiTextureImageElement.h:44
virtual void init(SoState *state)
Definition: SoElement.cpp:552
virtual SoElement * copyMatchInfo(void) const =0
Definition: SoMultiTextureImageElement.h:155
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:51