Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::PathSeed Struct Reference

Stores information required to re-create a seed path (e.g. for MLT) More...

#include <mitsuba/bidir/pathsampler.h>

Public Member Functions

 PathSeed ()
 
 PathSeed (size_t sampleIndex, Float luminance, int s=0, int t=0)
 
 PathSeed (Stream *stream)
 
void serialize (Stream *stream) const
 
std::string toString () const
 

Public Attributes

size_t sampleIndex
 Index into a rewindable random number stream. More...
 
Float luminance
 Luminance value of the path (for sanity checks) More...
 
int s
 Number of steps from the luminaire. More...
 
int t
 Number of steps from the eye. More...
 

Detailed Description

Stores information required to re-create a seed path (e.g. for MLT)

This class makes it possible to transmit a path over the network or store it locally, while requiring very little storage to do so. This is done by describing a path using an index into a random number stream, which allows to generate it cheaply when needed.

Constructor & Destructor Documentation

mitsuba::PathSeed::PathSeed ( )
inline
mitsuba::PathSeed::PathSeed ( size_t  sampleIndex,
Float  luminance,
int  s = 0,
int  t = 0 
)
inline
mitsuba::PathSeed::PathSeed ( Stream stream)
inline

Member Function Documentation

void mitsuba::PathSeed::serialize ( Stream stream) const
inline
std::string mitsuba::PathSeed::toString ( ) const
inline

Member Data Documentation

Float mitsuba::PathSeed::luminance

Luminance value of the path (for sanity checks)

int mitsuba::PathSeed::s

Number of steps from the luminaire.

size_t mitsuba::PathSeed::sampleIndex

Index into a rewindable random number stream.

int mitsuba::PathSeed::t

Number of steps from the eye.


The documentation for this struct was generated from the following file: