#include <BALL/VIEW/DIALOGS/lightSettings.h>
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 (QListWidgetItem *current_item, QListWidgetItem *previous_item) |
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 () |
Update the display of all fields. | |
void | updateFromStage () |
Get the values for lighting from the stage. | |
void | apply () |
Apply the new values to the stage. | |
virtual void | restoreDefaultValues (bool=false) |
Called when defaults is pressed in Preferences, calls setDefaults. | |
void | restoreValues (bool all) |
Protected Member Functions | |
void | setPosition_ (const Vector3 &v) |
void | setDirection_ (const Vector3 &v) |
void | setAttenuation_ (const Vector3 &a) |
Vector3 | getDirection_ () throw (Exception::InvalidFormat) |
Vector3 | getPosition_ () throw (Exception::InvalidFormat) |
Vector3 | getAttenuation_ () throw (Exception::InvalidFormat) |
void | setControlsEnabled_ (bool state) |
Index | getCurrentLightNumber_ () const |
void | typeSelected_ (Position type) |
void | saveSettingsToLight_ () |
void | getValues_ (Index light=-1) |
void | clearFields_ () |
Protected Attributes | |
Stage * | stage_ |
vector< LightSource > | lights_ |
vector< LightSource > | default_lights_ |
bool | ignore_ |
Index | current_light_ |
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.
Definition at line 34 of file lightSettings.h.
BALL::VIEW::LightSettings::LightSettings | ( | QWidget * | parent = 0 , |
|
const char * | name = "LightSettings" , |
|||
Qt::WFlags | fl = 0 | |||
) |
Constructor.
BALL::VIEW::LightSettings::~LightSettings | ( | ) | [inline] |
Destructor.
Definition at line 48 of file lightSettings.h.
virtual void BALL::VIEW::LightSettings::addLightPressed | ( | ) | [virtual, slot] |
Slot for the AddLight button.
void BALL::VIEW::LightSettings::apply | ( | ) |
Apply the new values to the stage.
void BALL::VIEW::LightSettings::clearFields_ | ( | ) | [protected] |
virtual void BALL::VIEW::LightSettings::colorPressed | ( | ) | [virtual, slot] |
Slot for the EditColor button, opens a color dialog.
virtual void BALL::VIEW::LightSettings::defaultsPressed | ( | ) | [virtual, slot] |
Resets the lighting.
Vector3 BALL::VIEW::LightSettings::getAttenuation_ | ( | ) | throw (Exception::InvalidFormat) [protected] |
Index BALL::VIEW::LightSettings::getCurrentLightNumber_ | ( | ) | const [protected] |
Vector3 BALL::VIEW::LightSettings::getDirection_ | ( | ) | throw (Exception::InvalidFormat) [protected] |
Vector3 BALL::VIEW::LightSettings::getPosition_ | ( | ) | throw (Exception::InvalidFormat) [protected] |
void BALL::VIEW::LightSettings::getValues_ | ( | Index | light = -1 |
) | [protected] |
virtual void BALL::VIEW::LightSettings::intensityChanged | ( | ) | [virtual, slot] |
Slot for changes of the intensity slider.
virtual void BALL::VIEW::LightSettings::lightSelected | ( | QListWidgetItem * | current_item, | |
QListWidgetItem * | previous_item | |||
) | [virtual, slot] |
Slot for selection in the listbox with lights.
virtual void BALL::VIEW::LightSettings::positionTypeChanged | ( | ) | [virtual, slot] |
virtual void BALL::VIEW::LightSettings::removeLightPressed | ( | ) | [virtual, slot] |
Slot for the RemoveLight button.
virtual void BALL::VIEW::LightSettings::restoreDefaultValues | ( | bool | = false |
) | [virtual] |
Called when defaults is pressed in Preferences, calls setDefaults.
Reimplemented from BALL::VIEW::PreferencesEntry.
void BALL::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 BALL::VIEW::PreferencesEntry.
void BALL::VIEW::LightSettings::saveSettingsToLight_ | ( | ) | [protected] |
void BALL::VIEW::LightSettings::setAttenuation_ | ( | const Vector3 & | a | ) | [protected] |
void BALL::VIEW::LightSettings::setControlsEnabled_ | ( | bool | state | ) | [protected] |
void BALL::VIEW::LightSettings::setDirection_ | ( | const Vector3 & | v | ) | [protected] |
void BALL::VIEW::LightSettings::setPosition_ | ( | const Vector3 & | v | ) | [protected] |
virtual void BALL::VIEW::LightSettings::typeSelected | ( | ) | [virtual, slot] |
Slot for type selection changed.
void BALL::VIEW::LightSettings::typeSelected_ | ( | Position | type | ) | [protected] |
void BALL::VIEW::LightSettings::update | ( | ) |
Update the display of all fields.
void BALL::VIEW::LightSettings::updateFromStage | ( | ) |
Get the values for lighting from the stage.
Index BALL::VIEW::LightSettings::current_light_ [protected] |
Definition at line 122 of file lightSettings.h.
vector<LightSource> BALL::VIEW::LightSettings::default_lights_ [protected] |
Definition at line 119 of file lightSettings.h.
bool BALL::VIEW::LightSettings::ignore_ [protected] |
Definition at line 121 of file lightSettings.h.
vector<LightSource> BALL::VIEW::LightSettings::lights_ [protected] |
Definition at line 116 of file lightSettings.h.
Stage* BALL::VIEW::LightSettings::stage_ [protected] |
Definition at line 113 of file lightSettings.h.