Go to the documentation of this file.
5 #ifndef BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
6 #define BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_CONCEPT_EMBEDDABLE_H
16 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
20 #ifndef BALL_VIEW_KERNEL_STAGE_H
24 #include <BALL/VIEW/UIC/ui_lightSettings.h>
40 public Ui_LightSettingsData,
52 Qt::WindowFlags fl = 0 );
84 virtual void lightSelected(QListWidgetItem* current_item, QListWidgetItem* previous_item);
virtual void updateDirectlyBoxChanged()
virtual void positionTypeChanged()
void saveSettingsToLight_()
virtual void addLightPressed()
Slot for the AddLight button.
#define BALL_EMBEDDABLE(TYPE, BASE)
void typeSelected_(Position type)
void update()
Update the display of all fields.
void restoreValues(bool all)
void setAttenuation_(const Vector3 &a)
virtual void intensityChanged()
Slot for changes of the intensity slider.
void getValues_(Index light=-1)
Vector3 getAttenuation_()
vector< LightSource > lights_
void apply()
Apply the new values to the stage.
virtual void restoreDefaultValues(bool=false)
Called when defaults is pressed in Preferences, calls setDefaults.
virtual void typeSelected()
Slot for type selection changed.
void setControlsEnabled_(bool state)
void updateFromStage()
Get the values for lighting from the stage.
virtual void lightSelected(QListWidgetItem *current_item, QListWidgetItem *previous_item)
Slot for selection in the listbox with lights.
virtual void colorPressed()
Slot for the EditColor button, opens a color dialog.
void setPosition_(const Vector3 &v)
virtual void intensityMaxChanged(const QString &text)
Slot for changes of the intensity max factor.
virtual void removeLightPressed()
Slot for the RemoveLight button.
vector< LightSource > default_lights_
Index getCurrentLightNumber_() const
void setDirection_(const Vector3 &v)
virtual void defaultsPressed()
Resets the lighting.