lux::Context Class Reference

#include <context.h>

Collaboration diagram for lux::Context:
[legend]

List of all members.

Classes

struct  GraphicsState
struct  NamedMaterial
struct  RenderOptions

Public Member Functions

 Context (std::string n="Lux default context")
 ~Context ()
boost::shared_ptr< Materialmakematerial (const ParamSet &shapeparams, bool force)
void makemixmaterial (const ParamSet &shapeparams, const ParamSet &materialparams, boost::shared_ptr< Material > mtl)

Static Public Member Functions

static ContextgetActive ()
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 &params)
static void luxFilm (const string &type, const ParamSet &params)
static void luxSampler (const string &name, const ParamSet &params)
static void luxAccelerator (const string &name, const ParamSet &params)
static void luxSurfaceIntegrator (const string &name, const ParamSet &params)
static void luxVolumeIntegrator (const string &name, const ParamSet &params)
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 &params)
static void luxMaterial (const string &name, const ParamSet &params)
static void luxMakeNamedMaterial (const string &name, const ParamSet &params)
static void luxNamedMaterial (const string &name, const ParamSet &params)
static void luxLightGroup (const string &name, const ParamSet &params)
static void luxLightSource (const string &name, const ParamSet &params)
static void luxAreaLightSource (const string &name, const ParamSet &params)
static void luxPortalShape (const string &name, const ParamSet &params)
static void luxShape (const string &name, const ParamSet &params)
static void luxReverseOrientation ()
static void luxVolume (const string &name, const ParamSet &params)
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 &params)
void film (const string &type, const ParamSet &params)
void sampler (const string &name, const ParamSet &params)
void accelerator (const string &name, const ParamSet &params)
void surfaceIntegrator (const string &name, const ParamSet &params)
void volumeIntegrator (const string &name, const ParamSet &params)
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 &params)
void material (const string &name, const ParamSet &params)
void makenamedmaterial (const string &name, const ParamSet &params)
void namedmaterial (const string &name, const ParamSet &params)
void lightGroup (const string &name, const ParamSet &params)
void lightSource (const string &name, const ParamSet &params)
void areaLightSource (const string &name, const ParamSet &params)
void portalShape (const string &name, const ParamSet &params)
void shape (const string &name, const ParamSet &params)
void reverseOrientation ()
void volume (const string &name, const ParamSet &params)
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
SceneluxCurrentScene
bool luxCurrentSceneReady
bool terminated
int currentApiState
Transform curTransform
map< string, TransformnamedCoordinateSystems
RenderOptionsrenderOptions
GraphicsStategraphicsState
vector< NamedMaterialnamedmaterials
vector< GraphicsStatepushedGraphicsStates
vector< TransformpushedTransforms
RenderFarmrenderFarm
ParamSetfilmOverrideParams
boost::mutex renderingMutex

Static Private Attributes

static ContextactiveContext

Detailed Description

Definition at line 42 of file context.h.


Constructor & Destructor Documentation

lux::Context::Context ( std::string  n = "Lux default context"  )  [inline]

Definition at line 45 of file context.h.

References init().

lux::Context::~Context (  )  [inline]

Definition at line 49 of file context.h.

References free().


Member Function Documentation

void Context::accelerator ( const string &  name,
const ParamSet params 
) [private]
void Context::addServer ( const string &  name  )  [private]
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]
void Context::attributeBegin (  )  [private]
void Context::attributeEnd (  )  [private]
void Context::camera ( const string &  n,
const ParamSet cameraParams 
) [private]
void Context::cleanup (  )  [private]
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]
void Context::coordSysTransform ( const string &  n  )  [private]
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]
void Context::film ( const string &  type,
const ParamSet params 
) [private]
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]
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]
u_int Context::GetActiveLightGroup (  )  [private]
static u_int lux::Context::getActiveLightGroup (  )  [inline, static]
static map<string, boost::shared_ptr<Texture<SWCSpectrum> > >* lux::Context::getActiveSWCSpectrumTextures (  )  [inline, static]
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]
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]
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]
void Context::lightGroup ( const string &  name,
const ParamSet params 
) [private]
void Context::lightSource ( const string &  name,
const ParamSet params 
) [private]
void Context::loadFLM ( const string &  name  )  [private]
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().

boost::shared_ptr< Material > Context::makematerial ( const ParamSet shapeparams,
bool  force 
)

Creates a material using the given shape parameters, the current material and the current textures.

Parameters:
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 
)
void Context::makenamedmaterial ( const string &  name,
const ParamSet params 
) [private]
void Context::material ( const string &  name,
const ParamSet params 
) [private]
void Context::motionInstance ( const string &  name,
float  startTime,
float  endTime,
const string &  toTransform 
) [private]
void Context::namedmaterial ( const string &  name,
const ParamSet params 
) [private]
void Context::objectBegin ( const string &  name  )  [private]
void Context::objectEnd (  )  [private]
void Context::objectInstance ( const string &  name  )  [private]
void Context::overrideResumeFLM ( const string &  name  )  [private]
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]
void Context::portalShape ( const string &  name,
const ParamSet params 
) [private]
void Context::removeServer ( const string &  name  )  [private]
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]
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]
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]
void Context::setHaltSamplePerPixel ( int  haltspp,
bool  haveEnoughSamplePerPixel,
bool  suspendThreadsWhenDone 
) [private]
void Context::setNetworkServerUpdateInterval ( int  updateInterval  )  [private]
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]
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]
void Context::surfaceIntegrator ( const string &  name,
const ParamSet params 
) [private]
void Context::texture ( const string &  name,
const string &  type,
const string &  texname,
const ParamSet params 
) [private]
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]
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]
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]
void Context::volumeIntegrator ( const string &  name,
const ParamSet params 
) [private]
void Context::wait (  )  [private]

Definition at line 931 of file context.cpp.

References renderingMutex.

Referenced by luxWait().

void Context::worldBegin (  )  [private]
void Context::worldEnd (  )  [private]

Member Data Documentation

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().

Definition at line 391 of file context.h.

Referenced by cleanup(), init(), worldBegin(), and worldEnd().

Definition at line 401 of file context.h.

Referenced by film(), free(), init(), and overrideResumeFLM().

Definition at line 205 of file context.h.

Referenced by free(), init(), sceneReady(), and statistics().

string lux::Context::name [private]

Definition at line 203 of file context.h.

Definition at line 396 of file context.h.

Referenced by init(), makemixmaterial(), makenamedmaterial(), and namedmaterial().

Definition at line 397 of file context.h.

Referenced by attributeBegin(), attributeEnd(), init(), and worldEnd().

Definition at line 398 of file context.h.

Referenced by attributeBegin(), attributeEnd(), init(), transformBegin(), transformEnd(), and worldEnd().

boost::mutex lux::Context::renderingMutex [mutable, private]

Definition at line 404 of file context.h.

Referenced by wait(), and worldEnd().

bool lux::Context::terminated [private]

Definition at line 390 of file context.h.

Referenced by exit(), init(), statistics(), and worldEnd().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208