27 #include <Inventor/SbVec2s.h>
28 #include <Inventor/SbVec3s.h>
29 #include <Inventor/SbString.h>
34 typedef SbBool SbImageScheduleReadCB(
const SbString &,
SbImage *,
void *);
39 SbImage(
const unsigned char * bytes,
40 const SbVec2s & size,
const int bytesperpixel);
41 SbImage(
const unsigned char * bytes,
42 const SbVec3s & size,
const int bytesperpixel);
45 void setValue(
const SbVec2s & size,
const int bytesperpixel,
46 const unsigned char * bytes);
47 void setValue(
const SbVec3s & size,
const int bytesperpixel,
48 const unsigned char * bytes);
49 void setValuePtr(
const SbVec2s & size,
const int bytesperpixel,
50 const unsigned char * bytes);
51 void setValuePtr(
const SbVec3s & size,
const int bytesperpixel,
52 const unsigned char * bytes);
53 unsigned char * getValue(
SbVec2s & size,
int & bytesperpixel)
const;
54 unsigned char * getValue(
SbVec3s & size,
int & bytesperpixel)
const;
57 SbBool readFile(
const SbString & filename,
58 const SbString *
const * searchdirectories = NULL,
59 const int numdirectories = 0);
61 int operator==(
const SbImage & image)
const;
63 return ! operator == (image);
71 SbBool hasData(
void)
const;
75 class SbImageP * pimpl;
80 void readLock(
void)
const;
81 void readUnlock(
void)
const;
83 SbBool scheduleReadFile(SbImageScheduleReadCB * cb,
86 const SbString *
const * searchdirectories = NULL,
87 const int numdirectories = 0);
90 #endif // !COIN_SBIMAGE_H