Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

demeter::Settings Class Reference

The Settings class is simply a manager of global variables. It provides a single place to set and retrieve all of the global settings that affect Demeter as a whole. More...

Collaboration diagram for demeter::Settings:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~Settings ()
 Destructor.

void SetMediaPath (char *szPath)
 Sets the filesystem path that Demeter will look in when reading textures, maps, etc.

void GetMediaPath (char **szPath)
 Gets the filesystem path that Demeter will look in when reading textures, maps, etc.

void PrependMediaPath (char *szFilename, char **pszFullFilename)
 Prepends the current media path to the specified filename.

void SetVerbose (bool bVerbose)
 Specifies whether or not Demeter should output diagnostic information at runtime.

bool IsVerbose ()
 Indicates whether or not Demeter is outputting diagnostic information at runtime.

void SetScreenWidth (int width)
 Tells Demeter what the current width of the rendering surface is.

int GetScreenWidth ()
 Retrieves the current width of the rendering surface assumed by Demeter.

void SetScreenHeight (int height)
 Tells Demeter what the current height of the rendering surface is.

int GetScreenHeight ()
 Retrieves the current height of the rendering surface assumed by Demeter.

bool SetProperty (char *szProperty, char *szValue)
 Sets a named global property to the specified value.

bool GetProperty (char *szProperty, char *szValue)
 Retrieves a named global property.

bool IsCompilerOnly ()
 Indicates whether or not the application that is using Demeter is a terrain compiler-like tool or a real application.

void SetCompilerOnly (bool bIsCompilerOnly)
 Determins whether or not the application that is using Demeter is a terrain compiler-like tool or a real application.

void SetUseDynamicTextures (bool useDynamic)
bool UseDynamicTextures ()
bool IsTextureCompression ()
void SetTextureCompression (bool bCompress)
void SetHeadless (bool isHeadless)
bool IsHeadless ()

Static Public Member Functions

SettingsGetInstance ()
 Returns the global instance of this class. The Settings class acts a singleton, so there is only one instance of this class per application.


Detailed Description

The Settings class is simply a manager of global variables. It provides a single place to set and retrieve all of the global settings that affect Demeter as a whole.

Definition at line 300 of file CLODTerrainRenderer.


Constructor & Destructor Documentation

Settings::~Settings  ) 
 

Destructor.

Definition at line 2142 of file CLODTerrainRenderer.cpp.


Member Function Documentation

Settings * Settings::GetInstance  )  [static]
 

Returns the global instance of this class. The Settings class acts a singleton, so there is only one instance of this class per application.

Definition at line 2148 of file CLODTerrainRenderer.cpp.

References pSettingsInstance.

Referenced by demeter::TerrainBlock::DummyFunc(), demeter::TerrainLattice::Load(), demeter::Terrain::Render(), demeter::Terrain::SetCommonTexture(), demeter::Terrain::SetTexture(), demeter::Terrain::Terrain(), demeter::TerrainBlock::TerrainBlock(), demeter::Terrain::Tessellate(), and demeter::Terrain::Write().

void Settings::GetMediaPath char **  szPath  ) 
 

Gets the filesystem path that Demeter will look in when reading textures, maps, etc.

Definition at line 2215 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TerrainLattice::Load().

bool Settings::GetProperty char *  szProperty,
char *  szValue
 

Retrieves a named global property.

Definition at line 2168 of file CLODTerrainRenderer.cpp.

int Settings::GetScreenHeight  )  [inline]
 

Retrieves the current height of the rendering surface assumed by Demeter.

Definition at line 2259 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TerrainBlock::DummyFunc().

int Settings::GetScreenWidth  )  [inline]
 

Retrieves the current width of the rendering surface assumed by Demeter.

Definition at line 2249 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TerrainBlock::DummyFunc().

bool Settings::IsCompilerOnly  )  [inline]
 

Indicates whether or not the application that is using Demeter is a terrain compiler-like tool or a real application.

Definition at line 2269 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::SetCommonTexture(), and demeter::Terrain::SetTexture().

bool Settings::IsHeadless  ) 
 

Definition at line 2234 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::SetTexture().

bool Settings::IsTextureCompression  )  [inline]
 

Definition at line 2284 of file CLODTerrainRenderer.cpp.

bool Settings::IsVerbose  ) 
 

Indicates whether or not Demeter is outputting diagnostic information at runtime.

Definition at line 2244 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::SetCommonTexture(), demeter::Terrain::SetTexture(), demeter::TerrainBlock::TerrainBlock(), and demeter::Terrain::Tessellate().

void Settings::PrependMediaPath char *  szFilename,
char **  pszFullFilename
 

Prepends the current media path to the specified filename.

Definition at line 2222 of file CLODTerrainRenderer.cpp.

Referenced by demeter::TerrainLattice::Load(), demeter::Terrain::SetCommonTexture(), demeter::Terrain::SetTexture(), demeter::Terrain::Terrain(), and demeter::Terrain::Write().

void Settings::SetCompilerOnly bool  bIsCompilerOnly  ) 
 

Determins whether or not the application that is using Demeter is a terrain compiler-like tool or a real application.

Definition at line 2274 of file CLODTerrainRenderer.cpp.

void Settings::SetHeadless bool  isHeadless  ) 
 

Definition at line 2229 of file CLODTerrainRenderer.cpp.

void Settings::SetMediaPath char *  szPath  ) 
 

Sets the filesystem path that Demeter will look in when reading textures, maps, etc.

Definition at line 2196 of file CLODTerrainRenderer.cpp.

bool Settings::SetProperty char *  szProperty,
char *  szValue
 

Sets a named global property to the specified value.

Definition at line 2155 of file CLODTerrainRenderer.cpp.

References SetVerbose().

void Settings::SetScreenHeight int  height  )  [inline]
 

Tells Demeter what the current height of the rendering surface is.

Definition at line 2264 of file CLODTerrainRenderer.cpp.

void Settings::SetScreenWidth int  width  )  [inline]
 

Tells Demeter what the current width of the rendering surface is.

Definition at line 2254 of file CLODTerrainRenderer.cpp.

void Settings::SetTextureCompression bool  bCompress  ) 
 

Definition at line 2279 of file CLODTerrainRenderer.cpp.

void Settings::SetUseDynamicTextures bool  useDynamic  )  [inline]
 

Definition at line 2186 of file CLODTerrainRenderer.cpp.

void Settings::SetVerbose bool  bVerbose  ) 
 

Specifies whether or not Demeter should output diagnostic information at runtime.

Definition at line 2239 of file CLODTerrainRenderer.cpp.

Referenced by SetProperty().

bool Settings::UseDynamicTextures  )  [inline]
 

Definition at line 2191 of file CLODTerrainRenderer.cpp.

Referenced by demeter::Terrain::Render().


The documentation for this class was generated from the following files:
Generated on Thu Jul 29 16:39:45 2004 for OpenSim by doxygen 1.3.6