133 const unsigned char *bytes);
138 {
return ! ((*this) == f); }
155 unsigned char * bytes;
158 virtual bool readValue(
SoInput *in);
159 virtual void writeValue(
SoOutput *out)
const;
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_SFIELD_CONSTRUCTOR_HEADER(className)
This declares a constructor and destructor for a single-value field class.
#define SO_SFIELD_REQUIRED_HEADER(className)
===========================================================================
bool operator!=(const SoField &f) const
Return TRUE (FALSE) if this field is of the same type and has the same value as f.
bool operator==(const SoField &f) const
Return TRUE (FALSE) if this field is of the same type and has the same value as f.
Used to write Inventor data files.
Field containing a 2D image.
const unsigned char * getValue(SbVec2s &size, int &nc) const
getValue returns the size, number of components and a constant pointer to the image.
unsigned char * startEditing(SbVec2s &size, int &nc)
This method can be used to efficiently edit the values in an image field.
void finishEditing()
Finish the editing of the field values.
void setValue(const SbVec2s &size, int nc, const unsigned char *bytes)
Sets the value of this field to be an image of the given size, with the given number of components,...
Abstract base class for all single-value fields.