iVS3D v2.0.0
Loading...
Searching...
No Matches
ModelAlgorithm Class Reference

The ModelAlgorithm class is responsible for buffering data from the used plugins. It implements the interface ISerializable to be able to save all its current Data. More...

#include <modelalgorithm.h>

Inheritance diagram for ModelAlgorithm:
ISerializable

Public Member Functions

 ModelAlgorithm ()
 ModelInputPictures default Constructor.
 
void addPluginBuffer (QString pluginName, QString bufferName, QVariant value)
 Saves the buffer given buffer.
 
QMap< QString, QMap< QString, QVariant > > getPluginBuffer ()
 Returns the whole buffer.
 
QVariant toText () override
 Saves this class to a QVariant.
 
void fromText (QVariant data) override
 Reades its members from the given QVariant.
 

Detailed Description

The ModelAlgorithm class is responsible for buffering data from the used plugins. It implements the interface ISerializable to be able to save all its current Data.

Author
Daniel Brommer
Date
2021/03/03

Member Function Documentation

◆ addPluginBuffer()

void ModelAlgorithm::addPluginBuffer ( QString  pluginName,
QString  bufferName,
QVariant  value 
)

Saves the buffer given buffer.

Parameters
pluginNameName of the Plugin
bufferNameName of the buffer
valueBuffered values as QVariant

◆ fromText()

void ModelAlgorithm::fromText ( QVariant  data)
overridevirtual

Reades its members from the given QVariant.

Parameters
dataQVariant containing this class data

Implements ISerializable.

◆ getPluginBuffer()

QMap< QString, QMap< QString, QVariant > > ModelAlgorithm::getPluginBuffer ( )

Returns the whole buffer.

Returns
A QMap<QString, QMap<QString, QVariant>> where the outer map saves a inner map for every Plugin. The inner map contains the buffered value and its name given by the plugin. This way a plugin is able to save multiple values. E.g. the Blur plugin can save blur values from the Laplacian blur filter and blur values from the Sobel algorithm.

◆ toText()

QVariant ModelAlgorithm::toText ( )
overridevirtual

Saves this class to a QVariant.

Returns
QVariant containing important data from this class

Implements ISerializable.


The documentation for this class was generated from the following files: