HyperspaceExplorer 0.7.1
|
A Dialog to enter parameters for the displayed function. More...
#include <ValuesDialogImpl.h>
Public Slots | |
virtual void | accept () |
This function is called when the user clicks the "Apply" button. | |
Signals | |
void | ApplyChanges (const ParameterMap &) |
Tell the C4DView to update according to the ParameterMap's values. | |
Public Member Functions | |
ValuesDialogImpl (QWidget *parent=0, Qt::WFlags f=0) | |
Set up the components of the dialog and displays it. | |
void | setFunction (const std::shared_ptr< Displayable > &) |
Adjust the display according to the Function whose Parameters are controlled. | |
std::string | print () |
output for debugging purposes | |
double | tmin () |
lower bound for parameter t | |
double | tmax () |
upper bound for parameter t | |
unsigned | tsteps () |
steps in parameter t | |
double | dt () |
delta in parameter t | |
double | umin () |
lower bound for parameter u | |
double | umax () |
upper bound for parameter u | |
unsigned | usteps () |
steps in parameter u | |
double | du () |
delta in parameter u | |
double | vmin () |
lower bound for parameter v | |
double | vmax () |
upper bound for parameter v | |
unsigned | vsteps () |
steps in parameter v | |
double | dv () |
delta in parameter v | |
Private Member Functions | |
void | setParameters (const ParameterMap &) |
Adjust the displayed parameter fields to the parameters the function needs. | |
Private Attributes | |
ParameterMap | parameters |
parameters to manage |
A Dialog to enter parameters for the displayed function.
These parameters encompass the definition space, the resolution of the grid on which the function's values are sampled and displayed, as well as parameters which are specific to the function.
void UI::Dialogs::ValuesDialogImpl::accept | ( | ) | [virtual, slot] |
This function is called when the user clicks the "Apply" button.
default parameter names in hidden fields of the dialog
References ApplyChanges(), ParameterMap::getParameter(), UI::Dialogs::ValuesDialog::maxNumParameters, UI::Dialogs::ValuesDialog::Parameter, UI::Dialogs::ValuesDialog::ParameterLabel, parameters, and value().
void UI::Dialogs::ValuesDialogImpl::setFunction | ( | const std::shared_ptr< Displayable > & | F | ) |
Adjust the display according to the Function whose Parameters are controlled.
References UI::Dialogs::ValuesDialog::functionLabel, UI::Dialogs::ValuesDialog::gridLabel, UI::Dialogs::ValuesDialog::Label, UI::Dialogs::ValuesDialog::Max, UI::Dialogs::ValuesDialog::MaxLabel, UI::Dialogs::ValuesDialog::maxNumDimensions, UI::Dialogs::ValuesDialog::Min, UI::Dialogs::ValuesDialog::MinLabel, setParameters(), UI::Dialogs::ValuesDialog::Slider, and UI::Dialogs::ValuesDialog::Steps.
Referenced by C4DView::AssignValues().
void UI::Dialogs::ValuesDialogImpl::setParameters | ( | const ParameterMap & | parms | ) | [private] |
Adjust the displayed parameter fields to the parameters the function needs.
References std::map< _Key, _Tp, _Compare, _Alloc >::begin(), UI::Dialogs::ParameterInputFactory::create(), std::map< _Key, _Tp, _Compare, _Alloc >::end(), Loki::SingletonHolder< T, CreationPolicy >::Instance(), UI::Dialogs::ValuesDialog::maxNumParameters, UI::Dialogs::ValuesDialog::Parameter, UI::Dialogs::ValuesDialog::ParameterLabel, UI::Dialogs::ValuesDialog::ParameterLayout, parameters, UI::Dialogs::ParameterInput::setValue(), and value().
Referenced by setFunction().