HyperspaceExplorer 0.7.1
|
Class template to outsource redundant code for customized functions. More...
Static Public Member Functions | |
static void | createCustomFunction (C4DView *view) |
static void | createCustomSurface (C4DView *view) |
Factory method to create a new customized Function of type R^2->R^4. |
Class template to outsource redundant code for customized functions.
Redundant code for the generation of customized functions is moved to a slot called by QActions from the QMenu
function | the Function to be created in the slot |
void C4DView::CustomFunctionSlot< function >::createCustomSurface | ( | C4DView * | view | ) | [static] |
Factory method to create a new customized Function of type R^2->R^4.
This function template is called by each slot with the correct function type as template parameter.
Sets F to the newly created Function, checks the corresponding menu item, updates the ValuesDialog and redraws. Does some error handling in case the Function could not be loaded.
References C4DView::AssignValues(), UI::Dialogs::ValuesDialogImpl::dt(), UI::Dialogs::ValuesDialogImpl::du(), UI::ViewImpl::F(), C4DView::Redraw(), UI::ViewImpl::setF(), UI::Dialogs::ValuesDialogImpl::tmax(), UI::Dialogs::ValuesDialogImpl::tmin(), UI::Dialogs::ValuesDialogImpl::umax(), UI::Dialogs::ValuesDialogImpl::umin(), C4DView::UpdateStatus(), and C4DView::Values().
Referenced by C4DView::Menu4D::customComplexFunction(), and C4DView::Menu4D::customSurface().