27#include <Inventor/SbVec2s.h>
28#include <Inventor/SbVec3s.h>
29#include <Inventor/SbString.h>
34typedef SbBool SbImageScheduleReadCB(
const SbString &,
SbImage *,
void *);
40 SbImage(
const unsigned char * bytes,
41 const SbVec2s & size,
const int bytesperpixel);
42 SbImage(
const unsigned char * bytes,
43 const SbVec3s & size,
const int bytesperpixel);
46 void setValue(
const SbVec2s & size,
const int bytesperpixel,
47 const unsigned char * bytes);
48 void setValue(
const SbVec3s & size,
const int bytesperpixel,
49 const unsigned char * bytes);
50 void setValuePtr(
const SbVec2s & size,
const int bytesperpixel,
51 const unsigned char * bytes);
52 void setValuePtr(
const SbVec3s & size,
const int bytesperpixel,
53 const unsigned char * bytes);
54 unsigned char * getValue(
SbVec2s & size,
int & bytesperpixel)
const;
55 unsigned char * getValue(
SbVec3s & size,
int & bytesperpixel)
const;
58 SbBool readFile(
const SbString & filename,
59 const SbString *
const * searchdirectories = NULL,
60 const int numdirectories = 0);
62 int operator==(
const SbImage & image)
const;
64 return ! operator == (image);
68 static void addReadImageCB(SbImageReadImageCB * cb,
void * closure);
69 static void removeReadImageCB(SbImageReadImageCB * cb,
void * closure);
75 SbBool hasData(
void)
const;
79 class SbImageP * pimpl;
84 void readLock(
void)
const;
85 void readUnlock(
void)
const;
87 SbBool scheduleReadFile(SbImageScheduleReadCB * cb,
90 const SbString *
const * searchdirectories = NULL,
91 const int numdirectories = 0);
The SbImage class is an abstract datatype for 2D and 3D images.
Definition SbImage.h:37
int operator!=(const SbImage &image) const
Definition SbImage.h:63
The SbString class is a string class with convenience functions for string operations.
Definition SbString.h:42
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition SbVec3s.h:39
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.