BALL
1.4.2
|
#include <BALL/VIEW/DIALOGS/lightSettings.h>
Public Slots | |
virtual void | addLightPressed () |
Slot for the AddLight button. More... | |
virtual void | colorPressed () |
Slot for the EditColor button, opens a color dialog. More... | |
virtual void | defaultsPressed () |
Resets the lighting. More... | |
virtual void | lightSelected (QListWidgetItem *current_item, QListWidgetItem *previous_item) |
Slot for selection in the listbox with lights. More... | |
virtual void | removeLightPressed () |
Slot for the RemoveLight button. More... | |
virtual void | typeSelected () |
Slot for type selection changed. More... | |
virtual void | intensityChanged () |
Slot for changes of the intensity slider. More... | |
virtual void | positionTypeChanged () |
Public Member Functions | |
LightSettings (QWidget *parent=0, const char *name="LightSettings", Qt::WFlags fl=0) | |
Constructor. More... | |
~LightSettings () | |
Destructor. More... | |
void | update () |
Update the display of all fields. More... | |
void | updateFromStage () |
Get the values for lighting from the stage. More... | |
void | apply () |
Apply the new values to the stage. More... | |
virtual void | restoreDefaultValues (bool=false) |
Called when defaults is pressed in Preferences, calls setDefaults. More... | |
void | restoreValues (bool all) |
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 String & | getINIFileSectionName () const |
Get the name for the section in the INIFile. More... | |
void | setWidgetStackName (const String &name) |
StackPages & | getStackPages () |
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 | storeValues () |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
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 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 | |
Stage * | stage_ |
vector< LightSource > | lights_ |
vector< LightSource > | default_lights_ |
bool | ignore_ |
Index | current_light_ |
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_ |
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 |
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.
|
inline |
Destructor.
Definition at line 48 of file lightSettings.h.
|
virtualslot |
Slot for the AddLight button.
void BALL::VIEW::LightSettings::apply | ( | ) |
Apply the new values to the stage.
|
protected |
|
virtualslot |
Slot for the EditColor button, opens a color dialog.
|
virtualslot |
Resets the lighting.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtualslot |
Slot for changes of the intensity slider.
|
virtualslot |
Slot for selection in the listbox with lights.
|
virtualslot |
|
virtualslot |
Slot for the RemoveLight button.
|
virtual |
Called when defaults is pressed in Preferences, calls setDefaults.
Reimplemented from BALL::VIEW::PreferencesEntry.
|
virtual |
Restore the values of the child widgets. Called e.g. when a user presses a Cancel button.
Reimplemented from BALL::VIEW::PreferencesEntry.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtualslot |
Slot for type selection changed.
|
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.
|
protected |
Definition at line 122 of file lightSettings.h.
|
protected |
Definition at line 119 of file lightSettings.h.
|
protected |
Definition at line 121 of file lightSettings.h.
|
protected |
Definition at line 116 of file lightSettings.h.
|
protected |
Definition at line 113 of file lightSettings.h.