renderEnvironment_t Class Reference

#include <environment.h>

Collaboration diagram for renderEnvironment_t:
Collaboration graph
[legend]

List of all members.

Public Types

typedef light_tlight_factory_t (paraMap_t &, renderEnvironment_t &)
typedef material_tmaterial_factory_t (paraMap_t &, std::list< paraMap_t > &, renderEnvironment_t &)
typedef texture_ttexture_factory_t (paraMap_t &, renderEnvironment_t &)
typedef object3d_tobject_factory_t (paraMap_t &, renderEnvironment_t &)
typedef camera_tcamera_factory_t (paraMap_t &, renderEnvironment_t &)
typedef background_tbackground_factory_t (paraMap_t &, renderEnvironment_t &)
typedef integrator_tintegrator_factory_t (paraMap_t &, renderEnvironment_t &)
typedef shaderNode_tshader_factory_t (const paraMap_t &, renderEnvironment_t &)
typedef volumeHandler_tvolume_factory_t (const paraMap_t &, renderEnvironment_t &)
typedef VolumeRegionvolumeregion_factory_t (paraMap_t &, renderEnvironment_t &)

Public Member Functions

void loadPlugins (const std::string &path)
bool getPluginPath (std::string &path)
virtual material_tgetMaterial (const std::string &name) const
virtual texture_tgetTexture (const std::string &name) const
virtual shaderNode_tgetShaderNode (const std::string &name) const
camera_tgetCamera (const std::string &name) const
shader_factory_tgetShaderNodeFactory (const std::string &name) const
background_tgetBackground (const std::string &name) const
integrator_tgetIntegrator (const std::string &name) const
scene_tgetScene ()
light_tcreateLight (const std::string &name, paraMap_t &params)
texture_tcreateTexture (const std::string &name, paraMap_t &params)
material_tcreateMaterial (const std::string &name, paraMap_t &params, std::list< paraMap_t > &eparams)
object3d_tcreateObject (const std::string &name, paraMap_t &params)
camera_tcreateCamera (const std::string &name, paraMap_t &params)
background_tcreateBackground (const std::string &name, paraMap_t &params)
integrator_tcreateIntegrator (const std::string &name, paraMap_t &params)
shaderNode_tcreateShaderNode (const std::string &name, paraMap_t &params)
volumeHandler_tcreateVolumeH (const std::string &name, const paraMap_t &params)
VolumeRegioncreateVolumeRegion (const std::string &name, paraMap_t &params)
imageFilm_tcreateImageFilm (const paraMap_t &params, colorOutput_t &output)
void setScene (scene_t *scene)
bool setupScene (scene_t &scene, const paraMap_t &params, colorOutput_t &output, progressBar_t *pb=0)
void clearAll ()
virtual void registerFactory (const std::string &name, light_factory_t *f)
virtual void registerFactory (const std::string &name, material_factory_t *f)
virtual void registerFactory (const std::string &name, texture_factory_t *f)
virtual void registerFactory (const std::string &name, object_factory_t *f)
virtual void registerFactory (const std::string &name, camera_factory_t *f)
virtual void registerFactory (const std::string &name, background_factory_t *f)
virtual void registerFactory (const std::string &name, integrator_factory_t *f)
virtual void registerFactory (const std::string &name, shader_factory_t *f)
virtual void registerFactory (const std::string &name, volume_factory_t *f)
virtual void registerFactory (const std::string &name, volumeregion_factory_t *f)
void addToParamsString (const char *params)
const char * getParamsString ()
void clearParamsString ()
void setDrawParams (bool b)
bool getDrawParams ()
 renderEnvironment_t ()
virtual ~renderEnvironment_t ()

Public Attributes

int Debug

Protected Attributes

std::list< sharedlibrary_tpluginHandlers
std::map< std::string,
light_factory_t * > 
light_factory
std::map< std::string,
material_factory_t * > 
material_factory
std::map< std::string,
texture_factory_t * > 
texture_factory
std::map< std::string,
object_factory_t * > 
object_factory
std::map< std::string,
camera_factory_t * > 
camera_factory
std::map< std::string,
background_factory_t * > 
background_factory
std::map< std::string,
integrator_factory_t * > 
integrator_factory
std::map< std::string,
shader_factory_t * > 
shader_factory
std::map< std::string,
volume_factory_t * > 
volume_factory
std::map< std::string,
volumeregion_factory_t * > 
volumeregion_factory
std::map< std::string, light_t * > light_table
std::map< std::string,
material_t * > 
material_table
std::map< std::string,
texture_t * > 
texture_table
std::map< std::string,
object3d_t * > 
object_table
std::map< std::string, camera_t * > camera_table
std::map< std::string,
background_t * > 
background_table
std::map< std::string,
integrator_t * > 
integrator_table
std::map< std::string,
shaderNode_t * > 
shader_table
std::map< std::string,
volumeHandler_t * > 
volume_table
std::map< std::string,
VolumeRegion * > 
volumeregion_table
bool drawParamsString
std::string paramsString
scene_tcurren_scene

