Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::LightSettings Class Reference
[QT Dialogs]

Dialog for setting the lighting, which is added to the Preferences. More...

#include <lightSettings.h>

Inheritance diagram for VIEW::LightSettings:

VIEW::PreferencesEntry List of all members.

Public Slots

virtual void addLightPressed ()
 Slot for the AddLight button.
virtual void colorPressed ()
 Slot for the EditColor button, opens a color dialog.
virtual void defaultsPressed ()
 Resets the lighting.
virtual void lightSelected ()
 Slot for selection in the listbox with lights.
virtual void removeLightPressed ()
 Slot for the RemoveLight button.
virtual void typeSelected ()
 Slot for type selection changed.
virtual void intensityChanged ()
 Slot for changes of the intensity slider.
virtual void positionTypeChanged ()

Public Member Functions

 LightSettings (QWidget *parent=0, const char *name="LightSettings", Qt::WFlags fl=0)
 Constructor.
 ~LightSettings ()
 Destructor.
void update () throw ()
 Update the display of all fields.
void updateFromStage () throw ()
 Get the values for lighting from the stage.
void apply () throw ()
 Apply the new values to the stage.
virtual void restoreDefaultValues (bool=false) throw ()
 Called when defaults is pressed in Preferences, calls setDefaults.
void restoreValues (bool all)
 Restore the values of the child widgets.

Protected Member Functions

void setPosition_ (const Vector3 &v)
void setDirection_ (const Vector3 &v)
Vector3 getDirection_ () throw (Exception::InvalidFormat)
Vector3 getPosition_ () throw (Exception::InvalidFormat)
void setControlsEnabled_ (bool state)
Index getCurrentLightNumber_ () const
void typeSelected_ (Position type)
void saveSettingsToLight_ () throw ()
void getValues_ () throw ()
void clearFields_ () throw ()

Protected Attributes

Stagestage_
vector< LightSourcelights_
vector< LightSourcedefault_lights_
bool ignore_
Index current_light_

Detailed Description

Dialog for setting the lighting, which is added to the Preferences.

This dialog allows the control of the lighting of a scene. Lights can be added, removed and adjusted. Also a standard value to reset the lighting can be stored.


Member Function Documentation

void VIEW::LightSettings::restoreValues bool  all  )  [virtual]
 

Restore the values of the child widgets.

Called e.g. when a user presses a Cancel button.

Reimplemented from VIEW::PreferencesEntry.