40 #ifndef SCI_DATATYPES_IMAGE_H
41 #define SCI_DATATYPES_IMAGE_H 1
44 #include <Core/Containers/LockingHandle.h>
61 Image(
int xres,
int yres);
67 inline float getr(
int x,
int y) {
70 inline void set(
int x,
int y,
float r,
float i) {
76 virtual Image* clone();
90 return imagedata(y,x);
92 inline void put_pixel(
int x,
int y,
const Color& pixel) {
105 return depthdata(y,x);
108 depthdata(y,x)=depth;
double get_depth(int x, int y)
Definition: Image.h:104
Color & get_pixel(int x, int y)
Definition: Image.h:89
Definition: Persistent.h:89
int yr
Definition: Image.h:60
#define SCISHARE
Definition: share.h:39
float getr(int x, int y)
Definition: Image.h:67
void put_pixel(int x, int y, const Color &pixel)
Definition: Image.h:92
void set(int x, int y, float r, float i)
Definition: Image.h:70
float ** rows
Definition: Image.h:59
Array2< Color > imagedata
Definition: Image.h:88
void put_pixel(int x, int y, double depth)
Definition: Image.h:107
Definition: Datatype.h:56
static PersistentTypeID type_id
Definition: Image.h:80
virtual std::string dynamic_type_name() const
Definition: Image.h:81
LockingHandle< Image > ImageHandle
Definition: Image.h:53
Definition: Persistent.h:64
Array2< double > depthdata
Definition: Image.h:103
Interface to dynamic 2D array class.