RiImage

Stores an image of data corresponding to RiColorXYZV

[ Image | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class RiImage
{
public:
RiImage();
RiImage(int width, int height, RiReal fovDeg );
RiImage(const RiImage &);
~RiImage();
RiColorXYZV operator()(int x, int y) const;
RiColorXYZV &operator()(int x, int y);
int GetWidth() const;
int GetHeight() const;
RiReal GetFieldOfView() const;
void SetFieldOfView(RiReal fovDeg);
const RiImage &operator=(const RiImage &);
void Clear();
friend ostream &operator<<(ostream &, const RiImage &);
friend istream &operator>>(istream &, RiImage &);
protected:
}; // RiImage


DESCRIPTION

This representation of an image is used for RiColorXYZV images. There is no compression. The format is rough.


RiImage();

Construct a void/empty image

    RiImage();

RiImage(int width, int height, RiReal fovDeg );

age(int width, int height, RiReal fovDeg = 45); Initial image is not cleared. Use Clear for this.

    RiImage(int width, int height, RiReal fovDeg = 45);

RiImage(const RiImage &);

Copy constructor WARNING: Very Expensive

    RiImage(const RiImage &);

~RiImage();

clean up the image data.

    ~RiImage();

RiColorXYZV operator()(int x, int y) const;

Get a pointer to the pixel value

    RiColorXYZV  	operator()(int x, int y) const;

RiColorXYZV &operator()(int x, int y);

Get a pointer to the pixel value

    RiColorXYZV	       &operator()(int x, int y);

int GetWidth() const;

Image Width (0 for an empty image)

    int	 	   GetWidth() const;

int GetHeight() const;

Image Height (0 for an empty image)

    int 	   GetHeight() const;

RiReal GetFieldOfView() const;

Total viewing angle in degrees for the width of the film plane.

    RiReal	   GetFieldOfView() const;

void SetFieldOfView(RiReal fovDeg);

Total viewing angle in degrees for the width of the film plane.

    void	   SetFieldOfView(RiReal fovDeg);

const RiImage &operator=(const RiImage &);

assignment (deep copy all data)

    const RiImage &operator=(const RiImage &);

void Clear();

Clears the image (new images are not cleared)

    void	   Clear();

friend ostream &operator<<(ostream &, const RiImage &);

Write an image using PRIS format

    friend ostream &operator<<(ostream &, const RiImage &);

friend istream &operator>>(istream &, RiImage &);

Read an image using PRIS format.

    friend istream &operator>>(istream &, RiImage &);

All Members

public:
RiColorXYZV operator()(int x, int y) const;
RiColorXYZV &operator()(int x, int y);
int GetWidth() const;
int GetHeight() const;
RiReal GetFieldOfView() const;
void SetFieldOfView(RiReal fovDeg);
const RiImage &operator=(const RiImage &);
void Clear();
friend ostream &operator<<(ostream &, const RiImage &);
friend istream &operator>>(istream &, RiImage &);
protected:

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:25 2000 .