RiBackground

Abstraction of all operations needed for a background object.

This is an abstract class and cannot be directly instanced.


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

Quick Index

DESCRIPTION

Class Summary

class RiBackground
{
public:
RiSpectrum GetValue( const RiVector3 &direction ) const; // pure virtual
bool GetSample( const RiVector2 &seed, RiUnitVector3 &direction, RiReal &prob ) const;
protected:
}; // RiBackground


DESCRIPTION

All operations needed for a a background object such as returning the spectral radiance in a given direction or sampling itself are given.


RiSpectrum GetValue( const RiVector3 &direction ) const;

    virtual RiSpectrum GetValue( const RiVector3 &direction ) const;    

bool GetSample( const RiVector2 &seed, RiUnitVector3 &direction, RiReal &prob ) const;

Given a seed returns a sample with prob representing the pdf with solid angle measure. Defaults to prob = cos/pi with z axis "up".

    virtual bool GetSample( const RiVector2 &seed, 
                            RiUnitVector3 &direction,
                            RiReal &prob ) const;

All Members

public:
RiSpectrum GetValue( const RiVector3 &direction ) const; // pure virtual
bool GetSample( const RiVector2 &seed, RiUnitVector3 &direction, RiReal &prob ) const;
protected:

Ancestors

Class does not inherit from any other class.


Descendants


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