#include <context.h>
Classes | |
struct | GraphicsState |
struct | NamedMaterial |
struct | RenderOptions |
Public Member Functions | |
Context (std::string n="Lux default context") | |
~Context () | |
void | makemixmaterial (const ParamSet shapeparams, const ParamSet materialparams, boost::shared_ptr< Material > mtl) |
Static Public Member Functions | |
static Context * | getActive () |
static void | setActive (Context *c) |
static void | luxIdentity () |
static void | luxTranslate (float dx, float dy, float dz) |
static void | luxRotate (float angle, float ax, float ay, float az) |
static void | luxScale (float sx, float sy, float sz) |
static void | luxLookAt (float ex, float ey, float ez, float lx, float ly, float lz, float ux, float uy, float uz) |
static void | luxConcatTransform (float transform[16]) |
static void | luxTransform (float transform[16]) |
static void | luxCoordinateSystem (const string &s) |
static void | luxCoordSysTransform (const string &s) |
static void | luxPixelFilter (const string &name, const ParamSet ¶ms) |
static void | luxFilm (const string &type, const ParamSet ¶ms) |
static void | luxSampler (const string &name, const ParamSet ¶ms) |
static void | luxAccelerator (const string &name, const ParamSet ¶ms) |
static void | luxSurfaceIntegrator (const string &name, const ParamSet ¶ms) |
static void | luxVolumeIntegrator (const string &name, const ParamSet ¶ms) |
static void | luxCamera (const string &s, const ParamSet &cameraParams) |
static void | luxWorldBegin () |
static void | luxAttributeBegin () |
static void | luxAttributeEnd () |
static void | luxTransformBegin () |
static void | luxTransformEnd () |
static void | luxTexture (const string &name, const string &type, const string &texname, const ParamSet ¶ms) |
static void | luxMaterial (const string &name, const ParamSet ¶ms) |
static void | luxMakeNamedMaterial (const string &name, const ParamSet ¶ms) |
static void | luxNamedMaterial (const string &name, const ParamSet ¶ms) |
static void | luxLightSource (const string &name, const ParamSet ¶ms) |
static void | luxAreaLightSource (const string &name, const ParamSet ¶ms) |
static void | luxPortalShape (const string &name, const ParamSet ¶ms) |
static void | luxShape (const string &name, const ParamSet ¶ms) |
static void | luxReverseOrientation () |
static void | luxVolume (const string &name, const ParamSet ¶ms) |
static void | luxObjectBegin (const string &name) |
static void | luxObjectEnd () |
static void | luxObjectInstance (const string &name) |
static void | luxWorldEnd () |
static void | luxCleanup () |
static void | luxStart () |
static void | luxPause () |
static void | luxExit () |
static void | luxWait () |
static int | luxAddThread () |
static void | luxRemoveThread () |
static void | luxUpdateFramebuffer () |
static unsigned char * | luxFramebuffer () |
static void | luxUpdateFilmFromNetwork () |
static void | luxSetNetworkServerUpdateInterval (int updateInterval) |
static int | luxGetNetworkServerUpdateInterval () |
static void | luxAddServer (const string &name) |
static double | luxStatistics (const string &statName) |
static void | luxTransmitFilm (std::basic_ostream< char > &stream) |
static void | luxEnableDebugMode () |
Private Member Functions | |
void | init () |
void | free () |
void | identity () |
void | translate (float dx, float dy, float dz) |
void | rotate (float angle, float ax, float ay, float az) |
void | scale (float sx, float sy, float sz) |
void | lookAt (float ex, float ey, float ez, float lx, float ly, float lz, float ux, float uy, float uz) |
void | concatTransform (float transform[16]) |
void | transform (float transform[16]) |
void | coordinateSystem (const string &) |
void | coordSysTransform (const string &) |
void | pixelFilter (const string &name, const ParamSet ¶ms) |
void | film (const string &type, const ParamSet ¶ms) |
void | sampler (const string &name, const ParamSet ¶ms) |
void | accelerator (const string &name, const ParamSet ¶ms) |
void | surfaceIntegrator (const string &name, const ParamSet ¶ms) |
void | volumeIntegrator (const string &name, const ParamSet ¶ms) |
void | camera (const string &, const ParamSet &cameraParams) |
void | worldBegin () |
void | attributeBegin () |
void | attributeEnd () |
void | transformBegin () |
void | transformEnd () |
void | texture (const string &name, const string &type, const string &texname, const ParamSet ¶ms) |
void | material (const string &name, const ParamSet ¶ms) |
void | makenamedmaterial (const string &name, const ParamSet ¶ms) |
void | namedmaterial (const string &name, const ParamSet ¶ms) |
void | lightSource (const string &name, const ParamSet ¶ms) |
void | areaLightSource (const string &name, const ParamSet ¶ms) |
void | portalShape (const string &name, const ParamSet ¶ms) |
void | shape (const string &name, const ParamSet ¶ms) |
void | reverseOrientation () |
void | volume (const string &name, const ParamSet ¶ms) |
void | objectBegin (const string &name) |
void | objectEnd () |
void | objectInstance (const string &name) |
void | worldEnd () |
void | cleanup () |
void | start () |
void | pause () |
void | exit () |
void | wait () |
int | addThread () |
void | removeThread () |
void | updateFramebuffer () |
unsigned char * | framebuffer () |
void | updateFilmFromNetwork () |
void | transmitFilm (std::basic_ostream< char > &stream) |
double | statistics (const string &statName) |
void | addServer (const string &name) |
void | enableDebugMode () |
Private Attributes | |
string | name |
Scene * | luxCurrentScene |
int | currentApiState |
Transform | curTransform |
map< string, Transform > | namedCoordinateSystems |
RenderOptions * | renderOptions |
GraphicsState * | graphicsState |
vector< NamedMaterial > | namedmaterials |
vector< GraphicsState > | pushedGraphicsStates |
vector< Transform > | pushedTransforms |
RenderFarm * | renderFarm |
boost::mutex | renderingMutex |
Static Private Attributes | |
static Context * | activeContext |
Definition at line 38 of file context.h.
lux::Context::Context | ( | std::string | n = "Lux default context" |
) | [inline] |
void Context::accelerator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 222 of file context.cpp.
References lux::Context::RenderOptions::AcceleratorName, lux::Context::RenderOptions::AcceleratorParams, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_OPTIONS.
Referenced by luxAccelerator(), and lux::Context::RenderOptions::MakeScene().
void Context::addServer | ( | const string & | name | ) | [private] |
Definition at line 113 of file context.cpp.
References lux::RenderFarm::connect(), and renderFarm.
Referenced by luxAddServer().
int Context::addThread | ( | ) | [private] |
Definition at line 757 of file context.cpp.
References lux::Scene::AddThread(), and luxCurrentScene.
Referenced by luxAddThread().
void Context::areaLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 419 of file context.cpp.
References lux::Context::GraphicsState::areaLight, lux::Context::GraphicsState::areaLightParams, graphicsState, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxAreaLightSource().
void Context::attributeBegin | ( | ) | [private] |
Definition at line 261 of file context.cpp.
References curTransform, graphicsState, pushedGraphicsStates, pushedTransforms, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxAttributeBegin().
void Context::attributeEnd | ( | ) | [private] |
Definition at line 268 of file context.cpp.
References curTransform, graphicsState, LUX_ERROR, LUX_ILLSTATE, luxError, pushedGraphicsStates, pushedTransforms, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxAttributeEnd().
void Context::camera | ( | const string & | name, | |
const ParamSet & | cameraParams | |||
) | [private] |
Definition at line 243 of file context.cpp.
References lux::Context::RenderOptions::CameraName, lux::Context::RenderOptions::CameraParams, curTransform, lux::Transform::GetInverse(), namedCoordinateSystems, renderFarm, renderOptions, lux::RenderFarm::send(), VERIFY_OPTIONS, and lux::Context::RenderOptions::WorldToCamera.
Referenced by luxCamera(), and lux::Context::RenderOptions::MakeScene().
void Context::cleanup | ( | ) | [private] |
Definition at line 118 of file context.cpp.
References currentApiState, free(), init(), LUX_ERROR, LUX_ILLSTATE, LUX_NOTSTARTED, luxError, renderFarm, lux::RenderFarm::send(), STATE_UNINITIALIZED, STATE_WORLD_BLOCK, and lux::StatsCleanup().
Referenced by luxCleanup().
void Context::concatTransform | ( | float | transform[16] | ) | [private] |
Definition at line 157 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxConcatTransform().
void Context::coordinateSystem | ( | const string & | name | ) | [private] |
Definition at line 184 of file context.cpp.
References curTransform, namedCoordinateSystems, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxCoordinateSystem().
void Context::coordSysTransform | ( | const string & | name | ) | [private] |
Definition at line 189 of file context.cpp.
References curTransform, namedCoordinateSystems, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxCoordSysTransform().
void Context::enableDebugMode | ( | ) | [private] |
Definition at line 195 of file context.cpp.
References lux::Context::RenderOptions::debugMode, renderOptions, and VERIFY_OPTIONS.
Referenced by luxEnableDebugMode().
void Context::exit | ( | ) | [private] |
Definition at line 745 of file context.cpp.
References activeContext, lux::RenderFarm::disconnectAll(), lux::Scene::Exit(), luxCurrentScene, renderFarm, lux::RenderFarm::stopFilmUpdater(), and lux::RenderFarm::updateFilm().
Referenced by luxExit().
void Context::film | ( | const string & | type, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 208 of file context.cpp.
References lux::Context::RenderOptions::FilmName, lux::Context::RenderOptions::FilmParams, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_OPTIONS.
Referenced by luxFilm(), and lux::Context::RenderOptions::MakeScene().
unsigned char * Context::framebuffer | ( | ) | [private] |
Definition at line 770 of file context.cpp.
References lux::Scene::GetFramebuffer(), and luxCurrentScene.
Referenced by luxFramebuffer().
void Context::free | ( | ) | [private] |
Definition at line 88 of file context.cpp.
References graphicsState, luxCurrentScene, renderFarm, and renderOptions.
Referenced by cleanup(), and ~Context().
static Context* lux::Context::getActive | ( | ) | [inline, static] |
Definition at line 54 of file context.h.
References activeContext.
void Context::identity | ( | ) | [private] |
Definition at line 135 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxIdentity().
void Context::init | ( | ) | [private] |
Definition at line 74 of file context.cpp.
References currentApiState, curTransform, graphicsState, luxCurrentScene, namedCoordinateSystems, namedmaterials, pushedGraphicsStates, pushedTransforms, renderFarm, renderOptions, and STATE_OPTIONS_BLOCK.
void Context::lightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 379 of file context.cpp.
References lux::Context::GraphicsState::currentLight, lux::Context::GraphicsState::currentLightPtr, curTransform, graphicsState, lux::Context::RenderOptions::lights, LUX_ERROR, LUX_SYNTAX, luxError, lux::MakeLight(), renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxLightSource().
void Context::lookAt | ( | float | ex, | |
float | ey, | |||
float | ez, | |||
float | lx, | |||
float | ly, | |||
float | lz, | |||
float | ux, | |||
float | uy, | |||
float | uz | |||
) | [private] |
Definition at line 176 of file context.cpp.
References curTransform, lux::LookAt(), renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxLookAt().
static void lux::Context::luxAccelerator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 75 of file context.h.
References accelerator(), and activeContext.
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxAddServer | ( | const string & | name | ) | [inline, static] |
Definition at line 128 of file context.h.
References activeContext, and addServer().
static int lux::Context::luxAddThread | ( | ) | [inline, static] |
Definition at line 114 of file context.h.
References activeContext, and addThread().
static void lux::Context::luxAreaLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 89 of file context.h.
References activeContext, and areaLightSource().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxAttributeBegin | ( | ) | [inline, static] |
Definition at line 80 of file context.h.
References activeContext, and attributeBegin().
Referenced by objectBegin().
static void lux::Context::luxAttributeEnd | ( | ) | [inline, static] |
Definition at line 81 of file context.h.
References activeContext, and attributeEnd().
Referenced by objectEnd().
static void lux::Context::luxCamera | ( | const string & | s, | |
const ParamSet & | cameraParams | |||
) | [inline, static] |
Definition at line 78 of file context.h.
References activeContext, and camera().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxCleanup | ( | ) | [inline, static] |
Definition at line 103 of file context.h.
References activeContext, and cleanup().
static void lux::Context::luxConcatTransform | ( | float | transform[16] | ) | [inline, static] |
Definition at line 68 of file context.h.
References activeContext, and concatTransform().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxCoordinateSystem | ( | const string & | s | ) | [inline, static] |
Definition at line 70 of file context.h.
References activeContext, and coordinateSystem().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxCoordSysTransform | ( | const string & | s | ) | [inline, static] |
Definition at line 71 of file context.h.
References activeContext, and coordSysTransform().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxEnableDebugMode | ( | ) | [inline, static] |
Definition at line 137 of file context.h.
References activeContext, and enableDebugMode().
static void lux::Context::luxExit | ( | ) | [inline, static] |
Definition at line 109 of file context.h.
References activeContext, and exit().
static void lux::Context::luxFilm | ( | const string & | type, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 73 of file context.h.
References activeContext, and film().
Referenced by lux::NetworkRenderServerThread::run().
static unsigned char* lux::Context::luxFramebuffer | ( | ) | [inline, static] |
Definition at line 119 of file context.h.
References activeContext, and framebuffer().
static int lux::Context::luxGetNetworkServerUpdateInterval | ( | ) | [inline, static] |
Definition at line 127 of file context.h.
References activeContext, renderFarm, and lux::RenderFarm::serverUpdateInterval.
static void lux::Context::luxIdentity | ( | ) | [inline, static] |
Definition at line 63 of file context.h.
References activeContext, and identity().
static void lux::Context::luxLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 88 of file context.h.
References activeContext, and lightSource().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxLookAt | ( | float | ex, | |
float | ey, | |||
float | ez, | |||
float | lx, | |||
float | ly, | |||
float | lz, | |||
float | ux, | |||
float | uy, | |||
float | uz | |||
) | [inline, static] |
Definition at line 67 of file context.h.
References activeContext, and lookAt().
static void lux::Context::luxMakeNamedMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 86 of file context.h.
References activeContext, and makenamedmaterial().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 85 of file context.h.
References activeContext, and material().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxNamedMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 87 of file context.h.
References activeContext, and namedmaterial().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxObjectBegin | ( | const string & | name | ) | [inline, static] |
Definition at line 94 of file context.h.
References activeContext, and objectBegin().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxObjectEnd | ( | ) | [inline, static] |
Definition at line 95 of file context.h.
References activeContext, and objectEnd().
static void lux::Context::luxObjectInstance | ( | const string & | name | ) | [inline, static] |
Definition at line 96 of file context.h.
References activeContext, and objectInstance().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxPause | ( | ) | [inline, static] |
Definition at line 108 of file context.h.
References activeContext, and pause().
static void lux::Context::luxPixelFilter | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 72 of file context.h.
References activeContext, and pixelFilter().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxPortalShape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 90 of file context.h.
References activeContext, and portalShape().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxRemoveThread | ( | ) | [inline, static] |
Definition at line 115 of file context.h.
References activeContext, and removeThread().
static void lux::Context::luxReverseOrientation | ( | ) | [inline, static] |
Definition at line 92 of file context.h.
References activeContext, and reverseOrientation().
static void lux::Context::luxRotate | ( | float | angle, | |
float | ax, | |||
float | ay, | |||
float | az | |||
) | [inline, static] |
Definition at line 65 of file context.h.
References activeContext, and rotate().
static void lux::Context::luxSampler | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 74 of file context.h.
References activeContext, and sampler().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxScale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) | [inline, static] |
Definition at line 66 of file context.h.
References activeContext, and scale().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxSetNetworkServerUpdateInterval | ( | int | updateInterval | ) | [inline, static] |
Definition at line 126 of file context.h.
References activeContext, renderFarm, and lux::RenderFarm::serverUpdateInterval.
static void lux::Context::luxShape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 91 of file context.h.
References activeContext, and shape().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxStart | ( | ) | [inline, static] |
Definition at line 107 of file context.h.
References activeContext, and start().
static double lux::Context::luxStatistics | ( | const string & | statName | ) | [inline, static] |
Definition at line 131 of file context.h.
References activeContext, and statistics().
static void lux::Context::luxSurfaceIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 76 of file context.h.
References activeContext, and surfaceIntegrator().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxTexture | ( | const string & | name, | |
const string & | type, | |||
const string & | texname, | |||
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 84 of file context.h.
References activeContext, and texture().
static void lux::Context::luxTransform | ( | float | transform[16] | ) | [inline, static] |
Definition at line 69 of file context.h.
References activeContext, and transform().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxTransformBegin | ( | ) | [inline, static] |
Definition at line 82 of file context.h.
References activeContext, and transformBegin().
static void lux::Context::luxTransformEnd | ( | ) | [inline, static] |
Definition at line 83 of file context.h.
References activeContext, and transformEnd().
static void lux::Context::luxTranslate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) | [inline, static] |
Definition at line 64 of file context.h.
References activeContext, and translate().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxTransmitFilm | ( | std::basic_ostream< char > & | stream | ) | [inline, static] |
Definition at line 134 of file context.h.
References activeContext, and transmitFilm().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxUpdateFilmFromNetwork | ( | ) | [inline, static] |
Definition at line 125 of file context.h.
References activeContext, and updateFilmFromNetwork().
static void lux::Context::luxUpdateFramebuffer | ( | ) | [inline, static] |
Definition at line 118 of file context.h.
References activeContext, and updateFramebuffer().
static void lux::Context::luxVolume | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 93 of file context.h.
References activeContext, and volume().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxVolumeIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 77 of file context.h.
References activeContext, and volumeIntegrator().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxWait | ( | ) | [inline, static] |
Definition at line 111 of file context.h.
References activeContext, and wait().
static void lux::Context::luxWorldBegin | ( | ) | [inline, static] |
Definition at line 79 of file context.h.
References activeContext, and worldBegin().
static void lux::Context::luxWorldEnd | ( | ) | [inline, static] |
Definition at line 97 of file context.h.
References activeContext, and worldEnd().
void Context::makemixmaterial | ( | const ParamSet | shapeparams, | |
const ParamSet | materialparams, | |||
boost::shared_ptr< Material > | mtl | |||
) |
Definition at line 468 of file context.cpp.
References curTransform, lux::ParamSet::EraseString(), lux::ParamSet::FindOneString(), lux::Context::GraphicsState::floatTextures, graphicsState, LUX_ERROR, LUX_SYNTAX, luxError, lux::MakeMaterial(), material(), namedmaterials, and lux::Context::GraphicsState::spectrumTextures.
Referenced by shape().
void Context::makenamedmaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 348 of file context.cpp.
References lux::Context::NamedMaterial::material, lux::Context::NamedMaterial::materialParams, namedmaterials, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxMakeNamedMaterial().
void Context::material | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 340 of file context.cpp.
References graphicsState, lux::Context::GraphicsState::material, lux::Context::GraphicsState::materialParams, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxMaterial(), makemixmaterial(), and namedmaterial().
void Context::namedmaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 358 of file context.cpp.
References lux::ParamSet::EraseString(), LUX_ERROR, LUX_SYNTAX, luxError, material(), namedmaterials, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxNamedMaterial().
void Context::objectBegin | ( | const string & | name | ) | [private] |
Definition at line 581 of file context.cpp.
References lux::Context::RenderOptions::currentInstance, lux::Context::RenderOptions::instances, LUX_ERROR, LUX_NESTING, luxAttributeBegin(), luxError, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxObjectBegin().
void Context::objectEnd | ( | ) | [private] |
Definition at line 591 of file context.cpp.
References lux::Context::RenderOptions::currentInstance, LUX_ERROR, LUX_NESTING, luxAttributeEnd(), luxError, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxObjectEnd().
void Context::objectInstance | ( | const string & | name | ) | [private] |
Definition at line 600 of file context.cpp.
References lux::Context::RenderOptions::AcceleratorName, lux::Context::RenderOptions::AcceleratorParams, lux::Context::RenderOptions::currentInstance, curTransform, lux::Context::RenderOptions::instances, LUX_BADTOKEN, LUX_BUG, LUX_ERROR, LUX_NESTING, LUX_SEVERE, luxError, lux::MakeAccelerator(), lux::Context::RenderOptions::primitives, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxObjectInstance().
void Context::pause | ( | ) | [private] |
Definition at line 737 of file context.cpp.
References luxCurrentScene, and lux::Scene::Pause().
Referenced by luxPause().
void Context::pixelFilter | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 201 of file context.cpp.
References lux::Context::RenderOptions::FilterName, lux::Context::RenderOptions::FilterParams, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_OPTIONS.
Referenced by luxPixelFilter().
void Context::portalShape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 428 of file context.cpp.
References lux::Light::AddPortalShape(), lux::Context::GraphicsState::currentLight, lux::Context::GraphicsState::currentLightPtr, curTransform, lux::Context::GraphicsState::floatTextures, graphicsState, LUX_UNIMPLEMENT, LUX_WARNING, luxError, lux::MakeMaterial(), lux::MakeShape(), lux::Context::GraphicsState::materialParams, renderFarm, lux::ParamSet::ReportUnused(), lux::Context::GraphicsState::reverseOrientation, lux::RenderFarm::send(), shape(), lux::Context::GraphicsState::spectrumTextures, and VERIFY_WORLD.
Referenced by luxPortalShape().
void Context::removeThread | ( | ) | [private] |
Definition at line 761 of file context.cpp.
References luxCurrentScene, and lux::Scene::RemoveThread().
Referenced by luxRemoveThread().
void Context::reverseOrientation | ( | ) | [private] |
Definition at line 567 of file context.cpp.
References graphicsState, renderFarm, lux::Context::GraphicsState::reverseOrientation, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxReverseOrientation().
void Context::rotate | ( | float | angle, | |
float | ax, | |||
float | ay, | |||
float | az | |||
) | [private] |
Definition at line 166 of file context.cpp.
References curTransform, renderFarm, lux::Rotate(), lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxRotate().
void Context::sampler | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 215 of file context.cpp.
References renderFarm, renderOptions, lux::Context::RenderOptions::SamplerName, lux::Context::RenderOptions::SamplerParams, lux::RenderFarm::send(), and VERIFY_OPTIONS.
Referenced by luxSampler(), and lux::Context::RenderOptions::MakeScene().
void Context::scale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) | [private] |
Definition at line 171 of file context.cpp.
References curTransform, renderFarm, lux::Scale(), lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxScale().
static void lux::Context::setActive | ( | Context * | c | ) | [inline, static] |
Definition at line 57 of file context.h.
References activeContext.
void Context::shape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 518 of file context.cpp.
References lux::Context::GraphicsState::areaLight, lux::Context::GraphicsState::areaLightParams, lux::Context::RenderOptions::currentInstance, curTransform, lux::Context::GraphicsState::floatTextures, graphicsState, lux::Context::RenderOptions::lights, LUX_BUG, LUX_SEVERE, LUX_UNIMPLEMENT, LUX_WARNING, luxError, lux::MakeAreaLight(), lux::MakeMaterial(), makemixmaterial(), lux::MakeShape(), lux::Context::GraphicsState::material, lux::Context::GraphicsState::materialParams, lux::Context::RenderOptions::primitives, renderFarm, renderOptions, lux::ParamSet::ReportUnused(), lux::Context::GraphicsState::reverseOrientation, lux::RenderFarm::send(), lux::Context::GraphicsState::spectrumTextures, and VERIFY_WORLD.
Referenced by luxShape(), and portalShape().
void Context::start | ( | ) | [private] |
Definition at line 733 of file context.cpp.
References luxCurrentScene, and lux::Scene::Start().
Referenced by luxStart().
double Context::statistics | ( | const string & | statName | ) | [private] |
Definition at line 774 of file context.cpp.
References luxCurrentScene, and lux::Scene::Statistics().
Referenced by luxStatistics().
void Context::surfaceIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 229 of file context.cpp.
References renderFarm, renderOptions, lux::RenderFarm::send(), lux::Context::RenderOptions::SurfIntegratorName, lux::Context::RenderOptions::SurfIntegratorParams, and VERIFY_OPTIONS.
Referenced by luxSurfaceIntegrator(), and lux::Context::RenderOptions::MakeScene().
void Context::texture | ( | const string & | name, | |
const string & | type, | |||
const string & | texname, | |||
const ParamSet & | params | |||
) | [private] |
Definition at line 298 of file context.cpp.
References curTransform, lux::Context::GraphicsState::floatTextures, graphicsState, LUX_ERROR, LUX_SYNTAX, LUX_WARNING, luxError, lux::MakeFloatTexture(), lux::MakeSpectrumTexture(), renderFarm, lux::RenderFarm::send(), lux::Context::GraphicsState::spectrumTextures, and VERIFY_WORLD.
Referenced by luxTexture().
void Context::transform | ( | float | transform[16] | ) | [private] |
Definition at line 147 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxTransform().
void Context::transformBegin | ( | ) | [private] |
Definition at line 281 of file context.cpp.
References curTransform, pushedTransforms, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxTransformBegin().
void Context::transformEnd | ( | ) | [private] |
Definition at line 287 of file context.cpp.
References curTransform, LUX_ERROR, LUX_ILLSTATE, luxError, pushedTransforms, renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxTransformEnd().
void Context::translate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) | [private] |
Definition at line 141 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), lux::Translate(), and VERIFY_INITIALIZED.
Referenced by luxTranslate().
void Context::transmitFilm | ( | std::basic_ostream< char > & | stream | ) | [private] |
Definition at line 780 of file context.cpp.
References lux::Scene::camera, lux::Camera::film, luxCurrentScene, and lux::FlexImageFilm::TransmitFilm().
Referenced by luxTransmitFilm().
void Context::updateFilmFromNetwork | ( | ) | [private] |
Definition at line 787 of file context.cpp.
References luxCurrentScene, renderFarm, and lux::RenderFarm::updateFilm().
Referenced by luxUpdateFilmFromNetwork().
void Context::updateFramebuffer | ( | ) | [private] |
Definition at line 766 of file context.cpp.
References luxCurrentScene, and lux::Scene::UpdateFramebuffer().
Referenced by luxUpdateFramebuffer().
void Context::volume | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 573 of file context.cpp.
References curTransform, lux::MakeVolumeRegion(), renderFarm, renderOptions, lux::RenderFarm::send(), VERIFY_WORLD, and lux::Context::RenderOptions::volumeRegions.
Referenced by luxVolume().
void Context::volumeIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 236 of file context.cpp.
References renderFarm, renderOptions, lux::RenderFarm::send(), VERIFY_OPTIONS, lux::Context::RenderOptions::VolIntegratorName, and lux::Context::RenderOptions::VolIntegratorParams.
Referenced by luxVolumeIntegrator(), and lux::Context::RenderOptions::MakeScene().
void Context::wait | ( | ) | [private] |
void Context::worldBegin | ( | ) | [private] |
Definition at line 253 of file context.cpp.
References currentApiState, curTransform, namedCoordinateSystems, renderFarm, lux::RenderFarm::send(), STATE_WORLD_BLOCK, and VERIFY_OPTIONS.
Referenced by luxWorldBegin().
void Context::worldEnd | ( | ) | [private] |
Definition at line 635 of file context.cpp.
References currentApiState, curTransform, lux::RenderFarm::flush(), lux::RenderFarm::getServerCount(), LUX_NESTING, LUX_WARNING, luxCurrentScene, luxError, lux::Context::RenderOptions::MakeScene(), namedCoordinateSystems, pushedGraphicsStates, pushedTransforms, lux::Scene::Render(), renderFarm, renderingMutex, renderOptions, lux::RenderFarm::send(), lux::RenderFarm::startFilmUpdater(), STATE_OPTIONS_BLOCK, lux::StatsPrint(), lux::RenderFarm::stopFilmUpdater(), and VERIFY_WORLD.
Referenced by luxWorldEnd().
Context * Context::activeContext [static, private] |
Definition at line 140 of file context.h.
Referenced by exit(), getActive(), luxAccelerator(), luxAddServer(), luxAddThread(), luxAreaLightSource(), luxAttributeBegin(), luxAttributeEnd(), luxCamera(), luxCleanup(), luxConcatTransform(), luxCoordinateSystem(), luxCoordSysTransform(), luxEnableDebugMode(), luxExit(), luxFilm(), luxFramebuffer(), luxGetNetworkServerUpdateInterval(), luxIdentity(), luxLightSource(), luxLookAt(), luxMakeNamedMaterial(), luxMaterial(), luxNamedMaterial(), luxObjectBegin(), luxObjectEnd(), luxObjectInstance(), luxPause(), luxPixelFilter(), luxPortalShape(), luxRemoveThread(), luxReverseOrientation(), luxRotate(), luxSampler(), luxScale(), luxSetNetworkServerUpdateInterval(), luxShape(), luxStart(), luxStatistics(), luxSurfaceIntegrator(), luxTexture(), luxTransform(), luxTransformBegin(), luxTransformEnd(), luxTranslate(), luxTransmitFilm(), luxUpdateFilmFromNetwork(), luxUpdateFramebuffer(), luxVolume(), luxVolumeIntegrator(), luxWait(), luxWorldBegin(), luxWorldEnd(), and setActive().
int lux::Context::currentApiState [private] |
Definition at line 284 of file context.h.
Referenced by cleanup(), init(), worldBegin(), and worldEnd().
Transform lux::Context::curTransform [private] |
Definition at line 285 of file context.h.
Referenced by attributeBegin(), attributeEnd(), camera(), concatTransform(), coordinateSystem(), coordSysTransform(), identity(), init(), lightSource(), lookAt(), makemixmaterial(), objectInstance(), portalShape(), rotate(), scale(), shape(), texture(), transform(), transformBegin(), transformEnd(), translate(), volume(), worldBegin(), and worldEnd().
GraphicsState* lux::Context::graphicsState [private] |
Definition at line 288 of file context.h.
Referenced by areaLightSource(), attributeBegin(), attributeEnd(), free(), init(), lightSource(), makemixmaterial(), material(), portalShape(), reverseOrientation(), shape(), and texture().
Scene* lux::Context::luxCurrentScene [private] |
Definition at line 142 of file context.h.
Referenced by addThread(), exit(), framebuffer(), free(), init(), pause(), removeThread(), start(), statistics(), transmitFilm(), updateFilmFromNetwork(), updateFramebuffer(), and worldEnd().
string lux::Context::name [private] |
map<string, Transform> lux::Context::namedCoordinateSystems [private] |
Definition at line 286 of file context.h.
Referenced by camera(), coordinateSystem(), coordSysTransform(), init(), worldBegin(), and worldEnd().
vector<NamedMaterial> lux::Context::namedmaterials [private] |
Definition at line 289 of file context.h.
Referenced by init(), makemixmaterial(), makenamedmaterial(), and namedmaterial().
vector<GraphicsState> lux::Context::pushedGraphicsStates [private] |
Definition at line 290 of file context.h.
Referenced by attributeBegin(), attributeEnd(), init(), and worldEnd().
vector<Transform> lux::Context::pushedTransforms [private] |
Definition at line 291 of file context.h.
Referenced by attributeBegin(), attributeEnd(), init(), transformBegin(), transformEnd(), and worldEnd().
RenderFarm* lux::Context::renderFarm [private] |
Definition at line 292 of file context.h.
Referenced by accelerator(), addServer(), areaLightSource(), attributeBegin(), attributeEnd(), camera(), cleanup(), concatTransform(), coordinateSystem(), coordSysTransform(), exit(), film(), free(), identity(), init(), lightSource(), lookAt(), luxGetNetworkServerUpdateInterval(), luxSetNetworkServerUpdateInterval(), makenamedmaterial(), material(), namedmaterial(), objectBegin(), objectEnd(), objectInstance(), pixelFilter(), portalShape(), reverseOrientation(), rotate(), sampler(), scale(), shape(), surfaceIntegrator(), texture(), transform(), transformBegin(), transformEnd(), translate(), updateFilmFromNetwork(), volume(), volumeIntegrator(), worldBegin(), and worldEnd().
boost::mutex lux::Context::renderingMutex [mutable, private] |
Definition at line 295 of file context.h.
Referenced by wait(), and worldEnd().
RenderOptions* lux::Context::renderOptions [private] |
Definition at line 287 of file context.h.
Referenced by accelerator(), camera(), enableDebugMode(), film(), free(), init(), lightSource(), objectBegin(), objectEnd(), objectInstance(), pixelFilter(), sampler(), shape(), surfaceIntegrator(), volume(), volumeIntegrator(), and worldEnd().