BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
BALL::VIEW::StageSettings Class Reference

#include <BALL/VIEW/DIALOGS/stageSettings.h>

Inheritance diagram for BALL::VIEW::StageSettings:
QWidget BALL::VIEW::PreferencesEntry

Public Slots

void colorPressed ()
 Show a QColorDialog to select a new background color for the Scene. More...
 
void computeDefaultPressed ()
 
void loadEnvironmentMapPressed ()
 Show a QFileDialog to select a new environment texture map for the Scene. More...
 
void environmentMapChanged (bool active)
 
void fogBoxChanged (bool active)
 
void cappingColorPressed ()
 

Public Member Functions

 StageSettings (QWidget *parent=0, const char *name="StageSettings", Qt::WFlags fl=0)
 Constructor. More...
 
 ~StageSettings ()
 Destructor. More...
 
void updateFromStage ()
 Get the values for Stageing from the stage. More...
 
void apply ()
 Apply the new values to the stage. More...
 
void getGLSettings ()
 
- Public Member Functions inherited from BALL::VIEW::PreferencesEntry
 PreferencesEntry ()
 
virtual ~PreferencesEntry ()
 
virtual void writePreferenceEntries (INIFile &inifile)
 Store the settings of all registered objects. More...
 
virtual void readPreferenceEntries (const INIFile &inifile)
 Restore the settings of all registered objects. More...
 
void setINIFileSectionName (const String &name)
 Set the name for the section in the INIFile. More...
 
const StringgetINIFileSectionName () const
 Get the name for the section in the INIFile. More...
 
void setWidgetStackName (const String &name)
 
StackPagesgetStackPages ()
 Return all pages, that are to be shown in a parent QStackedWidget. More...
 
void setWidgetStack (QStackedWidget *stack)
 
virtual void showStackPage (Position nr)
 Show the specified page in the QStackedWidget. More...
 
virtual void showStackPage (QWidget *widget)
 Show the specified page in the QStackedWidget. More...
 
virtual Position currentStackPage () const
 Get the currently shown page in the QStackedWidget. More...
 
virtual void restoreDefaultValues (bool all=false)
 Set all registered objects to their default values. More...
 
virtual void storeValues ()
 
virtual void restoreValues (bool all=false)
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 

Private Slots

void eyeDistanceChanged ()
 
void focalDistanceChanged ()
 
void projectionTransformationChanged ()
 

Private Member Functions

Vector3 getTextureUpDirection_ () throw (Exception::InvalidFormat)
 
void setTextureUpDirection_ (const Vector3 &tud)
 
float getUser2ScreenDistance_ () throw (Exception::InvalidFormat)
 
void setUser2ScreenDistance_ (const float &s2u)
 
float getUserEyeLevel_ () throw (Exception::InvalidFormat)
 
void setUserEyeLevel_ (const float &s2u)
 
float getUserEyeDistance_ () throw (Exception::InvalidFormat)
 
void setUserEyeDistance_ (const float &s2u)
 
void setDefaultValues_ ()
 
void saveSettingsToStage_ ()
 

Private Attributes

Scenescene_
 
VIEW::Stagestage_
 

Additional Inherited Members

- Public Types inherited from BALL::VIEW::PreferencesEntry
typedef std::list< std::pair
< QWidget *, String > > 
StackPages
 
- Protected Types inherited from BALL::VIEW::PreferencesEntry
typedef HashMap< const QObject
*, String
ValueMap
 
- Protected Member Functions inherited from BALL::VIEW::PreferencesEntry
void registerWidgets_ ()
 
void registerObject_ (QObject *widget)
 
void unregisterObject_ (QObject *widget)
 
void registerWidgetForHelpSystem_ (const QWidget *widget, const String &url)
 
void restoreValues_ (bool all, const ValueMap &map)
 
void insertStackEntry_ (QWidget *, const String &name)
 
bool isSupported_ (QObject &widget)
 
bool getValue_ (const QObject *widget, String &value)
 
bool setValue_ (QObject *widget, const String &value)
 
- Protected Attributes inherited from BALL::VIEW::PreferencesEntry
String inifile_section_name_
 
HashSet< QObject * > registered_objects_
 
ValueMap default_values_
 
ValueMap last_values_
 
QStackedWidget * widget_stack_
 
StackPages stack_pages_
 

Detailed Description

Dialog for the Stage setup. Following options can be set:

Definition at line 39 of file stageSettings.h.

Constructor & Destructor Documentation

BALL::VIEW::StageSettings::StageSettings ( QWidget parent = 0,
const char *  name = "StageSettings",
Qt::WFlags  fl = 0 
)

Constructor.

BALL::VIEW::StageSettings::~StageSettings ( )
inline

Destructor.

Definition at line 52 of file stageSettings.h.

Member Function Documentation

void BALL::VIEW::StageSettings::apply ( )

Apply the new values to the stage.

void BALL::VIEW::StageSettings::cappingColorPressed ( )
slot
void BALL::VIEW::StageSettings::colorPressed ( )
slot

Show a QColorDialog to select a new background color for the Scene.

void BALL::VIEW::StageSettings::computeDefaultPressed ( )
slot
void BALL::VIEW::StageSettings::environmentMapChanged ( bool  active)
slot
void BALL::VIEW::StageSettings::eyeDistanceChanged ( )
privateslot
void BALL::VIEW::StageSettings::focalDistanceChanged ( )
privateslot
void BALL::VIEW::StageSettings::fogBoxChanged ( bool  active)
slot
void BALL::VIEW::StageSettings::getGLSettings ( )
Vector3 BALL::VIEW::StageSettings::getTextureUpDirection_ ( ) throw (Exception::InvalidFormat)
private
float BALL::VIEW::StageSettings::getUser2ScreenDistance_ ( ) throw (Exception::InvalidFormat)
private
float BALL::VIEW::StageSettings::getUserEyeDistance_ ( ) throw (Exception::InvalidFormat)
private
float BALL::VIEW::StageSettings::getUserEyeLevel_ ( ) throw (Exception::InvalidFormat)
private
void BALL::VIEW::StageSettings::loadEnvironmentMapPressed ( )
slot

Show a QFileDialog to select a new environment texture map for the Scene.

void BALL::VIEW::StageSettings::projectionTransformationChanged ( )
privateslot
void BALL::VIEW::StageSettings::saveSettingsToStage_ ( )
private
void BALL::VIEW::StageSettings::setDefaultValues_ ( )
private
void BALL::VIEW::StageSettings::setTextureUpDirection_ ( const Vector3 tud)
private
void BALL::VIEW::StageSettings::setUser2ScreenDistance_ ( const float s2u)
private
void BALL::VIEW::StageSettings::setUserEyeDistance_ ( const float s2u)
private
void BALL::VIEW::StageSettings::setUserEyeLevel_ ( const float s2u)
private
void BALL::VIEW::StageSettings::updateFromStage ( )

Get the values for Stageing from the stage.

Member Data Documentation

Scene* BALL::VIEW::StageSettings::scene_
private

Definition at line 130 of file stageSettings.h.

VIEW::Stage* BALL::VIEW::StageSettings::stage_
private

Definition at line 132 of file stageSettings.h.