iVS3D v2.0.0
Loading...
Searching...
No Matches
ISerializable Class Referenceabstract

The ISerializable class ensures that inherit classes can be transformed to and from text. More...

#include <ISerializable.h>

Inheritance diagram for ISerializable:
ModelAlgorithm ModelInputPictures

Public Member Functions

virtual QVariant toText ()=0
 toText generates a QVariant which contains the models data
 
virtual void fromText (QVariant data)=0
 fromText recreates the given model form a QVariant
 

Detailed Description

The ISerializable class ensures that inherit classes can be transformed to and from text.

Author
Daniel Brommer
Date
2021/02/08

Member Function Documentation

◆ fromText()

virtual void ISerializable::fromText ( QVariant  data)
pure virtual

fromText recreates the given model form a QVariant

Parameters
datacontains essential model information which are used to recreate the model

Implemented in ModelAlgorithm, and ModelInputPictures.

◆ toText()

virtual QVariant ISerializable::toText ( )
pure virtual

toText generates a QVariant which contains the models data

Returns
generated QVariant

Implemented in ModelAlgorithm, and ModelInputPictures.


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