FlightGear next
|
#include <GraphicsPresets.hxx>
Inherits SGSubsystem.
Classes | |
class | GraphicsConfigChangeListener |
struct | GraphicsPresetInfo |
class | RequiredPropertyListener |
monitor a collection of properties, and set a flag property to true when any of them are modified. More... | |
Public Types | |
using | GraphicsPresetVec = std::vector<GraphicsPresetInfo> |
Public Member Functions | |
GraphicsPresets () | |
~GraphicsPresets () | |
void | init () override |
void | shutdown () override |
void | update (double delta_time_sec) override |
void | applyInitialPreset () |
init() is called too late (after fgOSInit), so we call this method early, to load the initial preset if set, at that time. | |
bool | applyCurrentPreset () |
Apply the settings defined in the current graphics preset, to the property tree. | |
bool | applyCustomPreset (const SGPath &path) |
bool | applyPresetByName (const std::string &name) |
apply a preset identified by its (localized) name. | |
GraphicsPresetVec | listPresets () |
retrieve all standard presets which are defined | |
bool | saveToXML (const SGPath &path, const std::string &name, const std::string &desc) |
Static Public Member Functions | |
static const char * | staticSubsystemClassId () |
Definition at line 16 of file GraphicsPresets.hxx.
using flightgear::GraphicsPresets::GraphicsPresetVec = std::vector<GraphicsPresetInfo> |
Definition at line 34 of file GraphicsPresets.hxx.
flightgear::GraphicsPresets::GraphicsPresets | ( | ) |
Definition at line 254 of file GraphicsPresets.cxx.
flightgear::GraphicsPresets::~GraphicsPresets | ( | ) |
Definition at line 261 of file GraphicsPresets.cxx.
bool flightgear::GraphicsPresets::applyCurrentPreset | ( | ) |
Apply the settings defined in the current graphics preset, to the property tree.
Definition at line 323 of file GraphicsPresets.cxx.
bool flightgear::GraphicsPresets::applyCustomPreset | ( | const SGPath & | path | ) |
Definition at line 376 of file GraphicsPresets.cxx.
void flightgear::GraphicsPresets::applyInitialPreset | ( | ) |
init() is called too late (after fgOSInit), so we call this method early, to load the initial preset if set, at that time.
Definition at line 265 of file GraphicsPresets.cxx.
bool flightgear::GraphicsPresets::applyPresetByName | ( | const std::string & | name | ) |
apply a preset identified by its (localized) name.
This is helpful for the rnedering dialog since PUI combo-boxes only record the name of items and no other data.
Definition at line 388 of file GraphicsPresets.cxx.
|
override |
Definition at line 276 of file GraphicsPresets.cxx.
auto flightgear::GraphicsPresets::listPresets | ( | ) |
retrieve all standard presets which are defined
Definition at line 351 of file GraphicsPresets.cxx.
bool flightgear::GraphicsPresets::saveToXML | ( | const SGPath & | path, |
const std::string & | name, | ||
const std::string & | desc ) |
Definition at line 521 of file GraphicsPresets.cxx.
|
override |
Definition at line 313 of file GraphicsPresets.cxx.
|
inlinestatic |
Definition at line 22 of file GraphicsPresets.hxx.
|
override |
Definition at line 308 of file GraphicsPresets.cxx.