36 #include <Inventor/SbVec2s.h> 37 #include <Inventor/SbVec3s.h> 38 #include <Inventor/SbString.h> 43 typedef SbBool SbImageScheduleReadCB(
const SbString &,
SbImage *,
void *);
49 SbImage(
const unsigned char * bytes,
50 const SbVec2s & size,
const int bytesperpixel);
51 SbImage(
const unsigned char * bytes,
52 const SbVec3s & size,
const int bytesperpixel);
56 void setValue(
const SbVec2s & size,
const int bytesperpixel,
57 const unsigned char * bytes);
58 void setValue(
const SbVec3s & size,
const int bytesperpixel,
59 const unsigned char * bytes);
60 void setValuePtr(
const SbVec2s & size,
const int bytesperpixel,
61 const unsigned char * bytes);
62 void setValuePtr(
const SbVec3s & size,
const int bytesperpixel,
63 const unsigned char * bytes);
64 unsigned char * getValue(
SbVec2s & size,
int & bytesperpixel)
const;
65 unsigned char * getValue(
SbVec3s & size,
int & bytesperpixel)
const;
68 SbBool readFile(
const SbString & filename,
69 const SbString *
const * searchdirectories = NULL,
70 const int numdirectories = 0);
72 int operator==(
const SbImage & image)
const;
74 return ! operator == (image);
78 static void addReadImageCB(SbImageReadImageCB * cb,
void * closure);
79 static void removeReadImageCB(SbImageReadImageCB * cb,
void * closure);
85 SbBool hasData(
void)
const;
89 class SbImageP * pimpl;
94 void readLock(
void)
const;
95 void readUnlock(
void)
const;
97 SbBool scheduleReadFile(SbImageScheduleReadCB * cb,
100 const SbString *
const * searchdirectories = NULL,
101 const int numdirectories = 0);
104 #endif // !COIN_SBIMAGE_H The SbVec3s class is a 3 dimensional vector with short integer coordinates.This vector class provides...
Definition: SbVec3s.h:51
int operator!=(const SbImage &image) const
Definition: SbImage.h:73
The SbImage class is an abstract datatype for 2D and 3D images.Be aware that this class is an extensi...
Definition: SbImage.h:46
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:52
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:51