Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
InterfacePersistence Class Referenceabstract

Interface for all objects that should be serialized by the PersistenceManager. More...

#include <InterfacePersistence.h>

Public Member Functions

virtual void fromVariant (const QVariant &)=0
 Load data from a QVariant to initialize the current object.
 
virtual QVariant toVariant () const =0
 Convert all data from the object to a QVariant (usually a QVariantMap)
 

Detailed Description

Interface for all objects that should be serialized by the PersistenceManager.

Member Function Documentation

◆ fromVariant()

virtual void InterfacePersistence::fromVariant ( const QVariant &  )
pure virtual

Load data from a QVariant to initialize the current object.

Implemented in camitk::Action, camitk::Component, camitk::ImageComponent, camitk::MeshComponent, and camitk::PropertyObject.

◆ toVariant()

virtual QVariant InterfacePersistence::toVariant ( ) const
pure virtual

Convert all data from the object to a QVariant (usually a QVariantMap)

Implemented in camitk::Action, camitk::Component, camitk::ImageComponent, camitk::MeshComponent, and camitk::PropertyObject.


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