Optika  Development
Classes
Optika_GUI.hpp File Reference

A collection of functions and an Object that serve as the primary interface to the Optika package allowing application developers to obtain user input. More...

#include "Optika_metawindow.hpp"
Include dependency graph for Optika_GUI.hpp:

Classes

class  Optika::OptikaGUI
 A class that allows the user to create and customize their Optika GUI. More...
 

Functions

Basic Input Getting Function
void Optika::getInput (RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet=null, void(*customFunc)(RCP< const ParameterList >)=NULL)
 Retreives the input for a Teuchos Parameter List using a GUI. Note the Parameter List will be edited. All user input will be stored in it. Also runs the function specified whenever the user clicks the action button and uses the specified dependency list. More...
 
void Optika::getInput (const std::string &nameOfXmlFile, RCP< ParameterList > &userInput, void(*customFunc)(RCP< const ParameterList >)=NULL)
 Reads in a set of parameters and dependencies from the specified xmlfile, displays a GUI, and stores the users input in the sprecified ParameterList. If a custom function is provided, it is run upon the user clicking the action button. More...
 

Detailed Description

A collection of functions and an Object that serve as the primary interface to the Optika package allowing application developers to obtain user input.

Function Documentation

void Optika::getInput ( RCP< ParameterList >  validParameters,
RCP< DependencySheet >  dependencySheet = null,
void(*)(RCP< const ParameterList >)  customFunc = NULL 
)

Retreives the input for a Teuchos Parameter List using a GUI. Note the Parameter List will be edited. All user input will be stored in it. Also runs the function specified whenever the user clicks the action button and uses the specified dependency list.

Parameters
validParametersA list of parameters from which the users may specify values.
dependencySheetA sheet listing any dependencies between parameters in the validParameters ParameterList.
customFuncCustom function to run whenever the user clicks the action button.
void Optika::getInput ( const std::string &  nameOfXmlFile,
RCP< ParameterList > &  userInput,
void(*)(RCP< const ParameterList >)  customFunc = NULL 
)

Reads in a set of parameters and dependencies from the specified xmlfile, displays a GUI, and stores the users input in the sprecified ParameterList. If a custom function is provided, it is run upon the user clicking the action button.

Parameters
namOfXmlFileThe name of the xml file from which parameters and dependencies will be read in.
userInputA ParameterList into which all user input should be stored.
customFuncA custom function for Optika to run upon the user clicking the action button.