Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
Configuration Class Reference

#include <Configuration.hpp>

Public Member Functions

bool isFullScreen () const
 
uvec2 const & resolution () const
 
bool hasResolution () const
 
string const & windowTitle () const
 
string const & sceneName () const
 
PickerUpdateMode pickerMode () const
 
uint pickerMaxDistance () const
 
uint threadpoolSize () const
 
bool pickerMultiThreaded () const
 
bool skinnningMultiThreaded () const
 
 Configuration ()
 

Private Attributes

bool m_isFullScreen
 
uvec2 m_resolution
 
bool m_hasResolution
 
string m_windowTitle
 
PickerUpdateMode m_pickerMode
 
uint m_pickerMaxDistance
 
string m_sceneName
 
uint m_threadpoolSize
 
bool m_pickerMultiThreaded
 
bool m_skinnningMultiThreaded
 

Detailed Description

Configuration can be used to access the applications configuration-file-data. It loads the config-file. If the file cannot be found or it doesn't decalre some settings, default-values are provided.

Definition at line 11 of file Configuration.hpp.

Constructor & Destructor Documentation

Constructs a Configuration-object. Loads settings from the config-file.

Definition at line 5 of file Configuration.cpp.

Member Function Documentation

bool hasResolution ( ) const
inline

Accessor to wheter a resolution was defined by the settings file, or not

Returns
Wheter a resolution was defined by the settings file, or not

Definition at line 45 of file Configuration.hpp.

bool isFullScreen ( ) const
inline

Accessor to wheter the application is fullscreen or not.

Returns
Wheter the application is fullscreen or not

Definition at line 35 of file Configuration.hpp.

uint pickerMaxDistance ( ) const
inline

Accessor to the pickers max-distance

Returns
The pickers max-distance

Definition at line 65 of file Configuration.hpp.

PickerUpdateMode pickerMode ( ) const
inline

Accessor to the picker-mode

Returns
The picker-mode

Definition at line 60 of file Configuration.hpp.

bool pickerMultiThreaded ( ) const
inline

Accessor to wheter the picker is multi-threaded or not

Returns
Wheter the picker is multi-threaded or not

Definition at line 75 of file Configuration.hpp.

uvec2 const& resolution ( ) const
inline

Accessor to the window-size or the resolution(in fullscreen)

Returns
The window-size or the resolution(in fullscreen)

Definition at line 40 of file Configuration.hpp.

string const& sceneName ( ) const
inline

Accessor to the initially active scene

Returns
The initially active scene

Definition at line 55 of file Configuration.hpp.

bool skinnningMultiThreaded ( ) const
inline

Accessor to wheter the skinner works multi-threaded or not

Returns
Wheter the skinner works multi-threaded or not

Definition at line 80 of file Configuration.hpp.

uint threadpoolSize ( ) const
inline

Accessor to the threadpool-size for parallel tasks

Returns
The threadpool-size for parallel tasks

Definition at line 70 of file Configuration.hpp.

string const& windowTitle ( ) const
inline

Accessor to the window-title

Returns
The window-title

Definition at line 50 of file Configuration.hpp.

Member Data Documentation

bool m_hasResolution
private

Wheter a resolution was defined by the settings file, or not

Definition at line 16 of file Configuration.hpp.

bool m_isFullScreen
private

Wheter the application is fullscreen or not

Definition at line 13 of file Configuration.hpp.

uint m_pickerMaxDistance
private

The pickers max-distance

Definition at line 21 of file Configuration.hpp.

PickerUpdateMode m_pickerMode
private

The picker-mode

Definition at line 20 of file Configuration.hpp.

bool m_pickerMultiThreaded
private

Wheter the picker is multi-threaded or not

Definition at line 27 of file Configuration.hpp.

uvec2 m_resolution
private

The window-size or the resolution(in fullscreen)

Definition at line 15 of file Configuration.hpp.

string m_sceneName
private

The initially active scene

Definition at line 23 of file Configuration.hpp.

bool m_skinnningMultiThreaded
private

Wheter the skinner works multi-threaded or not

Definition at line 28 of file Configuration.hpp.

uint m_threadpoolSize
private

The threadpool-size for parallel tasks

Definition at line 25 of file Configuration.hpp.

string m_windowTitle
private

The window-title

Definition at line 18 of file Configuration.hpp.


The documentation for this class was generated from the following files: