#include <wxluxgui.h>
Public Member Functions | |
| LuxLightGroupPanel (LuxGui *gui, wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL) | |
| void | SetIndex (int index) |
| int | GetIndex () const |
| void | UpdateWidgetValues () |
| void | ResetValues () |
| void | ResetValuesFromFilm (bool useDefaults=true) |
Protected Member Functions | |
| int | ScaleToSliderVal (float scale) |
| float | SliderValToScale (int sliderval) |
| void | SetWidgetsEnabled (bool enabled) |
| void | OnText (wxCommandEvent &event) |
| void | OnMouse (wxMouseEvent &event) |
| void | OnCheckBox (wxCommandEvent &event) |
| void | OnColourChanged (wxColourPickerEvent &event) |
| void | OnScroll (wxScrollEvent &event) |
Private Attributes | |
| LuxGui *const | m_Gui |
| int | m_Index |
| bool | m_LG_enable |
| double | m_LG_scale |
| bool | m_LG_temperature_enabled |
| double | m_LG_temperature |
| bool | m_LG_rgb_enabled |
| double | m_LG_scaleRed |
| double | m_LG_scaleGreen |
| double | m_LG_scaleBlue |
| double | m_LG_scaleX |
| double | m_LG_scaleY |
Definition at line 288 of file wxluxgui.h.
| LuxGui::LuxLightGroupPanel::LuxLightGroupPanel | ( | LuxGui * | gui, | |
| wxWindow * | parent, | |||
| wxWindowID | id = wxID_ANY, |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxSize( -1,-1 ), |
|||
| long | style = wxTAB_TRAVERSAL | |||
| ) |
Definition at line 2765 of file wxluxgui.cpp.
References arrowdownactive_png, bar_blackbody_png, lux::LightGroupPanel::m_BarBlackBodyStaticBitmap, m_Index, lux::LightGroupPanel::m_lightgroupBitmap, lux::LightGroupPanel::m_Tab_LightGroupIcon, lux::LightGroupPanel::m_Tab_LightGroupToggleIcon, powericon_png, ResetValues(), tab_lightgroup_png, and wxMEMORY_BITMAP.
| int LuxGui::LuxLightGroupPanel::GetIndex | ( | ) | const |
Definition at line 2782 of file wxluxgui.cpp.
References m_Index.
| void LuxGui::LuxLightGroupPanel::OnCheckBox | ( | wxCommandEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LightGroupPanel.
Definition at line 2934 of file wxluxgui.cpp.
References ID_LG_RGB_ENABLED, ID_LG_TEMPERATURE_ENABLED, LUX_FILM, LUX_FILM_LG_SCALE_BLUE, LUX_FILM_LG_SCALE_GREEN, LUX_FILM_LG_SCALE_RED, LUX_FILM_LG_TEMPERATURE, m_Gui, m_Index, m_LG_rgb_enabled, lux::LightGroupPanel::m_LG_rgbEnabled, lux::LightGroupPanel::m_LG_rgbPicker, m_LG_scaleBlue, m_LG_scaleGreen, m_LG_scaleRed, m_LG_temperature, m_LG_temperature_enabled, lux::LightGroupPanel::m_LG_temperatureEnabled, lux::LightGroupPanel::m_LG_temperatureSlider, lux::LightGroupPanel::m_LG_temperatureText, lux::LuxGui::UpdatedTonemapParam(), and UpdateParam().
| void LuxGui::LuxLightGroupPanel::OnColourChanged | ( | wxColourPickerEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LightGroupPanel.
Definition at line 2982 of file wxluxgui.cpp.
References ID_LG_RGBCOLOR, LUX_FILM, LUX_FILM_LG_SCALE_BLUE, LUX_FILM_LG_SCALE_GREEN, LUX_FILM_LG_SCALE_RED, m_Gui, m_Index, m_LG_rgb_enabled, m_LG_scaleBlue, m_LG_scaleGreen, m_LG_scaleRed, lux::LuxGui::UpdatedTonemapParam(), and UpdateParam().
| void LuxGui::LuxLightGroupPanel::OnMouse | ( | wxMouseEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LightGroupPanel.
Definition at line 2852 of file wxluxgui.cpp.
References arrowdownactive_png, arrowleft_png, ID_TAB_LG, ID_TAB_LG_TOGGLE, LUX_FILM, LUX_FILM_LG_ENABLE, luxSetParameterValue(), m_Gui, m_Index, m_LG_enable, lux::LightGroupPanel::m_LG_MainSizer, lux::LuxMainFrame::m_LightGroups, lux::LuxMainFrame::m_LightGroupsSizer, lux::LightGroupPanel::m_Tab_Control_LightGroupPanel, lux::LightGroupPanel::m_Tab_LightGroupIcon, lux::LightGroupPanel::m_Tab_LightGroupToggleIcon, powericon_png, powerofficon_png, SetWidgetsEnabled(), lux::LuxGui::UpdatedTonemapParam(), and wxMEMORY_BITMAP.
| void LuxGui::LuxLightGroupPanel::OnScroll | ( | wxScrollEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LightGroupPanel.
Definition at line 3000 of file wxluxgui.cpp.
References FLOAT_SLIDER_RES, ID_LG_SCALE, ID_LG_TEMPERATURE, LG_TEMPERATURE_MAX, LG_TEMPERATURE_MIN, LUX_FILM, LUX_FILM_LG_SCALE, LUX_FILM_LG_TEMPERATURE, m_Gui, m_Index, m_LG_scale, lux::LightGroupPanel::m_LG_scaleText, m_LG_temperature, m_LG_temperature_enabled, lux::LightGroupPanel::m_LG_temperatureText, SliderValToScale(), lux::LuxGui::UpdatedTonemapParam(), and UpdateParam().
| void LuxGui::LuxLightGroupPanel::OnText | ( | wxCommandEvent & | event | ) | [protected, virtual] |
Reimplemented from lux::LightGroupPanel.
Definition at line 2892 of file wxluxgui.cpp.
References FLOAT_SLIDER_RES, ID_LG_SCALE_TEXT, ID_LG_TEMPERATURE_TEXT, LG_SCALE_LOG_MAX, LG_TEMPERATURE_MAX, LG_TEMPERATURE_MIN, LUX_FILM, LUX_FILM_LG_SCALE, LUX_FILM_LG_TEMPERATURE, m_Gui, m_Index, m_LG_scale, lux::LightGroupPanel::m_LG_scaleSlider, lux::LightGroupPanel::m_LG_scaleText, m_LG_temperature, m_LG_temperature_enabled, lux::LightGroupPanel::m_LG_temperatureSlider, lux::LightGroupPanel::m_LG_temperatureText, ScaleToSliderVal(), lux::LuxGui::UpdatedTonemapParam(), and UpdateParam().
| void LuxGui::LuxLightGroupPanel::ResetValues | ( | ) |
Definition at line 2812 of file wxluxgui.cpp.
References m_LG_enable, m_LG_rgb_enabled, m_LG_scale, m_LG_scaleBlue, m_LG_scaleGreen, m_LG_scaleRed, m_LG_scaleX, m_LG_scaleY, m_LG_temperature, and m_LG_temperature_enabled.
Referenced by LuxLightGroupPanel().
| void LuxGui::LuxLightGroupPanel::ResetValuesFromFilm | ( | bool | useDefaults = true |
) |
Definition at line 2824 of file wxluxgui.cpp.
References b, blender::g, LUX_FILM, LUX_FILM_LG_ENABLE, LUX_FILM_LG_NAME, LUX_FILM_LG_SCALE, LUX_FILM_LG_SCALE_BLUE, LUX_FILM_LG_SCALE_GREEN, LUX_FILM_LG_SCALE_RED, LUX_FILM_LG_TEMPERATURE, luxGetStringParameterValue(), luxSetParameterValue(), m_Index, m_LG_enable, lux::LightGroupPanel::m_LG_name, m_LG_rgb_enabled, m_LG_scale, m_LG_scaleBlue, m_LG_scaleGreen, m_LG_scaleRed, m_LG_temperature, m_LG_temperature_enabled, lux::r, and RetrieveParam().
Referenced by lux::LuxGui::ResetLightGroupsFromFilm().
| int LuxGui::LuxLightGroupPanel::ScaleToSliderVal | ( | float | scale | ) | [protected] |
Definition at line 3037 of file wxluxgui.cpp.
References FLOAT_SLIDER_RES, LG_SCALE_LOG_MAX, and LG_SCALE_LOG_MIN.
Referenced by OnText(), and UpdateWidgetValues().
| void LuxGui::LuxLightGroupPanel::SetIndex | ( | int | index | ) |
Definition at line 2786 of file wxluxgui.cpp.
References arrowleft_png, m_Index, lux::LightGroupPanel::m_Tab_Control_LightGroupPanel, lux::LightGroupPanel::m_Tab_LightGroupIcon, and wxMEMORY_BITMAP.
Referenced by lux::LuxGui::ResetLightGroupsFromFilm().
| void LuxGui::LuxLightGroupPanel::SetWidgetsEnabled | ( | bool | enabled | ) | [protected] |
Definition at line 3027 of file wxluxgui.cpp.
References m_LG_rgb_enabled, lux::LightGroupPanel::m_LG_rgbEnabled, lux::LightGroupPanel::m_LG_rgbPicker, lux::LightGroupPanel::m_LG_scaleSlider, lux::LightGroupPanel::m_LG_scaleText, m_LG_temperature_enabled, lux::LightGroupPanel::m_LG_temperatureEnabled, lux::LightGroupPanel::m_LG_temperatureSlider, and lux::LightGroupPanel::m_LG_temperatureText.
Referenced by OnMouse(), and UpdateWidgetValues().
| float LuxGui::LuxLightGroupPanel::SliderValToScale | ( | int | sliderval | ) | [protected] |
Definition at line 3049 of file wxluxgui.cpp.
References FLOAT_SLIDER_RES, LG_SCALE_LOG_MAX, and LG_SCALE_LOG_MIN.
Referenced by OnScroll().
| void LuxGui::LuxLightGroupPanel::UpdateWidgetValues | ( | ) |
Definition at line 2794 of file wxluxgui.cpp.
References Clamp(), FLOAT_SLIDER_RES, LG_TEMPERATURE_MAX, LG_TEMPERATURE_MIN, m_LG_enable, lux::LightGroupPanel::m_LG_rgbPicker, m_LG_scale, m_LG_scaleBlue, m_LG_scaleGreen, m_LG_scaleRed, lux::LightGroupPanel::m_LG_scaleSlider, lux::LightGroupPanel::m_LG_scaleText, m_LG_temperature, lux::LightGroupPanel::m_LG_temperatureSlider, lux::LightGroupPanel::m_LG_temperatureText, lux::LightGroupPanel::m_Tab_LightGroupToggleIcon, powericon_png, powerofficon_png, ScaleToSliderVal(), SetWidgetsEnabled(), and wxMEMORY_BITMAP.
LuxGui* const lux::LuxGui::LuxLightGroupPanel::m_Gui [private] |
Definition at line 315 of file wxluxgui.h.
Referenced by OnCheckBox(), OnColourChanged(), OnMouse(), OnScroll(), and OnText().
int lux::LuxGui::LuxLightGroupPanel::m_Index [private] |
Definition at line 316 of file wxluxgui.h.
Referenced by GetIndex(), LuxLightGroupPanel(), OnCheckBox(), OnColourChanged(), OnMouse(), OnScroll(), OnText(), ResetValuesFromFilm(), and SetIndex().
bool lux::LuxGui::LuxLightGroupPanel::m_LG_enable [private] |
Definition at line 318 of file wxluxgui.h.
Referenced by OnMouse(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
bool lux::LuxGui::LuxLightGroupPanel::m_LG_rgb_enabled [private] |
Definition at line 322 of file wxluxgui.h.
Referenced by OnCheckBox(), OnColourChanged(), ResetValues(), ResetValuesFromFilm(), and SetWidgetsEnabled().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scale [private] |
Definition at line 319 of file wxluxgui.h.
Referenced by OnScroll(), OnText(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scaleBlue [private] |
Definition at line 323 of file wxluxgui.h.
Referenced by OnCheckBox(), OnColourChanged(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scaleGreen [private] |
Definition at line 323 of file wxluxgui.h.
Referenced by OnCheckBox(), OnColourChanged(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scaleRed [private] |
Definition at line 323 of file wxluxgui.h.
Referenced by OnCheckBox(), OnColourChanged(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scaleX [private] |
Definition at line 324 of file wxluxgui.h.
Referenced by ResetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_scaleY [private] |
Definition at line 324 of file wxluxgui.h.
Referenced by ResetValues().
double lux::LuxGui::LuxLightGroupPanel::m_LG_temperature [private] |
Definition at line 321 of file wxluxgui.h.
Referenced by OnCheckBox(), OnScroll(), OnText(), ResetValues(), ResetValuesFromFilm(), and UpdateWidgetValues().
bool lux::LuxGui::LuxLightGroupPanel::m_LG_temperature_enabled [private] |
Definition at line 320 of file wxluxgui.h.
Referenced by OnCheckBox(), OnScroll(), OnText(), ResetValues(), ResetValuesFromFilm(), and SetWidgetsEnabled().
1.6.2-20100208