1 #ifndef COIN_SOSFIMAGE_H 2 #define COIN_SOSFIMAGE_H 27 #include <Inventor/fields/SoSField.h> 28 #include <Inventor/fields/SoSubField.h> 29 #include <Inventor/SbVec2s.h> 46 static void initClass(
void);
48 const unsigned char * getValue(
SbVec2s & size,
int & nc)
const;
49 void setValue(
const SbVec2s & size,
const int nc,
50 const unsigned char * pixels, CopyPolicy copypolicy = COPY);
55 unsigned char * startEditing(
SbVec2s & size,
int & nc);
56 void finishEditing(
void);
58 void setSubValue(
const SbVec2s & dims,
const SbVec2s & offset,
unsigned char * pixels);
59 void setSubValues(
const SbVec2s * dims,
const SbVec2s * offsets,
int num,
unsigned char ** pixelblocks);
60 unsigned char * getSubTexture(
int idx,
SbVec2s & dims,
SbVec2s & offset)
const;
61 SbBool hasSubTextures(
int & numsubtextures);
63 void setNeverWrite(SbBool flag);
64 SbBool isNeverWrite(
void)
const;
66 SbBool hasTransparency(
void)
const;
72 class SoSFImageP * pimpl;
75 #endif // !COIN_SOSFIMAGE_H virtual SbBool readValue(SoInput *in)=0
The SoOutput class is an abstraction of an output stream.SoOutput offers the ability to write basic t...
Definition: SoOutput.h:42
The SoSField class is the base class for fields which contains only a single value.All field types which should always contain only a single member value inherits this class. SoSField is an abstract class.
Definition: SoSField.h:29
int operator==(const SoField &f) const
Definition: SoField.cpp:1547
virtual void writeValue(SoOutput *out) const =0
int operator!=(const SoSFImage &field) const
Definition: SoSFImage.h:53
The SoSFImage class is used to store pixel images.The SoSFImage class provides storage for inline 2D ...
Definition: SoSFImage.h:32
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:37