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