1 #ifndef COIN_SOSFIMAGE_H
2 #define COIN_SOSFIMAGE_H
36 #include <Inventor/fields/SoSField.h>
37 #include <Inventor/fields/SoSubField.h>
38 #include <Inventor/SbVec2s.h>
58 const unsigned char * getValue(
SbVec2s & size,
int & nc)
const;
59 const SbImage & getValue()
const;
61 void setValue(
const SbVec2s & size,
const int nc,
62 const unsigned char * pixels, CopyPolicy copypolicy = COPY);
67 unsigned char * startEditing(
SbVec2s & size,
int & nc);
68 void finishEditing(
void);
70 void setSubValue(
const SbVec2s & dims,
const SbVec2s & offset,
unsigned char * pixels);
71 void setSubValues(
const SbVec2s * dims,
const SbVec2s * offsets,
int num,
unsigned char ** pixelblocks);
72 unsigned char * getSubTexture(
int idx,
SbVec2s & dims,
SbVec2s & offset)
const;
73 SbBool hasSubTextures(
int & numsubtextures);
75 void setNeverWrite(SbBool flag);
76 SbBool isNeverWrite(
void)
const;
78 SbBool hasTransparency(
void)
const;
84 class SoSFImageP * pimpl;
87 #endif // !COIN_SOSFIMAGE_H