RiRayCameraPixelRenderer

This is a general ray tracing engine.

This is an abstract class and cannot be directly instanced.


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

Quick Index

DESCRIPTION

Class Summary

class RiRayCameraPixelRenderer : public RiRenderer
{
public:
RiRayCameraPixelRenderer();
void SetRayCamera(RiRayCamera *camera);
void SetImage(RiImage *image);
void SetSamplingPattern(const RiSamplePattern &pattern);
RiRayShader *GetRayShader(); // pure virtual
RiRayObject *GetEnvironment();
void SetEnvironment(RiRayObject *obj);
RiBackground *GetBackground();
void SetBackground(RiBackground *bg);
protected:
void DoRender();
RiVector2 SquareWarpSample(const RiVector2 &samp);
RiSpectrum DoPixel(RiReal centerU, RiReal centerV, RiReal sizeU, RiReal sizeV);
RiSamplePattern samples;
RiRayCamera *camera;
RiImage *image;
RiRayObject *env;
RiBackground *background;
}; // RiRayCameraPixelRenderer


DESCRIPTION

This provides a general ray tracing engine. It provides everything except for the shader. To use, override the GetRayShader() method


RiRayCameraPixelRenderer();

yCameraPixelRenderer();No documentation available.

    RiRayCameraPixelRenderer();

void SetRayCamera(RiRayCamera *camera);

Set the camera

    void		SetRayCamera(RiRayCamera *camera);

void SetImage(RiImage *image);

Set the camera

    void		SetImage(RiImage *image);

void SetSamplingPattern(const RiSamplePattern &pattern);

Set the sampling pattern for each pixel

    void		SetSamplingPattern(const RiSamplePattern &pattern);

RiRayShader *GetRayShader();

Return the shader to be used for shading the pixel

    virtual RiRayShader *GetRayShader();    

RiRayObject *GetEnvironment();

Get the environment

    RiRayObject		*GetEnvironment();

void SetEnvironment(RiRayObject *obj);

Set the environment

    void		 SetEnvironment(RiRayObject *obj);

RiBackground *GetBackground();

    RiBackground        *GetBackground();

void SetBackground(RiBackground *bg);

Set the background

    void		 SetBackground(RiBackground *bg);

void DoRender();

Renders the scene

    virtual void 	DoRender();

RiVector2 SquareWarpSample(const RiVector2 &samp);

A mapping from the [0,1]^2 domain of the samples to a domain centered at 0,0. The result is scaled by sizeU and sizeV and added to the pixel center

    virtual RiVector2	SquareWarpSample(const RiVector2 &samp);

RiSpectrum DoPixel(RiReal centerU, RiReal centerV, RiReal sizeU, RiReal sizeV);

sample the pixel at centerU,V with size sizeU,V

    virtual RiSpectrum  DoPixel(RiReal centerU, RiReal centerV, RiReal sizeU, RiReal sizeV);

RiSamplePattern samples;

Sampling strategy for the pixel and future bounces

    RiSamplePattern	 samples;

RiRayCamera *camera;

Camera used to generate the rays at each pixel

    RiRayCamera		*camera;

RiImage *image;

Image to be filled;

    RiImage		*image;

RiRayObject *env;

The environment against which rays are traced

    RiRayObject		*env;

RiBackground *background;

The background of the scene

    RiBackground	*background;

All Members

public:
void Render();
void SetRayCamera(RiRayCamera *camera);
void SetImage(RiImage *image);
void SetSamplingPattern(const RiSamplePattern &pattern);
RiRayShader *GetRayShader(); // pure virtual
RiRayObject *GetEnvironment();
void SetEnvironment(RiRayObject *obj);
RiBackground *GetBackground();
void SetBackground(RiBackground *bg);
protected:
void Initialize();
void DoRender(); // pure virtual
void Cleanup();
RiVector2 SquareWarpSample(const RiVector2 &samp);
RiSpectrum DoPixel(RiReal centerU, RiReal centerV, RiReal sizeU, RiReal sizeV);
RiSamplePattern samples;
RiRayCamera *camera;
RiImage *image;
RiRayObject *env;
RiBackground *background;

Ancestors

Inheritance chain for RiRayCameraPixelRenderer:


Descendants

Class is not inherited by any others.


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