#include <context.h>
Classes | |
struct | GraphicsState |
struct | NamedMaterial |
struct | RenderOptions |
Public Member Functions | |
Context (std::string n="Lux default context") | |
~Context () | |
boost::shared_ptr< Material > | makematerial (const ParamSet &shapeparams, bool force) |
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 map< string, boost::shared_ptr< Texture < float > > > * | getActiveFloatTextures () |
static map< string, boost::shared_ptr< Texture < SWCSpectrum > > > * | getActiveSWCSpectrumTextures () |
static u_int | getActiveLightGroup () |
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 | luxLightGroup (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 | luxMotionInstance (const string &name, float startTime, float endTime, const string &toTransform) |
static void | luxWorldEnd () |
static void | luxCleanup () |
static void | luxLoadFLM (const string &name) |
static void | luxSaveFLM (const string &name) |
static void | luxOverrideResumeFLM (const string &name) |
static void | luxStart () |
static void | luxPause () |
static void | luxExit () |
static void | luxWait () |
static void | luxSetHaltSamplePerPixel (int haltspp, bool haveEnoughSamplePerPixel, bool suspendThreadsWhenDone) |
static int | luxAddThread () |
static void | luxRemoveThread () |
static int | luxGetRenderingThreadsStatus (RenderingThreadInfo *info, int maxInfoCount) |
static void | luxUpdateFramebuffer () |
static unsigned char * | luxFramebuffer () |
static void | luxGetHistogramImage (unsigned char *outPixels, int width, int height, int options) |
static void | luxSetParameterValue (luxComponent comp, luxComponentParameters param, double value, int index) |
static double | luxGetParameterValue (luxComponent comp, luxComponentParameters param, int index) |
static double | luxGetDefaultParameterValue (luxComponent comp, luxComponentParameters param, int index) |
static void | luxSetStringParameterValue (luxComponent comp, luxComponentParameters param, const string &value, int index) |
static string | luxGetStringParameterValue (luxComponent comp, luxComponentParameters param, int index) |
static string | luxGetDefaultStringParameterValue (luxComponent comp, luxComponentParameters param, int index) |
static void | luxUpdateFilmFromNetwork () |
static void | luxSetNetworkServerUpdateInterval (int updateInterval) |
static int | luxGetNetworkServerUpdateInterval () |
static void | luxAddServer (const string &name) |
static void | luxRemoveServer (const string &name) |
static int | luxGetServerCount () |
static int | luxGetRenderingServersStatus (RenderingServerInfo *info, int maxInfoCount) |
static void | luxSceneReady () |
static double | luxStatistics (const string &statName) |
static void | luxTransmitFilm (std::basic_ostream< char > &stream) |
static void | luxEnableDebugMode () |
static void | luxDisableRandomMode () |
static void | luxSetEpsilon (const float minValue, const float maxValue) |
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 | lightGroup (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 | motionInstance (const string &name, float startTime, float endTime, const string &toTransform) |
void | worldEnd () |
void | cleanup () |
void | loadFLM (const string &name) |
void | saveFLM (const string &name) |
void | overrideResumeFLM (const string &name) |
void | start () |
void | pause () |
void | exit () |
void | wait () |
void | setHaltSamplePerPixel (int haltspp, bool haveEnoughSamplePerPixel, bool suspendThreadsWhenDone) |
int | addThread () |
void | removeThread () |
int | getRenderingThreadsStatus (RenderingThreadInfo *info, int maxInfoCount) |
void | updateFramebuffer () |
unsigned char * | framebuffer () |
void | getHistogramImage (unsigned char *outPixels, int width, int height, int options) |
void | SetParameterValue (luxComponent comp, luxComponentParameters param, double value, int index) |
double | GetParameterValue (luxComponent comp, luxComponentParameters param, int index) |
double | GetDefaultParameterValue (luxComponent comp, luxComponentParameters param, int index) |
void | SetStringParameterValue (luxComponent comp, luxComponentParameters param, const string &value, int index) |
string | GetStringParameterValue (luxComponent comp, luxComponentParameters param, int index) |
string | GetDefaultStringParameterValue (luxComponent comp, luxComponentParameters param, int index) |
u_int | GetActiveLightGroup () |
void | updateFilmFromNetwork () |
void | setNetworkServerUpdateInterval (int updateInterval) |
int | getNetworkServerUpdateInterval () |
void | transmitFilm (std::basic_ostream< char > &stream) |
double | statistics (const string &statName) |
void | sceneReady () |
void | addServer (const string &name) |
void | removeServer (const string &name) |
int | getServerCount () |
int | getRenderingServersStatus (RenderingServerInfo *info, int maxInfoCount) |
void | enableDebugMode () |
void | disableRandomMode () |
void | setEpsilon (const float minValue, const float maxValue) |
Private Attributes | |
string | name |
Scene * | luxCurrentScene |
bool | luxCurrentSceneReady |
bool | terminated |
int | currentApiState |
Transform | curTransform |
map< string, Transform > | namedCoordinateSystems |
RenderOptions * | renderOptions |
GraphicsState * | graphicsState |
vector< NamedMaterial > | namedmaterials |
vector< GraphicsState > | pushedGraphicsStates |
vector< Transform > | pushedTransforms |
RenderFarm * | renderFarm |
ParamSet * | filmOverrideParams |
boost::mutex | renderingMutex |
Static Private Attributes | |
static Context * | activeContext |
Definition at line 42 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 272 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 123 of file context.cpp.
References lux::RenderFarm::connect(), getServerCount(), luxCurrentScene, renderFarm, and lux::RenderFarm::startFilmUpdater().
Referenced by luxAddServer().
int Context::addThread | ( | ) | [private] |
Definition at line 958 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 494 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 315 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 321 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 & | n, | |
const ParamSet & | cameraParams | |||
) | [private] |
Definition at line 290 of file context.cpp.
References lux::Context::RenderOptions::CameraName, lux::Context::RenderOptions::CameraParams, curTransform, lux::ParamSet::FindOneString(), lux::Transform::GetInverse(), namedCoordinateSystems, renderFarm, renderOptions, lux::RenderFarm::send(), VERIFY_OPTIONS, lux::Context::RenderOptions::WorldToCamera, and lux::Context::RenderOptions::WorldToCameraEnd.
Referenced by luxCamera(), and lux::Context::RenderOptions::MakeScene().
void Context::cleanup | ( | ) | [private] |
Definition at line 154 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 193 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxConcatTransform().
void Context::coordinateSystem | ( | const string & | n | ) | [private] |
Definition at line 220 of file context.cpp.
References curTransform, namedCoordinateSystems, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxCoordinateSystem().
void Context::coordSysTransform | ( | const string & | n | ) | [private] |
Definition at line 225 of file context.cpp.
References curTransform, namedCoordinateSystems, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxCoordSysTransform().
void Context::disableRandomMode | ( | ) | [private] |
Definition at line 244 of file context.cpp.
References lux::Context::RenderOptions::randomMode, renderOptions, and VERIFY_OPTIONS.
Referenced by luxDisableRandomMode().
void Context::enableDebugMode | ( | ) | [private] |
Definition at line 238 of file context.cpp.
References lux::Context::RenderOptions::debugMode, renderOptions, and VERIFY_OPTIONS.
Referenced by luxEnableDebugMode().
void Context::exit | ( | ) | [private] |
Definition at line 935 of file context.cpp.
References activeContext, DEFAULT_EPSILON_MAX, DEFAULT_EPSILON_MIN, lux::RenderFarm::disconnectAll(), lux::Scene::Exit(), getServerCount(), luxCurrentScene, renderFarm, lux::MachineEpsilon::SetMax(), lux::MachineEpsilon::SetMin(), lux::RenderFarm::stopFilmUpdater(), terminated, and lux::RenderFarm::updateFilm().
Referenced by luxExit().
void Context::film | ( | const string & | type, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 257 of file context.cpp.
References lux::ParamSet::Add(), lux::Context::RenderOptions::FilmName, filmOverrideParams, 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 978 of file context.cpp.
References lux::Scene::GetFramebuffer(), and luxCurrentScene.
Referenced by luxFramebuffer().
void Context::free | ( | ) | [private] |
Definition at line 92 of file context.cpp.
References filmOverrideParams, graphicsState, luxCurrentScene, luxCurrentSceneReady, renderFarm, and renderOptions.
Referenced by cleanup(), and ~Context().
static Context* lux::Context::getActive | ( | ) | [inline, static] |
Definition at line 58 of file context.h.
References activeContext.
static map<string, boost::shared_ptr<Texture<float> > >* lux::Context::getActiveFloatTextures | ( | ) | [inline, static] |
Definition at line 65 of file context.h.
References activeContext, lux::Context::GraphicsState::floatTextures, and graphicsState.
Referenced by CreateShape(), and lux::LoopSubdiv::CreateShape().
u_int Context::GetActiveLightGroup | ( | ) | [private] |
Definition at line 1007 of file context.cpp.
References lux::Context::GraphicsState::currentLightGroup, getActiveLightGroup(), graphicsState, lux::Context::RenderOptions::lightGroups, LUX_BADFILE, LUX_ERROR, luxError, and renderOptions.
Referenced by getActiveLightGroup(), lightSource(), and shape().
static u_int lux::Context::getActiveLightGroup | ( | ) | [inline, static] |
Definition at line 71 of file context.h.
References activeContext, and GetActiveLightGroup().
Referenced by lux::EmissionIntegrator::CreateVolumeIntegrator(), and GetActiveLightGroup().
static map<string, boost::shared_ptr<Texture<SWCSpectrum> > >* lux::Context::getActiveSWCSpectrumTextures | ( | ) | [inline, static] |
Definition at line 68 of file context.h.
References activeContext, lux::Context::GraphicsState::colorTextures, and graphicsState.
double Context::GetDefaultParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [private] |
Definition at line 994 of file context.cpp.
References lux::Scene::GetDefaultParameterValue(), and luxCurrentScene.
Referenced by luxGetDefaultParameterValue().
string Context::GetDefaultStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [private] |
Definition at line 1003 of file context.cpp.
References lux::Scene::GetDefaultStringParameterValue(), and luxCurrentScene.
Referenced by luxGetDefaultStringParameterValue().
void Context::getHistogramImage | ( | unsigned char * | outPixels, | |
int | width, | |||
int | height, | |||
int | options | |||
) | [private] |
Definition at line 983 of file context.cpp.
References lux::Scene::getHistogramImage(), and luxCurrentScene.
Referenced by luxGetHistogramImage().
int Context::getNetworkServerUpdateInterval | ( | ) | [private] |
Definition at line 1054 of file context.cpp.
References activeContext, renderFarm, and lux::RenderFarm::serverUpdateInterval.
Referenced by luxGetNetworkServerUpdateInterval().
double Context::GetParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [private] |
Definition at line 991 of file context.cpp.
References lux::Scene::GetParameterValue(), and luxCurrentScene.
Referenced by luxGetParameterValue().
int Context::getRenderingServersStatus | ( | RenderingServerInfo * | info, | |
int | maxInfoCount | |||
) | [private] |
Definition at line 147 of file context.cpp.
References lux::RenderFarm::getServersStatus(), and renderFarm.
Referenced by luxGetRenderingServersStatus().
int Context::getRenderingThreadsStatus | ( | RenderingThreadInfo * | info, | |
int | maxInfoCount | |||
) | [private] |
Definition at line 966 of file context.cpp.
References lux::Scene::getThreadsStatus(), and luxCurrentScene.
Referenced by luxGetRenderingThreadsStatus().
int Context::getServerCount | ( | ) | [private] |
Definition at line 140 of file context.cpp.
References lux::RenderFarm::getServerCount(), and renderFarm.
Referenced by addServer(), exit(), luxGetServerCount(), removeServer(), and worldEnd().
string Context::GetStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [private] |
Definition at line 1000 of file context.cpp.
References lux::Scene::GetStringParameterValue(), and luxCurrentScene.
Referenced by luxGetStringParameterValue().
void Context::identity | ( | ) | [private] |
Definition at line 171 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxIdentity().
void Context::init | ( | ) | [private] |
Definition at line 75 of file context.cpp.
References currentApiState, curTransform, filmOverrideParams, graphicsState, luxCurrentScene, luxCurrentSceneReady, namedCoordinateSystems, namedmaterials, pushedGraphicsStates, pushedTransforms, renderFarm, renderOptions, STATE_OPTIONS_BLOCK, and terminated.
void Context::lightGroup | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 429 of file context.cpp.
References lux::Context::GraphicsState::currentLightGroup, graphicsState, lux::Context::RenderOptions::lightGroups, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxLightGroup().
void Context::lightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 445 of file context.cpp.
References lux::Context::GraphicsState::colorTextures, lux::Context::GraphicsState::currentLight, lux::Context::GraphicsState::currentLightPtr0, lux::Context::GraphicsState::currentLightPtr1, curTransform, lux::Context::GraphicsState::floatTextures, GetActiveLightGroup(), graphicsState, lux::Light::group, lux::Context::RenderOptions::lights, LUX_ERROR, LUX_SYNTAX, luxError, lux::MakeLight(), lux::Context::GraphicsState::materialParams, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxLightSource().
void Context::loadFLM | ( | const string & | name | ) | [private] |
Definition at line 879 of file context.cpp.
References lux::FlexImageFilm::CreateFilmFromFLM(), LUX_BUG, LUX_SEVERE, luxCurrentScene, luxError, lux::MakeCamera(), and sceneReady().
Referenced by luxLoadFLM().
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 212 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 89 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 180 of file context.h.
References activeContext, and addServer().
static int lux::Context::luxAddThread | ( | ) | [inline, static] |
Definition at line 145 of file context.h.
References activeContext, and addThread().
static void lux::Context::luxAreaLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 104 of file context.h.
References activeContext, and areaLightSource().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxAttributeBegin | ( | ) | [inline, static] |
Definition at line 94 of file context.h.
References activeContext, and attributeBegin().
Referenced by objectBegin().
static void lux::Context::luxAttributeEnd | ( | ) | [inline, static] |
Definition at line 95 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 92 of file context.h.
References activeContext, and camera().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxCleanup | ( | ) | [inline, static] |
Definition at line 125 of file context.h.
References activeContext, and cleanup().
static void lux::Context::luxConcatTransform | ( | float | transform[16] | ) | [inline, static] |
Definition at line 82 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 84 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 85 of file context.h.
References activeContext, and coordSysTransform().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxDisableRandomMode | ( | ) | [inline, static] |
Definition at line 196 of file context.h.
References activeContext, and disableRandomMode().
static void lux::Context::luxEnableDebugMode | ( | ) | [inline, static] |
Definition at line 193 of file context.h.
References activeContext, and enableDebugMode().
static void lux::Context::luxExit | ( | ) | [inline, static] |
Definition at line 136 of file context.h.
References activeContext, and exit().
static void lux::Context::luxFilm | ( | const string & | type, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 87 of file context.h.
References activeContext, and film().
Referenced by lux::NetworkRenderServerThread::run().
static unsigned char* lux::Context::luxFramebuffer | ( | ) | [inline, static] |
Definition at line 151 of file context.h.
References activeContext, and framebuffer().
static double lux::Context::luxGetDefaultParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [inline, static] |
Definition at line 163 of file context.h.
References activeContext, and GetDefaultParameterValue().
static string lux::Context::luxGetDefaultStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [inline, static] |
Definition at line 172 of file context.h.
References activeContext, and GetDefaultStringParameterValue().
static void lux::Context::luxGetHistogramImage | ( | unsigned char * | outPixels, | |
int | width, | |||
int | height, | |||
int | options | |||
) | [inline, static] |
Definition at line 154 of file context.h.
References activeContext, and getHistogramImage().
static int lux::Context::luxGetNetworkServerUpdateInterval | ( | ) | [inline, static] |
Definition at line 179 of file context.h.
References activeContext, and getNetworkServerUpdateInterval().
static double lux::Context::luxGetParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [inline, static] |
Definition at line 160 of file context.h.
References activeContext, and GetParameterValue().
static int lux::Context::luxGetRenderingServersStatus | ( | RenderingServerInfo * | info, | |
int | maxInfoCount | |||
) | [inline, static] |
Definition at line 183 of file context.h.
References activeContext, and getRenderingServersStatus().
static int lux::Context::luxGetRenderingThreadsStatus | ( | RenderingThreadInfo * | info, | |
int | maxInfoCount | |||
) | [inline, static] |
Definition at line 147 of file context.h.
References activeContext, and getRenderingThreadsStatus().
static int lux::Context::luxGetServerCount | ( | ) | [inline, static] |
Definition at line 182 of file context.h.
References activeContext, and getServerCount().
static string lux::Context::luxGetStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
int | index | |||
) | [inline, static] |
Definition at line 169 of file context.h.
References activeContext, and GetStringParameterValue().
static void lux::Context::luxIdentity | ( | ) | [inline, static] |
Definition at line 77 of file context.h.
References activeContext, and identity().
static void lux::Context::luxLightGroup | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 102 of file context.h.
References activeContext, and lightGroup().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 103 of file context.h.
References activeContext, and lightSource().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxLoadFLM | ( | const string & | name | ) | [inline, static] |
Definition at line 128 of file context.h.
References activeContext, and loadFLM().
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 81 of file context.h.
References activeContext, and lookAt().
static void lux::Context::luxMakeNamedMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 100 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 99 of file context.h.
References activeContext, and material().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxMotionInstance | ( | const string & | name, | |
float | startTime, | |||
float | endTime, | |||
const string & | toTransform | |||
) | [inline, static] |
Definition at line 112 of file context.h.
References activeContext, and motionInstance().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxNamedMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 101 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 109 of file context.h.
References activeContext, and objectBegin().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxObjectEnd | ( | ) | [inline, static] |
Definition at line 110 of file context.h.
References activeContext, and objectEnd().
static void lux::Context::luxObjectInstance | ( | const string & | name | ) | [inline, static] |
Definition at line 111 of file context.h.
References activeContext, and objectInstance().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxOverrideResumeFLM | ( | const string & | name | ) | [inline, static] |
Definition at line 130 of file context.h.
References activeContext, and overrideResumeFLM().
static void lux::Context::luxPause | ( | ) | [inline, static] |
Definition at line 135 of file context.h.
References activeContext, and pause().
static void lux::Context::luxPixelFilter | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 86 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 105 of file context.h.
References activeContext, and portalShape().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxRemoveServer | ( | const string & | name | ) | [inline, static] |
Definition at line 181 of file context.h.
References activeContext, and removeServer().
static void lux::Context::luxRemoveThread | ( | ) | [inline, static] |
Definition at line 146 of file context.h.
References activeContext, and removeThread().
static void lux::Context::luxReverseOrientation | ( | ) | [inline, static] |
Definition at line 107 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 79 of file context.h.
References activeContext, and rotate().
static void lux::Context::luxSampler | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 88 of file context.h.
References activeContext, and sampler().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxSaveFLM | ( | const string & | name | ) | [inline, static] |
Definition at line 129 of file context.h.
References activeContext, and saveFLM().
static void lux::Context::luxScale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) | [inline, static] |
Definition at line 80 of file context.h.
References activeContext, and scale().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxSceneReady | ( | ) | [inline, static] |
Definition at line 186 of file context.h.
References activeContext, and sceneReady().
Referenced by lux::Scene::Render().
static void lux::Context::luxSetEpsilon | ( | const float | minValue, | |
const float | maxValue | |||
) | [inline, static] |
Definition at line 199 of file context.h.
References activeContext, and setEpsilon().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxSetHaltSamplePerPixel | ( | int | haltspp, | |
bool | haveEnoughSamplePerPixel, | |||
bool | suspendThreadsWhenDone | |||
) | [inline, static] |
Definition at line 140 of file context.h.
References activeContext, and setHaltSamplePerPixel().
static void lux::Context::luxSetNetworkServerUpdateInterval | ( | int | updateInterval | ) | [inline, static] |
Definition at line 178 of file context.h.
References activeContext, and setNetworkServerUpdateInterval().
static void lux::Context::luxSetParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
double | value, | |||
int | index | |||
) | [inline, static] |
Definition at line 157 of file context.h.
References activeContext, and SetParameterValue().
static void lux::Context::luxSetStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
const string & | value, | |||
int | index | |||
) | [inline, static] |
Definition at line 166 of file context.h.
References activeContext, and SetStringParameterValue().
static void lux::Context::luxShape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 106 of file context.h.
References activeContext, and shape().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxStart | ( | ) | [inline, static] |
Definition at line 134 of file context.h.
References activeContext, and start().
static double lux::Context::luxStatistics | ( | const string & | statName | ) | [inline, static] |
Definition at line 187 of file context.h.
References activeContext, and statistics().
static void lux::Context::luxSurfaceIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 90 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 98 of file context.h.
References activeContext, and texture().
static void lux::Context::luxTransform | ( | float | transform[16] | ) | [inline, static] |
Definition at line 83 of file context.h.
References activeContext, and transform().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxTransformBegin | ( | ) | [inline, static] |
Definition at line 96 of file context.h.
References activeContext, and transformBegin().
static void lux::Context::luxTransformEnd | ( | ) | [inline, static] |
Definition at line 97 of file context.h.
References activeContext, and transformEnd().
static void lux::Context::luxTranslate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) | [inline, static] |
Definition at line 78 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 190 of file context.h.
References activeContext, and transmitFilm().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxUpdateFilmFromNetwork | ( | ) | [inline, static] |
Definition at line 177 of file context.h.
References activeContext, and updateFilmFromNetwork().
static void lux::Context::luxUpdateFramebuffer | ( | ) | [inline, static] |
Definition at line 150 of file context.h.
References activeContext, and updateFramebuffer().
static void lux::Context::luxVolume | ( | const string & | name, | |
const ParamSet & | params | |||
) | [inline, static] |
Definition at line 108 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 91 of file context.h.
References activeContext, and volumeIntegrator().
Referenced by lux::NetworkRenderServerThread::run().
static void lux::Context::luxWait | ( | ) | [inline, static] |
Definition at line 138 of file context.h.
References activeContext, and wait().
static void lux::Context::luxWorldBegin | ( | ) | [inline, static] |
Definition at line 93 of file context.h.
References activeContext, and worldBegin().
static void lux::Context::luxWorldEnd | ( | ) | [inline, static] |
Definition at line 113 of file context.h.
References activeContext, and worldEnd().
Creates a material using the given shape parameters, the current material and the current textures.
shapeparams | The parameters of the shape. |
Definition at line 526 of file context.cpp.
References lux::Context::GraphicsState::colorTextures, curTransform, lux::Context::GraphicsState::floatTextures, graphicsState, LUX_BUG, LUX_SEVERE, luxError, lux::MakeMaterial(), makemixmaterial(), lux::Context::GraphicsState::material, and lux::Context::GraphicsState::materialParams.
Referenced by motionInstance(), objectInstance(), and shape().
void Context::makemixmaterial | ( | const ParamSet & | shapeparams, | |
const ParamSet & | materialparams, | |||
boost::shared_ptr< Material > | mtl | |||
) |
Definition at line 544 of file context.cpp.
References lux::Context::GraphicsState::colorTextures, curTransform, lux::ParamSet::EraseString(), lux::ParamSet::FindOneString(), lux::Context::GraphicsState::floatTextures, graphicsState, LUX_ERROR, LUX_SYNTAX, luxError, lux::MakeMaterial(), material(), and namedmaterials.
Referenced by makematerial().
void Context::makenamedmaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 400 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 393 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::motionInstance | ( | const string & | name, | |
float | startTime, | |||
float | endTime, | |||
const string & | toTransform | |||
) | [private] |
Definition at line 716 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(), makematerial(), namedCoordinateSystems, lux::Context::RenderOptions::primitives, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxMotionInstance().
void Context::namedmaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 409 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 655 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 664 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 672 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(), makematerial(), lux::Context::RenderOptions::primitives, renderFarm, renderOptions, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxObjectInstance().
void Context::overrideResumeFLM | ( | const string & | name | ) | [private] |
Definition at line 902 of file context.cpp.
References lux::ParamSet::AddBool(), lux::ParamSet::AddString(), and filmOverrideParams.
Referenced by luxOverrideResumeFLM().
void Context::pause | ( | ) | [private] |
Definition at line 919 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 251 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 502 of file context.cpp.
References lux::Light::AddPortalShape(), lux::Context::GraphicsState::currentLight, lux::Context::GraphicsState::currentLightPtr0, lux::Context::GraphicsState::currentLightPtr1, curTransform, graphicsState, lux::MakeShape(), renderFarm, lux::ParamSet::ReportUnused(), lux::Context::GraphicsState::reverseOrientation, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxPortalShape().
void Context::removeServer | ( | const string & | name | ) | [private] |
Definition at line 132 of file context.cpp.
References lux::RenderFarm::disconnect(), getServerCount(), renderFarm, and lux::RenderFarm::stopFilmUpdater().
Referenced by luxRemoveServer().
void Context::removeThread | ( | ) | [private] |
Definition at line 962 of file context.cpp.
References luxCurrentScene, and lux::Scene::RemoveThread().
Referenced by luxRemoveThread().
void Context::reverseOrientation | ( | ) | [private] |
Definition at line 643 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 202 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 266 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::saveFLM | ( | const string & | name | ) | [private] |
Definition at line 898 of file context.cpp.
References luxCurrentScene, and lux::Scene::SaveFLM().
Referenced by luxSaveFLM().
void Context::scale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) | [private] |
Definition at line 207 of file context.cpp.
References curTransform, renderFarm, lux::Scale(), lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxScale().
void Context::sceneReady | ( | ) | [private] |
Definition at line 1039 of file context.cpp.
References luxCurrentSceneReady.
Referenced by loadFLM(), and luxSceneReady().
static void lux::Context::setActive | ( | Context * | c | ) | [inline, static] |
Definition at line 61 of file context.h.
References activeContext.
void Context::setEpsilon | ( | const float | minValue, | |
const float | maxValue | |||
) | [private] |
Definition at line 231 of file context.cpp.
References renderFarm, lux::RenderFarm::send(), lux::MachineEpsilon::SetMax(), lux::MachineEpsilon::SetMin(), and VERIFY_INITIALIZED.
Referenced by luxSetEpsilon().
void Context::setHaltSamplePerPixel | ( | int | haltspp, | |
bool | haveEnoughSamplePerPixel, | |||
bool | suspendThreadsWhenDone | |||
) | [private] |
Definition at line 923 of file context.cpp.
References lux::Scene::camera, lux::Film::enoughSamplePerPixel, lux::Camera::film, lux::Film::haltSamplePerPixel, luxCurrentScene, and lux::Scene::suspendThreadsWhenDone.
Referenced by luxSetHaltSamplePerPixel().
void Context::setNetworkServerUpdateInterval | ( | int | updateInterval | ) | [private] |
Definition at line 1050 of file context.cpp.
References activeContext, renderFarm, and lux::RenderFarm::serverUpdateInterval.
Referenced by luxSetNetworkServerUpdateInterval().
void Context::SetParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
double | value, | |||
int | index | |||
) | [private] |
Definition at line 988 of file context.cpp.
References luxCurrentScene, and lux::Scene::SetParameterValue().
Referenced by luxSetParameterValue().
void Context::SetStringParameterValue | ( | luxComponent | comp, | |
luxComponentParameters | param, | |||
const string & | value, | |||
int | index | |||
) | [private] |
Definition at line 997 of file context.cpp.
References luxCurrentScene, and lux::Scene::SetStringParameterValue().
Referenced by luxSetStringParameterValue().
void Context::shape | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 594 of file context.cpp.
References lux::Context::GraphicsState::areaLight, lux::Context::GraphicsState::areaLightParams, lux::Context::GraphicsState::colorTextures, lux::Context::RenderOptions::currentInstance, curTransform, lux::Context::GraphicsState::floatTextures, GetActiveLightGroup(), graphicsState, lux::Light::group, lux::Context::RenderOptions::lights, LUX_UNIMPLEMENT, LUX_WARNING, luxError, lux::MakeAreaLight(), makematerial(), lux::MakeShape(), lux::Context::RenderOptions::primitives, renderFarm, renderOptions, lux::ParamSet::ReportUnused(), lux::Context::GraphicsState::reverseOrientation, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxShape().
void Context::start | ( | ) | [private] |
Definition at line 915 of file context.cpp.
References luxCurrentScene, and lux::Scene::Start().
Referenced by luxStart().
double Context::statistics | ( | const string & | statName | ) | [private] |
Definition at line 1032 of file context.cpp.
References lux::Scene::IsFilmOnly(), luxCurrentScene, luxCurrentSceneReady, lux::Scene::Statistics(), and terminated.
Referenced by luxStatistics().
void Context::surfaceIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) | [private] |
Definition at line 278 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 352 of file context.cpp.
References lux::Context::GraphicsState::colorTextures, curTransform, lux::Context::GraphicsState::floatTextures, graphicsState, LUX_ERROR, LUX_SYNTAX, LUX_WARNING, luxError, lux::MakeFloatTexture(), lux::MakeSWCSpectrumTexture(), renderFarm, lux::RenderFarm::send(), and VERIFY_WORLD.
Referenced by luxTexture().
void Context::transform | ( | float | transform[16] | ) | [private] |
Definition at line 183 of file context.cpp.
References curTransform, renderFarm, lux::RenderFarm::send(), and VERIFY_INITIALIZED.
Referenced by luxTransform().
void Context::transformBegin | ( | ) | [private] |
Definition at line 333 of file context.cpp.
References curTransform, pushedTransforms, renderFarm, and lux::RenderFarm::send().
Referenced by luxTransformBegin().
void Context::transformEnd | ( | ) | [private] |
Definition at line 340 of file context.cpp.
References curTransform, LUX_ERROR, LUX_ILLSTATE, luxError, pushedTransforms, renderFarm, and lux::RenderFarm::send().
Referenced by luxTransformEnd().
void Context::translate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) | [private] |
Definition at line 177 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 1043 of file context.cpp.
References lux::Scene::camera, lux::Camera::film, luxCurrentScene, and lux::Film::TransmitFilm().
Referenced by luxTransmitFilm().
void Context::updateFilmFromNetwork | ( | ) | [private] |
Definition at line 1047 of file context.cpp.
References luxCurrentScene, renderFarm, and lux::RenderFarm::updateFilm().
Referenced by luxUpdateFilmFromNetwork().
void Context::updateFramebuffer | ( | ) | [private] |
Definition at line 974 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 648 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 284 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 308 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 771 of file context.cpp.
References activeContext, lux::Scene::camera, currentApiState, curTransform, lux::RenderFarm::disconnectAll(), lux::Camera::film, lux::RenderFarm::flush(), getServerCount(), lux::RenderFarm::getServerCount(), lux::IMAGE_FILEOUTPUT, lux::IMAGE_FRAMEBUFFER, 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(), terminated, lux::RenderFarm::updateFilm(), VERIFY_WORLD, and lux::Film::WriteImage().
Referenced by luxWorldEnd().
Context * Context::activeContext [static, private] |
Definition at line 202 of file context.h.
Referenced by exit(), getActive(), getActiveFloatTextures(), getActiveLightGroup(), getActiveSWCSpectrumTextures(), getNetworkServerUpdateInterval(), luxAccelerator(), luxAddServer(), luxAddThread(), luxAreaLightSource(), luxAttributeBegin(), luxAttributeEnd(), luxCamera(), luxCleanup(), luxConcatTransform(), luxCoordinateSystem(), luxCoordSysTransform(), luxDisableRandomMode(), luxEnableDebugMode(), luxExit(), luxFilm(), luxFramebuffer(), luxGetDefaultParameterValue(), luxGetDefaultStringParameterValue(), luxGetHistogramImage(), luxGetNetworkServerUpdateInterval(), luxGetParameterValue(), luxGetRenderingServersStatus(), luxGetRenderingThreadsStatus(), luxGetServerCount(), luxGetStringParameterValue(), luxIdentity(), luxLightGroup(), luxLightSource(), luxLoadFLM(), luxLookAt(), luxMakeNamedMaterial(), luxMaterial(), luxMotionInstance(), luxNamedMaterial(), luxObjectBegin(), luxObjectEnd(), luxObjectInstance(), luxOverrideResumeFLM(), luxPause(), luxPixelFilter(), luxPortalShape(), luxRemoveServer(), luxRemoveThread(), luxReverseOrientation(), luxRotate(), luxSampler(), luxSaveFLM(), luxScale(), luxSceneReady(), luxSetEpsilon(), luxSetHaltSamplePerPixel(), luxSetNetworkServerUpdateInterval(), luxSetParameterValue(), luxSetStringParameterValue(), luxShape(), luxStart(), luxStatistics(), luxSurfaceIntegrator(), luxTexture(), luxTransform(), luxTransformBegin(), luxTransformEnd(), luxTranslate(), luxTransmitFilm(), luxUpdateFilmFromNetwork(), luxUpdateFramebuffer(), luxVolume(), luxVolumeIntegrator(), luxWait(), luxWorldBegin(), luxWorldEnd(), setActive(), setNetworkServerUpdateInterval(), and worldEnd().
int lux::Context::currentApiState [private] |
Definition at line 391 of file context.h.
Referenced by cleanup(), init(), worldBegin(), and worldEnd().
Transform lux::Context::curTransform [private] |
Definition at line 392 of file context.h.
Referenced by attributeBegin(), attributeEnd(), camera(), concatTransform(), coordinateSystem(), coordSysTransform(), identity(), init(), lightSource(), lookAt(), makematerial(), makemixmaterial(), motionInstance(), objectInstance(), portalShape(), rotate(), scale(), shape(), texture(), transform(), transformBegin(), transformEnd(), translate(), volume(), worldBegin(), and worldEnd().
ParamSet* lux::Context::filmOverrideParams [private] |
GraphicsState* lux::Context::graphicsState [private] |
Definition at line 395 of file context.h.
Referenced by areaLightSource(), attributeBegin(), attributeEnd(), free(), getActiveFloatTextures(), GetActiveLightGroup(), getActiveSWCSpectrumTextures(), init(), lightGroup(), lightSource(), makematerial(), makemixmaterial(), material(), portalShape(), reverseOrientation(), shape(), and texture().
Scene* lux::Context::luxCurrentScene [private] |
Definition at line 204 of file context.h.
Referenced by addServer(), addThread(), exit(), framebuffer(), free(), GetDefaultParameterValue(), GetDefaultStringParameterValue(), getHistogramImage(), GetParameterValue(), getRenderingThreadsStatus(), GetStringParameterValue(), init(), loadFLM(), pause(), removeThread(), saveFLM(), setHaltSamplePerPixel(), SetParameterValue(), SetStringParameterValue(), start(), statistics(), transmitFilm(), updateFilmFromNetwork(), updateFramebuffer(), and worldEnd().
bool lux::Context::luxCurrentSceneReady [private] |
Definition at line 205 of file context.h.
Referenced by free(), init(), sceneReady(), and statistics().
string lux::Context::name [private] |
map<string, Transform> lux::Context::namedCoordinateSystems [private] |
Definition at line 393 of file context.h.
Referenced by camera(), coordinateSystem(), coordSysTransform(), init(), motionInstance(), worldBegin(), and worldEnd().
vector<NamedMaterial> lux::Context::namedmaterials [private] |
Definition at line 396 of file context.h.
Referenced by init(), makemixmaterial(), makenamedmaterial(), and namedmaterial().
vector<GraphicsState> lux::Context::pushedGraphicsStates [private] |
Definition at line 397 of file context.h.
Referenced by attributeBegin(), attributeEnd(), init(), and worldEnd().
vector<Transform> lux::Context::pushedTransforms [private] |
Definition at line 398 of file context.h.
Referenced by attributeBegin(), attributeEnd(), init(), transformBegin(), transformEnd(), and worldEnd().
RenderFarm* lux::Context::renderFarm [private] |
Definition at line 399 of file context.h.
Referenced by accelerator(), addServer(), areaLightSource(), attributeBegin(), attributeEnd(), camera(), cleanup(), concatTransform(), coordinateSystem(), coordSysTransform(), exit(), film(), free(), getNetworkServerUpdateInterval(), getRenderingServersStatus(), getServerCount(), identity(), init(), lightGroup(), lightSource(), lookAt(), makenamedmaterial(), material(), motionInstance(), namedmaterial(), objectBegin(), objectEnd(), objectInstance(), pixelFilter(), portalShape(), removeServer(), reverseOrientation(), rotate(), sampler(), scale(), setEpsilon(), setNetworkServerUpdateInterval(), shape(), surfaceIntegrator(), texture(), transform(), transformBegin(), transformEnd(), translate(), updateFilmFromNetwork(), volume(), volumeIntegrator(), worldBegin(), and worldEnd().
boost::mutex lux::Context::renderingMutex [mutable, private] |
Definition at line 404 of file context.h.
Referenced by wait(), and worldEnd().
RenderOptions* lux::Context::renderOptions [private] |
Definition at line 394 of file context.h.
Referenced by accelerator(), camera(), disableRandomMode(), enableDebugMode(), film(), free(), GetActiveLightGroup(), init(), lightGroup(), lightSource(), motionInstance(), objectBegin(), objectEnd(), objectInstance(), pixelFilter(), sampler(), shape(), surfaceIntegrator(), volume(), volumeIntegrator(), and worldEnd().
bool lux::Context::terminated [private] |
Definition at line 390 of file context.h.
Referenced by exit(), init(), statistics(), and worldEnd().