#include <ScalerManager.h>
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::Scaler * | GetScaler (uint32 index) |
const Pentagram::Scaler * | GetScaler (const Pentagram::istring name) |
const Pentagram::Scaler * | GetPointScaler () |
Static Public Member Functions | |
static ScalerManager * | get_instance () |
Private Member Functions | |
ScalerManager () | |
Private Attributes | |
std::vector< const Pentagram::Scaler * > | scalers |
Static Private Attributes | |
static ScalerManager * | scaler_man = 0 |
Definition at line 32 of file ScalerManager.h.
ScalerManager::ScalerManager | ( | ) | [private] |
Definition at line 29 of file ScalerManager.cpp.
ScalerManager::~ScalerManager | ( | ) |
Definition at line 36 of file ScalerManager.cpp.
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 | ) |
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().
ScalerManager * ScalerManager::scaler_man = 0 [static, private] |
std::vector<const Pentagram::Scaler*> ScalerManager::scalers [private] |
Definition at line 33 of file ScalerManager.h.
Referenced by AddScaler(), GetIndexForName(), GetNameForIndex(), GetNumScalers(), and GetScaler().