Stg::StgWorld Class Reference

#include <stage.hh>

Inherits Stg::StgAncestor.

Inherited by Stg::StgWorldGui.

List of all members.


Detailed Description

StgWorld class


Public Member Functions

void AddBlock (StgBlock *block)
void CancelQuit ()
void CancelQuitAll ()
stg_bounds3d_t GetExtent ()
StgModelGetModel (const char *name)
stg_usec_t GetSimInterval ()
long unsigned int GetUpdateCount ()
Worldfile * GetWorldFile ()
virtual bool IsGUI ()
virtual void Load (const char *worldfile_path)
void Quit ()
void QuitAll ()
stg_usec_t RealTimeNow (void)
stg_usec_t RealTimeSinceStart (void)
virtual void Reload ()
void RemoveBlock (StgBlock *block)
double Resolution ()
virtual bool Save (const char *filename)
stg_usec_t SimTimeNow (void)
 StgWorld (const char *token="MyWorld", stg_msec_t interval_sim=DEFAULT_INTERVAL_SIM, double ppm=DEFAULT_PPM)
bool TestQuit ()
virtual void UnLoad ()
virtual bool Update (void)

Static Public Member Functions

static bool UpdateAll ()

Static Public Attributes

static const stg_msec_t DEFAULT_INTERVAL_SIM = 100
 duration of sim timestep
static const int DEFAULT_PPM = 50

Protected Member Functions

virtual void AddModel (StgModel *mod)
void ClearRays ()
void Extend (stg_point3_t pt)
GList * GetRayList ()
bool PastQuitTime () const
void RecordRay (double x1, double y1, double x2, double y2)
virtual void RemoveModel (StgModel *mod)

Static Protected Member Functions

static void UpdateCb (StgWorld *world)

Protected Attributes

stg_bounds3d_t extent
FileManager * fileMan
bool graphics
stg_usec_t interval_sim
 temporal resolution: milliseconds that elapse between simulated time steps
GArray lines
GList * ray_list
stg_usec_t sim_time
 the current sim time in this world in ms
GHashTable * superregions
GList * update_list
long unsigned int updates
 the number of simulated time steps executed so far
Worldfile * wf
 If set, points to the worldfile used to create this world.

Member Function Documentation

void StgWorld::Extend ( stg_point3_t  pt  )  [protected]

Enlarge the bounding volume to include this point

stg_bounds3d_t Stg::StgWorld::GetExtent (  )  [inline]

Return the 3D bounding box of the world, in meters

StgModel * StgWorld::GetModel ( const char *  name  ) 

Returns a pointer to the model identified by name, or NULL if nonexistent

long unsigned int Stg::StgWorld::GetUpdateCount (  )  [inline]

Return the number of times the world has been updated.

double Stg::StgWorld::Resolution (  )  [inline]

Get the resolution in pixels-per-metre of the underlying discrete raytracing model


The documentation for this class was generated from the following files:
Generated on Wed Jul 30 11:36:06 2008 for Stage by  doxygen 1.4.7