170 const unsigned char *bytes,
183 void setSubValue(
const SbVec2s &subSize,
185 unsigned char *bytes);
197 void setSubValues(
const SbVec2s *subSizes,
199 int num,
unsigned char **bytes);
209 {
return ! ((*this) == f); }
218 unsigned char *startEditing(
SbVec2s &size,
int &nc);
224 void finishEditing();
232 unsigned char *getSubTexture(
int index,
SbVec2s &size,
SbVec2s &offset);
238 SbBool hasSubTextures(
int &numSubTextures);
253 {
return neverWrite ; }
264 static void initClass();
266 void resetSubTextures();
277 unsigned char *bytes;
286 int m_hasTransparency;
290 virtual void writeValue(
SoOutput *out)
const;
#define SO_MFIELD_REQUIRED_HEADER(className)
#define SO_MFIELD_CONSTRUCTOR_HEADER(className)
#define SO__MFIELD_RW_HEADER(className)
int operator==(const SoField &f) const
Return TRUE if this field is of the same type and has the same value as f.
int operator!=(const SoField &f) const
Return FALSE if this field is of the same type and has the same value as f.
Field containing multiple 2D images.
void setValue(const SbVec2s &size, int nc, const unsigned char *bytes, CopyPolicy copy=COPY)
Sets the value of this field to be an image of the given size, with the given number of components,...
SbBool hasTransparency() const
Returns TRUE if the image contains any transparent pixels.
CopyPolicy
SoMFImage may be manipulating some large amounts of memory.
@ NO_COPY
Passed buffer used, user will delete.
@ NO_COPY_AND_DELETE
Passed buffer used, SoMFImage will delete.
@ NO_COPY_AND_FREE
Passed buffer used, SoMFImage will free.
@ COPY
Open Inventor will make a copy of the data (default)
void setNeverWrite(SbBool neverWrite)
Sets the "neverWrite" flag.
SbBool isNeverWrite()
Queries the "neverWrite" flag.
const unsigned char * getValue(SbVec2s &size, int &nc) const
Returns the pixels in the image as an array of unsigned chars.
Base class for all multiple-valued fields.
Used to write Open Inventor data files.