#include <evaluationpath_items.h>
Public Member Functions | |
ModifierItem (QString plugin, QTreeItem *p) | |
~ModifierItem () | |
Modifier * | modifier () |
void | process (NSCore::AcqisitionDataSet &data) |
process data | |
QString | type () const |
QString | name () const |
QString | help () const |
NSCore::NamedParameterTreeItemPointer | config () |
Give access to the configuration. | |
QDomNode | saveToXML (QDomDocument doc) |
Store the information of this element into a new QDomElement. | |
bool | restoreFromXML (QDomNode node) |
Restore the state of this element from the given QDomNode. | |
Private Attributes | |
NSCore::NamedParameterTreeItem * | _config |
Modifier * | _modifier |
NSEvaluation::ModifierItem::ModifierItem | ( | QString | plugin, | |
QTreeItem * | p | |||
) | [inline] |
NSEvaluation::ModifierItem::~ModifierItem | ( | ) | [inline] |
References _modifier.
void NSEvaluation::ModifierItem::process | ( | NSCore::AcqisitionDataSet & | ) | [inline, virtual] |
process data
This function is used to process the data. This implementation does nothing, derived class have to to the real thing.
Reimplemented from NSEvaluation::PluginItem.
References _config, _modifier, NSCore::AcqisitionDataSet::channels(), NSEvaluation::Modifier::channels, NSCore::QTreeItem::childobjects(), NSCore::AcqisitionDataSet::currentGenerationNumber(), NSCore::NamedParameterTreeItem::getParameter(), NSEvaluation::Modifier::modify(), NSCore::AcqisitionDataSet::newGeneration(), NSCore::AcqisitionDataSet::popPrefix(), NSEvaluation::Modifier::prefix, NSEvaluation::Modifier::prepare(), NSEvaluation::PluginItem::process(), NSCore::AcqisitionDataSet::pushPrefix(), NSCore::AcqisitionDataSet::resetMinMaxCache(), NSCore::AcqisitionDataSet::samples(), NSEvaluation::Modifier::samples, and NSEvaluation::Plugin::type().
QString NSEvaluation::ModifierItem::type | ( | ) | const [inline, virtual] |
Implements NSEvaluation::PluginItem.
QString NSEvaluation::ModifierItem::name | ( | ) | const [inline, virtual] |
QString NSEvaluation::ModifierItem::help | ( | ) | const [inline, virtual] |
Reimplemented from NSEvaluation::PluginItem.
References _modifier, and NSEvaluation::Plugin::help().
NSCore::NamedParameterTreeItemPointer NSEvaluation::ModifierItem::config | ( | ) | [inline, virtual] |
QDomNode NSEvaluation::ModifierItem::saveToXML | ( | QDomDocument | doc | ) | [inline, virtual] |
Store the information of this element into a new QDomElement.
This function is only to save the state of this element, all the recursive stuff will be done by toXml().
doc | The QDomDocument to use for creation of the element |
Implements NSCore::QTreeItem.
References _modifier, and NSEvaluation::Plugin::type().
bool NSEvaluation::ModifierItem::restoreFromXML | ( | QDomNode | node | ) | [inline, virtual] |
Restore the state of this element from the given QDomNode.
You don't have to do the recursive stuff here, that is handled in fromXml() for you. Only the things done in saveToXML need/can be restored here.
If you succeeded and want the childs to be restored too, return true.
node | The QDomNode to restore from |
Implements NSCore::QTreeItem.
Referenced by config(), ModifierItem(), and process().
Modifier* NSEvaluation::ModifierItem::_modifier [private] |
Referenced by help(), modifier(), ModifierItem(), name(), process(), saveToXML(), and ~ModifierItem().