Detailed Description

Definition at line 32 of file environment.h.


Member Typedef Documentation

Definition at line 43 of file environment.h.

Definition at line 42 of file environment.h.

Definition at line 44 of file environment.h.

Definition at line 38 of file environment.h.

Definition at line 39 of file environment.h.

Definition at line 41 of file environment.h.

Definition at line 45 of file environment.h.

Definition at line 40 of file environment.h.

Definition at line 46 of file environment.h.

Definition at line 47 of file environment.h.


Constructor & Destructor Documentation

renderEnvironment_t::renderEnvironment_t (  ) 

Definition at line 65 of file environment.cc.

renderEnvironment_t::~renderEnvironment_t (  )  [virtual]

Definition at line 88 of file environment.cc.


Member Function Documentation

void renderEnvironment_t::addToParamsString ( const char *  params  ) 

Definition at line 696 of file environment.cc.

void renderEnvironment_t::clearAll (  ) 

Definition at line 102 of file environment.cc.

void renderEnvironment_t::clearParamsString (  ) 

Definition at line 706 of file environment.cc.

background_t * renderEnvironment_t::createBackground ( const std::string &  name,
paraMap_t params 
)

Definition at line 346 of file environment.cc.

camera_t * renderEnvironment_t::createCamera ( const std::string &  name,
paraMap_t params 
)

Definition at line 404 of file environment.cc.

imageFilm_t * renderEnvironment_t::createImageFilm ( const paraMap_t params,
colorOutput_t output 
)

Definition at line 462 of file environment.cc.

integrator_t * renderEnvironment_t::createIntegrator ( const std::string &  name,
paraMap_t params 
)

Definition at line 433 of file environment.cc.

light_t * renderEnvironment_t::createLight ( const std::string &  name,
paraMap_t params 
)

Definition at line 229 of file environment.cc.

material_t * renderEnvironment_t::createMaterial ( const std::string &  name,
paraMap_t params,
std::list< paraMap_t > &  eparams 
)

Definition at line 316 of file environment.cc.

object3d_t * renderEnvironment_t::createObject ( const std::string &  name,
paraMap_t params 
)

Definition at line 375 of file environment.cc.

shaderNode_t * renderEnvironment_t::createShaderNode ( const std::string &  name,
paraMap_t params 
)

Definition at line 287 of file environment.cc.

texture_t * renderEnvironment_t::createTexture ( const std::string &  name,
paraMap_t params 
)

Definition at line 258 of file environment.cc.

volumeHandler_t * renderEnvironment_t::createVolumeH ( const std::string &  name,
const paraMap_t params 
)

Definition at line 505 of file environment.cc.

VolumeRegion * renderEnvironment_t::createVolumeRegion ( const std::string &  name,
paraMap_t params 
)

Definition at line 534 of file environment.cc.

background_t * renderEnvironment_t::getBackground ( const std::string &  name  )  const

Definition at line 208 of file environment.cc.

camera_t * renderEnvironment_t::getCamera ( const std::string &  name  )  const

Definition at line 201 of file environment.cc.

bool renderEnvironment_t::getDrawParams (  ) 

Definition at line 715 of file environment.cc.

integrator_t * renderEnvironment_t::getIntegrator ( const std::string &  name  )  const

Definition at line 215 of file environment.cc.

material_t * renderEnvironment_t::getMaterial ( const std::string &  name  )  const [virtual]

Definition at line 187 of file environment.cc.

const char * renderEnvironment_t::getParamsString (  ) 

Definition at line 701 of file environment.cc.

bool renderEnvironment_t::getPluginPath ( std::string &  path  ) 

Definition at line 143 of file environment.cc.

scene_t* renderEnvironment_t::getScene (  )  [inline]

Definition at line 66 of file environment.h.

shaderNode_t * renderEnvironment_t::getShaderNode ( const std::string &  name  )  const [virtual]

