Blender V2.61 - r43446
Public Member Functions | Protected Attributes

ntlWorld Class Reference

#include <ntl_world.h>

Inheritance diagram for ntlWorld:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ntlWorld ()
 ntlWorld (string filename, bool commandlineMode)
virtual ~ntlWorld (void)
void initDefaults ()
void finishWorldInit ()
int addDomain (elbeemSimulationSettings *simSettings)
int renderAnimation (void)
int renderVisualization (bool)
int singleStepVisualization (void)
int advanceSims (int framenum)
void singleStepSims (double targetTime)
void setStopRenderVisualization (bool set)
bool getStopRenderVisualization ()
virtual int renderScene (void)
void setSingleFrameOut (string singleframeFilename)
void setRenderGlobals (ntlRenderGlobals *set)
ntlRenderGlobalsgetRenderGlobals (void)
void setSimulationTime (double set)
double getSimulationTime (void)
void setSingleStepDebug (bool set)
bool getSingleStepDebug (void)
vector< SimulationObject * > * getSimulations (void)
ntlOpenGLRenderer * getOpenGLRenderer ()

Protected Attributes

ntlRenderGlobalsmpGlob
vector< ntlLightObject * > * mpLightList
vector< ntlMaterial * > * mpPropList
vector< SimulationObject * > * mpSims
ntlOpenGLRenderer * mpOpenGLRenderer
bool mStopRenderVisualization
bool mThreadRunning
double mSimulationTime
int mFirstSim
bool mSingleStepDebug
int mFrameCnt

Detailed Description

Definition at line 26 of file ntl_world.h.


Constructor & Destructor Documentation

ntlWorld::ntlWorld ( )

Constructor for API init

Definition at line 41 of file ntl_world.cpp.

References initDefaults().

ntlWorld::ntlWorld ( string  filename,
bool  commandlineMode 
)
ntlWorld::~ntlWorld ( void  ) [virtual]

Member Function Documentation

int ntlWorld::addDomain ( elbeemSimulationSettings simSettings)

add domain for API init

Definition at line 73 of file ntl_world.cpp.

References ntlScene::addGeoClass(), elbeemSimulationSettings::aniFrameTime, elbeemSimulationSettings::animStart, elbeemSimulationSettings::channelFrameTime, elbeemSimulationSettings::channelGravity, elbeemSimulationSettings::channelSizeFrameTime, elbeemSimulationSettings::channelSizeGravity, elbeemSimulationSettings::channelSizeViscosity, elbeemSimulationSettings::channelViscosity, SimulationObject::copyElbeemSettings(), elbeemSimulationSettings::geoSize, elbeemSimulationSettings::geoStart, ntlRenderGlobals::getAniFrames(), SimulationObject::getParametrizer(), ntlRenderGlobals::getRenderScene(), ntlRenderGlobals::getSims(), ntlRenderGlobals::getSimScene(), globalDomainCounter, elbeemSimulationSettings::gravity, elbeemSimulationSettings::gstar, INIT_CHANNEL_FLOAT, INIT_CHANNEL_VEC, Parametrizer::initAniFrameTimeChannel(), Parametrizer::initGravityChannel(), Parametrizer::initViscosityChannel(), mpGlob, elbeemSimulationSettings::noOfFrames, elbeemSimulationSettings::outputPath, elbeemSimulationSettings::realsize, elbeemSimulationSettings::resolutionxyz, ntlRenderGlobals::setAniFrames(), Parametrizer::setAniFrameTimeChannel(), Parametrizer::setAniStart(), Parametrizer::setDomainSize(), SimulationObject::setGeoEnd(), SimulationObject::setGeoStart(), Parametrizer::setGravity(), ntlGeometryClass::setName(), Parametrizer::setNormalizedGStar(), ntlRenderGlobals::setOutFilename(), Parametrizer::setSize(), Parametrizer::setViscosity(), and elbeemSimulationSettings::viscosity.

Referenced by elbeemAddDomain().

int ntlWorld::advanceSims ( int  framenum)
void ntlWorld::finishWorldInit ( )
ntlOpenGLRenderer* ntlWorld::getOpenGLRenderer ( ) [inline]

get opengl renderer

Definition at line 82 of file ntl_world.h.

References mpOpenGLRenderer.

