|  | Computer Assited Medical Intervention Tool Kit
    version 4.1
    | 
HistoryItem class describes the entry of an action used in a pipeline, in the history. More...
#include <HistoryItem.h>
| Public Member Functions | |
| void | addProperty (QByteArray name, QVariant value) | 
| Add a property of the corresponding action to the history item.  More... | |
| QList< HistoryComponent > | getInputHistoryComponents () | 
| Get the input components of the history item action.  More... | |
| QString | getName () | 
| Get the name of the corresponding action in the pipeline.  More... | |
| QList< HistoryComponent > | getOutputHistoryComponents () | 
| Get the output components of the history item action.  More... | |
| HistoryItem ()=default | |
| Empty constructor.  More... | |
| HistoryItem (QString name) | |
| Default constructor.  More... | |
| void | setInputHistoryComponents (QList< HistoryComponent > inputHistoryComponents) | 
| Set the input components of the history item action.  More... | |
| void | setOutputHistoryComponents (QList< HistoryComponent > outputHistoryComponents) | 
| Set the output components of the history item action.  More... | |
| virtual | ~HistoryItem ()=default | 
| Virtual destructor.  More... | |
| Private Attributes | |
| QList< HistoryComponent > | inputHistoryComponents | 
| The input components for this action.  More... | |
| QString | name | 
| The name of the action in the pipeline.  More... | |
| QList< HistoryComponent > | outputHistoryComponents | 
| The outpu components for this action.  More... | |
| QMap< QByteArray, QVariant > | properties | 
| The properties stored for this action.  More... | |
HistoryItem class describes the entry of an action used in a pipeline, in the history.
In CamiTK, every Action are stored in a history, which can be saved as a XML file. 
Each history entry is an instance of HistoryItem and provides information about the processed action :
History items are mainly useful for getting back to a previous state by undoing an action or for scripting by storing in a file a pipeline of actions written in Python. 
 The history is stored in the Application class and uses the "construct on first use" idiom/design-pattern (with singletons). 
It therefore avoids the infamous "static initialization order fiasco", see http://www.parashift.com/c++-faq/ctors.html
| 
 | default | 
Empty constructor.
| HistoryItem::HistoryItem | ( | QString | name | ) | 
| 
 | virtualdefault | 
Virtual destructor.
| void HistoryItem::addProperty | ( | QByteArray | name, | 
| QVariant | value | ||
| ) | 
Add a property of the corresponding action to the history item.
| name | Name of the property to addProperty. | 
| value | Value of the property to add (no type specified). | 
References properties.
Referenced by camitk::Action::postProcess().
| QList< HistoryComponent > HistoryItem::getInputHistoryComponents | ( | ) | 
Get the input components of the history item action.
References inputHistoryComponents.
Referenced by camitk::Application::saveHistoryAsSXML().
| QString HistoryItem::getName | ( | ) | 
Get the name of the corresponding action in the pipeline.
References name.
Referenced by camitk::Application::saveHistoryAsSXML().
| QList< HistoryComponent > HistoryItem::getOutputHistoryComponents | ( | ) | 
Get the output components of the history item action.
References outputHistoryComponents.
Referenced by camitk::Application::saveHistoryAsSXML().
| void HistoryItem::setInputHistoryComponents | ( | QList< HistoryComponent > | inputHistoryComponents | ) | 
Set the input components of the history item action.
| inputHistoryComponents | The list of input HistoryComponent. | 
References inputHistoryComponents.
Referenced by camitk::Action::preProcess().
| void HistoryItem::setOutputHistoryComponents | ( | QList< HistoryComponent > | outputHistoryComponents | ) | 
Set the output components of the history item action.
| outputHistoryComponents | The list of output HistoryComponent. | 
References outputHistoryComponents.
Referenced by camitk::Action::postProcess().
| 
 | private | 
The input components for this action.
Referenced by getInputHistoryComponents(), and setInputHistoryComponents().
| 
 | private | 
The name of the action in the pipeline.
Referenced by getName(), and HistoryItem().
| 
 | private | 
The outpu components for this action.
Referenced by getOutputHistoryComponents(), and setOutputHistoryComponents().
| 
 | private | 
The properties stored for this action.
Referenced by addProperty().
 1.8.13
 1.8.13