lux::RenderFarm Class Reference

#include <renderfarm.h>

List of all members.

Public Member Functions

 RenderFarm ()
 ~RenderFarm ()
bool connect (const string &serverName)
 Connects to a new rendering server.
void disconnectAll ()
void send (const std::string &command)
void send (const std::string &command, const std::string &name, const ParamSet &params)
void send (const std::string &command, const std::string &name)
void send (const std::string &command, float x, float y, float z)
void send (const std::string &command, float a, float x, float y, float z)
void send (const std::string &command, float ex, float ey, float ez, float lx, float ly, float lz, float ux, float uy, float uz)
void send (const std::string &command, float tr[16])
void send (const std::string &command, const string &name, const string &type, const string &texname, const ParamSet &params)
 Sends immediately all commands in the buffer to the servers.
void flush ()
int getServerCount ()
void startFilmUpdater (Scene *scene)
void stopFilmUpdater ()
 Gets the films from the network, and merge them to the film given in parameter.
void updateFilm (Scene *scene)

Public Attributes

int serverUpdateInterval

Private Attributes

std::vector< std::string > serverList
std::stringstream netBuffer
FilmUpdaterThreadfilmUpdateThread


Detailed Description

Definition at line 68 of file renderfarm.h.


Constructor & Destructor Documentation

lux::RenderFarm::RenderFarm (  )  [inline]

Definition at line 70 of file renderfarm.h.

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

Definition at line 71 of file renderfarm.h.

References filmUpdateThread.


Member Function Documentation

bool RenderFarm::connect ( const string &  serverName  ) 

Connects to a new rendering server.

Definition at line 88 of file renderfarm.cpp.

References LUX_ERROR, LUX_INFO, LUX_NOERROR, LUX_SYSTEM, luxError, and serverList.

Referenced by lux::Context::addServer().

void RenderFarm::disconnectAll (  ) 

Definition at line 136 of file renderfarm.cpp.

References LUX_ERROR, LUX_INFO, LUX_NOERROR, LUX_SYSTEM, luxError, and serverList.

Referenced by lux::Context::exit().

void RenderFarm::flush (  ) 

Definition at line 153 of file renderfarm.cpp.

References LUX_ERROR, LUX_INFO, LUX_NOERROR, LUX_SYSTEM, luxError, netBuffer, and serverList.

Referenced by lux::Context::worldEnd().

int lux::RenderFarm::getServerCount (  )  [inline]

Definition at line 92 of file renderfarm.h.

References serverList.

Referenced by lux::Context::worldEnd().

void RenderFarm::send ( const std::string &  command,
const string &  name,
const string &  type,
const string &  texname,
const ParamSet params 
)

Sends immediately all commands in the buffer to the servers.

Definition at line 317 of file renderfarm.cpp.

References lux::ParamSet::FindOneString(), LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
float  tr[16] 
)

Definition at line 301 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
float  ex,
float  ey,
float  ez,
float  lx,
float  ly,
float  lz,
float  ux,
float  uy,
float  uz 
)

Definition at line 287 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
float  a,
float  x,
float  y,
float  z 
)

Definition at line 273 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
float  x,
float  y,
float  z 
)

Definition at line 260 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
const std::string &  name 
)

Definition at line 247 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command,
const std::string &  name,
const ParamSet params 
)

Definition at line 231 of file renderfarm.cpp.

References LUX_ERROR, LUX_SYSTEM, luxError, and netBuffer.

void RenderFarm::send ( const std::string &  command  ) 

void RenderFarm::startFilmUpdater ( Scene scene  ) 

void RenderFarm::stopFilmUpdater (  ) 

Gets the films from the network, and merge them to the film given in parameter.

Definition at line 80 of file renderfarm.cpp.

References filmUpdateThread, and lux::FilmUpdaterThread::interrupt().

Referenced by lux::Context::exit(), and lux::Context::worldEnd().

void RenderFarm::updateFilm ( Scene scene  ) 


Member Data Documentation

Definition at line 109 of file renderfarm.h.

Referenced by startFilmUpdater(), stopFilmUpdater(), and ~RenderFarm().

std::stringstream lux::RenderFarm::netBuffer [private]

Definition at line 106 of file renderfarm.h.

Referenced by flush(), and send().

std::vector<std::string> lux::RenderFarm::serverList [private]

Definition at line 105 of file renderfarm.h.

Referenced by connect(), disconnectAll(), flush(), getServerCount(), and updateFilm().


The documentation for this class was generated from the following files:

Generated on Mon May 18 07:14:54 2009 for lux by  doxygen 1.5.7.1