Definition at line 222 of file environment.cc.

renderEnvironment_t::shader_factory_t * renderEnvironment_t::getShaderNodeFactory ( const std::string &  name  )  const

Definition at line 687 of file environment.cc.

texture_t * renderEnvironment_t::getTexture ( const std::string &  name  )  const [virtual]

Definition at line 194 of file environment.cc.

void renderEnvironment_t::loadPlugins ( const std::string &  path  ) 

Definition at line 125 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
volumeregion_factory_t f 
) [virtual]

Definition at line 681 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
volume_factory_t f 
) [virtual]

Definition at line 675 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
shader_factory_t f 
) [virtual]

Definition at line 639 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
integrator_factory_t f 
) [virtual]

Definition at line 669 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
background_factory_t f 
) [virtual]

Definition at line 663 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
camera_factory_t f 
) [virtual]

Definition at line 651 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
object_factory_t f 
) [virtual]

Definition at line 645 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
texture_factory_t f 
) [virtual]

Definition at line 633 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
material_factory_t f 
) [virtual]

Definition at line 627 of file environment.cc.

void renderEnvironment_t::registerFactory ( const std::string &  name,
light_factory_t f 
) [virtual]

Definition at line 621 of file environment.cc.

void renderEnvironment_t::setDrawParams ( bool  b  ) 

Definition at line 711 of file environment.cc.

void renderEnvironment_t::setScene ( scene_t scene  )  [inline]

Definition at line 79 of file environment.h.

bool renderEnvironment_t::setupScene ( scene_t scene,
const paraMap_t params,
colorOutput_t output,
progressBar_t pb = 0 
)

setup the scene for rendering (set camera, background, integrator, create image film, set antialiasing etc.) attention: since this function creates an image film and asigns it to the scene, you need to delete it before deleting the scene!

Definition at line 568 of file environment.cc.


Member Data Documentation

Definition at line 113 of file environment.h.

std::map<std::string,background_t *> renderEnvironment_t::background_table [protected]

Definition at line 125 of file environment.h.

std::map<std::string,camera_factory_t *> renderEnvironment_t::camera_factory [protected]

Definition at line 111 of file environment.h.

std::map<std::string,camera_t *> renderEnvironment_t::camera_table [protected]

Definition at line 123 of file environment.h.

Definition at line 132 of file environment.h.

Definition at line 100 of file environment.h.

Definition at line 130 of file environment.h.

Definition at line 114 of file environment.h.

std::map<std::string,integrator_t *> renderEnvironment_t::integrator_table [protected]

Definition at line 126 of file environment.h.

std::map<std::string,light_factory_t *> renderEnvironment_t::light_factory [protected]

Definition at line 107 of file environment.h.

std::map<std::string,light_t *> renderEnvironment_t::light_table [protected]

Definition at line 119 of file environment.h.

std::map<std::string,material_factory_t *> renderEnvironment_t::material_factory [protected]

Definition at line 108 of file environment.h.

std::map<std::string,material_t *> renderEnvironment_t::material_table [protected]

Definition at line 120 of file environment.h.

std::map<std::string,object_factory_t *> renderEnvironment_t::object_factory [protected]

Definition at line 110 of file environment.h.

std::map<std::string,object3d_t *> renderEnvironment_t::object_table [protected]

Definition at line 122 of file environment.h.

std::string renderEnvironment_t::paramsString [protected]

Definition at line 131 of file environment.h.

Definition at line 106 of file environment.h.

std::map<std::string,shader_factory_t *> renderEnvironment_t::shader_factory [protected]

Definition at line 115 of file environment.h.

std::map<std::string,shaderNode_t *> renderEnvironment_t::shader_table [protected]

Definition at line 127 of file environment.h.

std::map<std::string,texture_factory_t *> renderEnvironment_t::texture_factory [protected]

Definition at line 109 of file environment.h.

std::map<std::string,texture_t *> renderEnvironment_t::texture_table [protected]

Definition at line 121 of file environment.h.

std::map<std::string,volume_factory_t *> renderEnvironment_t::volume_factory [protected]

Definition at line 116 of file environment.h.

std::map<std::string,volumeHandler_t *> renderEnvironment_t::volume_table [protected]

Definition at line 128 of file environment.h.

Definition at line 117 of file environment.h.

std::map<std::string,VolumeRegion *> renderEnvironment_t::volumeregion_table [protected]

Definition at line 129 of file environment.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 18 Dec 2009 for YafaRay by  doxygen 1.6.1