HyperspaceExplorer 0.7.1
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
UI::Dialogs::ValuesDialogImpl Class Reference

A Dialog to enter parameters for the displayed function. More...

#include <ValuesDialogImpl.h>

Inheritance diagram for UI::Dialogs::ValuesDialogImpl:
Inheritance graph
[legend]
Collaboration diagram for UI::Dialogs::ValuesDialogImpl:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

Todo:
The switching on and off of input fields, depending on which function is selected, is done from C4DView. This is of course unfortunate and will be changed.
Author:
Helge Preuss <lene.preuss@gmail.com>

Member Function Documentation

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

Todo:
remove those fields instead of catching the exception

References ApplyChanges(), ParameterMap::getParameter(), UI::Dialogs::ValuesDialog::maxNumParameters, UI::Dialogs::ValuesDialog::Parameter, UI::Dialogs::ValuesDialog::ParameterLabel, parameters, and value().

Here is the call graph for this function:

void UI::Dialogs::ValuesDialogImpl::setFunction ( const std::shared_ptr< Displayable > &  F)

Adjust the display according to the Function whose Parameters are controlled.

  • Sets the internal map of parameters to the parameters the Function expects and adjusts input elements accordingly
  • Shows as many sliders to adjust the size of the grid the function is evaluated on, as the definition space of the function has dimensions
  • Only displays labels for the parts of the dialog which are shown

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void UI::Dialogs::ValuesDialogImpl::setParameters ( const ParameterMap parms) [private]

Adjust the displayed parameter fields to the parameters the function needs.

  • Sets the internal map of parameters to the parameters the Function expects
  • Shows input fields for as many parameters as necessary
  • Sets the text on these fields to the parameter's name, the tool tip to its optional description and the value to its value

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().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo