ScalerManager Class Reference

#include <ScalerManager.h>

List of all members.

Public Member Functions

 ~ScalerManager ()
uint32 AddScaler (const Pentagram::Scaler *scaler)
uint32 GetNumScalers ()
uint32 GetIndexForName (const Pentagram::istring name)
const char * GetNameForIndex (uint32 index)
const Pentagram::ScalerGetScaler (uint32 index)
const Pentagram::ScalerGetScaler (const Pentagram::istring name)
const Pentagram::ScalerGetPointScaler ()

Static Public Member Functions

static ScalerManagerget_instance ()

Private Member Functions

 ScalerManager ()

Private Attributes

std::vector< const Pentagram::Scaler * > scalers

Static Private Attributes

static ScalerManagerscaler_man = 0


Detailed Description

Definition at line 32 of file ScalerManager.h.


Constructor & Destructor Documentation

ScalerManager::ScalerManager (  )  [private]

Definition at line 29 of file ScalerManager.cpp.

ScalerManager::~ScalerManager (  ) 

Definition at line 36 of file ScalerManager.cpp.


Member Function Documentation

uint32 ScalerManager::AddScaler ( const Pentagram::Scaler scaler  ) 

Adds a scaler, returns the index.

Definition at line 103 of file ScalerManager.cpp.

References scalers.

Referenced by Pentagram::Scaler::Scaler().

static ScalerManager* ScalerManager::get_instance (  )  [inline, static]

Get instance, or create.

Definition at line 45 of file ScalerManager.h.

References scaler_man.

Referenced by ScalerGump::ConCmd_listScalers(), Pentagram::Scaler::Scaler(), and ScalerGump::SetupScalers().

uint32 ScalerManager::GetIndexForName ( const Pentagram::istring  name  ) 

Get the Scaler Index from its name.

Definition at line 51 of file ScalerManager.cpp.

References scalers.

const char * ScalerManager::GetNameForIndex ( uint32  index  ) 

Get Name of a Scaler from its Index.

Definition at line 67 of file ScalerManager.cpp.

References scalers.

uint32 ScalerManager::GetNumScalers (  ) 

Get the total Number of scalers.

Definition at line 43 of file ScalerManager.cpp.

References scalers.

Referenced by ScalerGump::ConCmd_listScalers().

const Pentagram::Scaler * ScalerManager::GetPointScaler (  ) 

Get the Point Sampling Scaler.

Definition at line 122 of file ScalerManager.cpp.

References Pentagram::point_scaler.

Referenced by ScalerGump::SetupScalers().

const Pentagram::Scaler * ScalerManager::GetScaler ( const Pentagram::istring  name  ) 

Get a Scaler from its name.

Definition at line 88 of file ScalerManager.cpp.

References scalers.

const Pentagram::Scaler * ScalerManager::GetScaler ( uint32  index  ) 

Get a Scaler from its Index.

Definition at line 78 of file ScalerManager.cpp.

References scalers.

Referenced by ScalerGump::ConCmd_listScalers(), and ScalerGump::SetupScalers().


Member Data Documentation

ScalerManager * ScalerManager::scaler_man = 0 [static, private]

Definition at line 35 of file ScalerManager.h.

Referenced by get_instance().

std::vector<const Pentagram::Scaler*> ScalerManager::scalers [private]

Definition at line 33 of file ScalerManager.h.

Referenced by AddScaler(), GetIndexForName(), GetNameForIndex(), GetNumScalers(), and GetScaler().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:52 2007 for pentagram by  doxygen 1.4.7