#include <vuTFDialogSpec.h>
Inheritance diagram for vuTFDialogSpec:
Public Types | |
enum | { idLIGHT = vuTransferDialog::idLAST, idLIGHTINT = idLIGHT + TFDLG_NLIGHTS, idSETUPNODES, idEDITPAL } |
Public Member Functions | |
vuTFDialogSpec (wxWindow *parent, vuTFDesignSpec &tf) | |
Constructor for the dialog window. | |
void | updateSliders () |
Update the sliders from the weight settings in the transfer function. | |
Protected Member Functions | |
void | OnSlideLight (wxScrollEvent &event) |
Event handler for changes at the light sliders. | |
void | OnSetupNodes (wxCommandEvent &ev) |
sets up the nodes for building opacity triangles over the materials | |
void | OnEditPalette (void) |
open dialog for editing the palette | |
void | buildCustomSizer () |
void | editSpecColour (dword id) |
Protected Attributes | |
vuSpecPalette | m_PaletteDlg |
The editing dialog for the spectral palette. | |
wxSlider * | m_LightSlider [TFDLG_NLIGHTS] |
Sliders for the weights of the light sources and the overall intensity. | |
wxSlider * | m_LightIntensity |
Sliders for the weights of the light sources and the overall intensity. | |
wxStaticText * | m_LightName [TFDLG_NLIGHTS] |
The static names. | |
wxStaticText * | m_IName |
The static names. | |
wxButton * | m_mktri |
Set != 0 if a call of OnSlideLight should not affect the other sliders This counter is incremented for every slider manipulated by the program, see OnSlideLight(). | |
wxButton * | m_edpal |
Set != 0 if a call of OnSlideLight should not affect the other sliders This counter is incremented for every slider manipulated by the program, see OnSlideLight(). | |
int | m_NoSliderUpdates |
dword | m_NLights |
actual number of lights |
This class is derived from vuTransferDialog. It extends the interface to allow manipulation of light sources and other features of the spectral transfer fuction.
Definition at line 20 of file vuTFDialogSpec.h.
|
Definition at line 23 of file vuTFDialogSpec.h. |
|
Constructor for the dialog window. This creates the dialog window and it's controls, but doesn't show it. Call the standard ShowModal() method to display it.
Definition at line 33 of file vuTFDialogSpec.cpp. References word. |
|
Reimplemented from vuTransferDialog. Definition at line 48 of file vuTFDialogSpec.cpp. References vuTFDesignSpec::getNumLights(), vuTransferCanvas::getTransferFunc(), idEDITPAL, idLIGHTINT, idSETUPNODES, LIGHT, m_edpal, m_IName, m_LightIntensity, m_LightName, m_LightSlider, m_mktri, m_NLights, m_NoSliderUpdates, OnSlideLight(), SLDRES, and word. |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
open dialog for editing the palette
Definition at line 194 of file vuTFDialogSpec.cpp. References vuTFDesignSpec::generateFunction(), vuTFDesignSpec::getNumLights(), vuTransferCanvas::getTransferFunc(), vuTFDesignSpec::updateFromPalette(), and vuTFDesignSpec::updatePalette(). |
Here is the call graph for this function:
|
sets up the nodes for building opacity triangles over the materials
Definition at line 182 of file vuTFDialogSpec.cpp. References vuTFDesignSpec::generateFunction(), vuTransferCanvas::getTransferFunc(), vuGLCanvas::redraw(), vuTransferDialog::repaintParent(), and vuTFDesignSpec::setupMtlTriAlphaNodes(). |
Here is the call graph for this function:
|
Event handler for changes at the light sliders. All three sliders m_LightSlide[] map to this function. Reimplemented from vuTransferDialog. Definition at line 124 of file vuTFDialogSpec.cpp. References dword, vuTFDesignSpec::generateFunction(), vuTransferCanvas::getActiveOpacity(), vuTFDesignSpec::getLightNode(), vuTransferCanvas::getTransferFunc(), LIGHT, m_LightIntensity, m_LightSlider, m_NoSliderUpdates, vuGLCanvas::redraw(), vuTransferDialog::repaintParent(), vuTFDesignSpec::setAlphaByLight(), vuTFDesignSpec::setLightIntensity(), vuTFDesignSpec::setLightOpacityNode(), SLDRES, vuTFDesignSpec::weightLights(), and word. Referenced by buildCustomSizer(). |
Here is the call graph for this function:
|
Update the sliders from the weight settings in the transfer function.
Definition at line 109 of file vuTFDialogSpec.cpp. References vuTFDesignSpec::getLightIntensity(), vuTFDesignSpec::getLightNode(), vuTransferCanvas::getTransferFunc(), m_LightIntensity, m_LightSlider, SLDRES, and word. Referenced by vuSpectral::glRender(). |
Here is the call graph for this function:
|
Set != 0 if a call of OnSlideLight should not affect the other sliders This counter is incremented for every slider manipulated by the program, see OnSlideLight().
Definition at line 76 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(). |
|
The static names.
Definition at line 70 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(). |
|
Sliders for the weights of the light sources and the overall intensity.
Definition at line 68 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(), OnSlideLight(), and updateSliders(). |
|
The static names.
Definition at line 70 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(). |
|
Sliders for the weights of the light sources and the overall intensity.
Definition at line 68 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(), OnSlideLight(), and updateSliders(). |
|
Set != 0 if a call of OnSlideLight should not affect the other sliders This counter is incremented for every slider manipulated by the program, see OnSlideLight().
Definition at line 76 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(). |
|
actual number of lights
Definition at line 80 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(), and editSpecColour(). |
|
Definition at line 78 of file vuTFDialogSpec.h. Referenced by buildCustomSizer(), and OnSlideLight(). |
|
The editing dialog for the spectral palette.
Definition at line 65 of file vuTFDialogSpec.h. Referenced by editSpecColour(). |