ntlRenderGlobals* ntlWorld::getRenderGlobals ( void  ) [inline]

Definition at line 68 of file ntl_world.h.

References mpGlob.

Referenced by elbeemAddMesh(), and ntlWorld().

vector<SimulationObject*>* ntlWorld::getSimulations ( void  ) [inline]

&get simulation object vector (debugging)

Definition at line 79 of file ntl_world.h.

References mpSims.

double ntlWorld::getSimulationTime ( void  ) [inline]

Definition at line 72 of file ntl_world.h.

References mSimulationTime.

bool ntlWorld::getSingleStepDebug ( void  ) [inline]

Definition at line 76 of file ntl_world.h.

References mSingleStepDebug.

bool ntlWorld::getStopRenderVisualization ( ) [inline]

should the rendering viz thread be stopped?

Definition at line 56 of file ntl_world.h.

References mStopRenderVisualization.

Referenced by renderAnimation(), and renderVisualization().

void ntlWorld::initDefaults ( )
int ntlWorld::renderAnimation ( void  )
int ntlWorld::renderScene ( void  ) [virtual]
int ntlWorld::renderVisualization ( bool  multiThreaded)
void ntlWorld::setRenderGlobals ( ntlRenderGlobals set) [inline]

set&get render globals

Definition at line 67 of file ntl_world.h.

References mpGlob.

void ntlWorld::setSimulationTime ( double  set) [inline]

set&get render globals

Definition at line 71 of file ntl_world.h.

References mSimulationTime.

void ntlWorld::setSingleFrameOut ( string  singleframeFilename)

set single frame rendering to filename

Definition at line 258 of file ntl_world.cpp.

References mpGlob, ntlRenderGlobals::setSingleFrameFilename(), and ntlRenderGlobals::setSingleFrameMode().

void ntlWorld::setSingleStepDebug ( bool  set) [inline]

set&get single step debug mode

Definition at line 75 of file ntl_world.h.

References mSingleStepDebug.

void ntlWorld::setStopRenderVisualization ( bool  set) [inline]

set stop rend viz flag

Definition at line 54 of file ntl_world.h.

References mStopRenderVisualization.

Referenced by advanceSims(), and renderVisualization().

void ntlWorld::singleStepSims ( double  targetTime)
int ntlWorld::singleStepVisualization ( void  )

render a single step for viz mode

Definition at line 373 of file ntl_world.cpp.

References mFirstSim, mpOpenGLRenderer, mSimulationTime, mThreadRunning, and singleStepSims().


Member Data Documentation

int ntlWorld::mFirstSim [protected]

first simulation that is valid

Definition at line 111 of file ntl_world.h.

Referenced by advanceSims(), finishWorldInit(), initDefaults(), renderAnimation(), renderVisualization(), singleStepSims(), and singleStepVisualization().

int ntlWorld::mFrameCnt [protected]

count no. of frame for viz render

Definition at line 117 of file ntl_world.h.

Referenced by initDefaults(), renderAnimation(), and renderVisualization().

vector<ntlLightObject*>* ntlWorld::mpLightList [protected]

a list of lights in the scene (geometry is store in ntl_scene)

Definition at line 92 of file ntl_world.h.

Referenced by initDefaults(), and ~ntlWorld().

ntlOpenGLRenderer* ntlWorld::mpOpenGLRenderer [protected]
vector<ntlMaterial*>* ntlWorld::mpPropList [protected]

surface materials

Definition at line 94 of file ntl_world.h.

Referenced by initDefaults(), and ~ntlWorld().

vector<SimulationObject*>* ntlWorld::mpSims [protected]
double ntlWorld::mSimulationTime [protected]
bool ntlWorld::mSingleStepDebug [protected]

single step mode for debugging

Definition at line 114 of file ntl_world.h.

Referenced by getSingleStepDebug(), initDefaults(), renderVisualization(), and setSingleStepDebug().

stop rend viz?

Definition at line 102 of file ntl_world.h.

Referenced by getStopRenderVisualization(), initDefaults(), and setStopRenderVisualization().

bool ntlWorld::mThreadRunning [protected]

rend viz thread currently running?

Definition at line 105 of file ntl_world.h.

Referenced by initDefaults(), renderAnimation(), renderVisualization(), and singleStepVisualization().


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