PatchCache Class Reference

Cache for radiosity renderer. More...

#include <PatchCache.h>

Collaboration diagram for PatchCache:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PatchCache (PatchRandomAccessEnumerator *patchEnumerator, float ffTreshold, long maxCacheSize)
 ~PatchCache ()
Color totalRadiosity (int destPatch)
 
Returns:
Return radiosity summarized from all patches.

long int cacheRawSize () const
 Return current patch cache size.

Classes

class  TQueueItem

Detailed Description

Cache for radiosity renderer.

Now using priority queue to optimal usage of given memory.

Definition at line 22 of file PatchCache.h.


Constructor & Destructor Documentation

PatchCache::PatchCache ( PatchRandomAccessEnumerator patchEnumerator,
float  ffTreshold,
long  maxCacheSize 
)

Parameters:
patchEnumerator Shared instance of PatchRandomAccessEnumerator.
ffTreshold Pair of patches with smaller form factor than formFactorTreshold will be ignored.
maxCacheSize Maximum size of patch cache (in bytes).
Note:
Maximum cache size is raw size (estimated). The real cache size can be greater.

PatchCache::~PatchCache (  ) 


Member Function Documentation

Color PatchCache::totalRadiosity ( int  destPatch  ) 

Returns:
Return radiosity summarized from all patches.

This computation respectes form factor for each patch.

Parameters:
destPatch Destination patch to compute radiosity for.

long int PatchCache::cacheRawSize (  )  const

Return current patch cache size.

Note:
This is raw size (estimated). The real cache size can be greater.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 19:33:12 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2