#include <LocalReflection.h>
Inheritance diagram for LocalReflection:
Public Types | |
enum | ShadowDetection { SD_NONE, SD_RAY_FROM_EMITTANCE, SD_GEOMETRY_SAMPLING } |
Public Member Functions | |
LocalReflection (DiffuseBRDF *db=NULL, SpecularBRDF *sb=NULL, Emittance *e=NULL, ShadowDetection s=SD_NONE, unsigned ns=1, unsigned c=0, unsigned u=1) | |
virtual | ~LocalReflection () |
virtual void | setScene (Scene *) |
virtual Color3f * | illuminatePoint (PointEnv &) |
virtual Color3f * | illuminatePoint (PointEnv &, MatVisitor &) |
const LightArray * | lights (void) const |
unsigned | getBlockingObjCaches (void) const |
unsigned | getActBlockingObjCache (void) const |
void | setActBlockingObjCache (unsigned i) |
void | blockingObjCacheOff (void) |
virtual void | setDiffuseBRDF (DiffuseBRDF *b) |
virtual void | setSpecularBRDF (SpecularBRDF *b) |
virtual void | setEmittance (Emittance *e) |
Protected Member Functions | |
bool | _light_visible (unsigned, const Vector3 &, double, const Vector3 &, SceneGraphObject::OID) |
Protected Attributes | |
LightArray * | _pLights |
ShadowDetection | _shadowDetection |
unsigned | _lightTests |
unsigned | _numCaches |
unsigned | _useCache |
DiffuseBRDF * | _pDiffuseBRDF |
SpecularBRDF * | _pSpecularBRDF |
Emittance * | _pEmittance |
Scene * | _pScene |
Definition at line 39 of file LocalReflection.h.
|
Definition at line 41 of file LocalReflection.h. |
|
Definition at line 60 of file LocalReflection.cc. |
|
Definition at line 67 of file LocalReflection.h. |
|
Definition at line 9 of file LocalReflection.cc. References LocalReflection::_pLights, ReflectionModel::_pScene, LocalReflection::_useCache, and Scene::root(). |
|
Definition at line 100 of file LocalReflection.h. |
|
Definition at line 98 of file LocalReflection.h. |
|
Definition at line 97 of file LocalReflection.h. |
|
Reimplemented in PhongReflection. Definition at line 95 of file LocalReflection.cc. References ReflectionModel::_pDiffuseBRDF, ReflectionModel::_pEmittance, LocalReflection::_pLights, ReflectionModel::_pScene, and ReflectionModel::_pSpecularBRDF. |
|
Implements ReflectionModel. Reimplemented in GLReflection. Definition at line 85 of file LocalReflection.cc. Referenced by RayTracing::_direct_illumination(), and PhongReflection::illuminatePoint(). |
|
Definition at line 95 of file LocalReflection.h. |
|
Definition at line 99 of file LocalReflection.h. Referenced by RayTracing::_direct_illumination(). |
|
Reimplemented in PhongReflection, and RayTracing. Definition at line 55 of file ReflectionModel.h. Referenced by RayTracing::_check_material(), and RayTracing::setDiffuseBRDF(). |
|
Reimplemented in Radiosity, and RayTracing. Definition at line 57 of file ReflectionModel.h. Referenced by RayTracing::_check_material(), and RayTracing::setEmittance(). |
|
Reimplemented from ReflectionModel. Reimplemented in GLReflection. Definition at line 76 of file LocalReflection.cc. References LocalReflection::_numCaches, LocalReflection::_pLights, ReflectionModel::_pScene, and Scene::root(). Referenced by GLReflection::setScene(). |
|
Reimplemented in PhongReflection, and RayTracing. Definition at line 56 of file ReflectionModel.h. Referenced by RayTracing::_check_material(), and RayTracing::setSpecularBRDF(). |
|
Definition at line 50 of file LocalReflection.h. |
|
Definition at line 51 of file LocalReflection.h. Referenced by LocalReflection::setScene(). |
|
|
Definition at line 41 of file ReflectionModel.h. Referenced by LocalReflection::illuminatePoint(). |
|
Definition at line 48 of file LocalReflection.h. Referenced by LocalReflection::_light_visible(), LocalReflection::illuminatePoint(), LocalReflection::setScene(), and GLReflection::setScene(). |
|
Definition at line 42 of file ReflectionModel.h. Referenced by RayTracing::_cast_ray(), LocalReflection::_light_visible(), RayTracing::illuminatePoint(), PhotonTracing::illuminatePoint(), LocalReflection::illuminatePoint(), Radiosity::setScene(), and LocalReflection::setScene(). |
|
|
Definition at line 49 of file LocalReflection.h. |
|
Definition at line 52 of file LocalReflection.h. Referenced by LocalReflection::_light_visible(). |