AlgorithmWidget Class Reference
[GUIAlgorithms]

The GUI widget for algorithm selection and configuration. More...

#include <algorithm_widget.h>

Inherits QWidget.

Collaboration diagram for AlgorithmWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void okPressed ()
void datasetChanged (dataset_key_type const &dataset_name)

Signals

void notifyNewDatasetGeneration (std::vector< std::pair< dataset_key_type, dataset_type > > const &dataset_keys_and_types)

Public Member Functions

 AlgorithmWidget (algorithm_name_container_type list_of_algorithms, QWidget *parent=0, Qt::WFlags f=0)
 ~AlgorithmWidget ()

Detailed Description

The GUI widget for algorithm selection and configuration.

Author:
Tobias Gross (tobias.gross@imedgine.org)

Christian Koerner (christian.koerner@imedgine.org)

Alexander Lex (alexander.lex@imedgine.org)

Marc Streit (marc.streit@imedgine.org)

Martin Reininger (martin.reininger@imedgine.org)

Definition at line 45 of file algorithm_widget.h.


Constructor & Destructor Documentation

AlgorithmWidget algorithm_name_container_type  list_of_algorithms,
QWidget *  parent = 0,
Qt::WFlags  f = 0
 

Constructor

Parameters:
list_of_algorithms A list of the algorithms that can be loaded
parent The parent of the widget
f TODO: Change name and describe me

Definition at line 31 of file algorithm_widget.cpp.

~AlgorithmWidget  ) 
 

Destructor

Definition at line 66 of file algorithm_widget.cpp.


Member Function Documentation

void datasetChanged dataset_key_type const &  dataset_name  )  [slot]
 

Slot getting called if a dataset is opened or closed in the application. Fills the dataset dropdowns of algorithm widget accordingly

Parameters:
dataset_name the name of the changed dataset

Definition at line 131 of file algorithm_widget.cpp.

void notifyNewDatasetGeneration std::vector< std::pair< dataset_key_type, dataset_type > > const &  dataset_keys_and_types  )  [signal]
 

Signal notifying on the event of new datasets being generated. New datasets are generated for in_place input datasets and output datasets when all datasets in the algorithm are chosen.

Parameters:
dataset_keys_and_types A vector of pairs holding the dataset_key_type and the dataset type

void okPressed  )  [slot]
 

Slot getting called when the ok Button of algorithm widget is pressed. Applies the configuration of the config_widget_ and runs the currently selected algorithm

Definition at line 121 of file algorithm_widget.cpp.

References ConfigWidget::applyConfiguration(), ConfigWidget::getConfiguration(), Controller::getInstance(), and Controller::runAlgorithm().


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:04 2006 for iMEDgine by  doxygen 1.4.6