Interface for all objects that should be serialized by the PersistenceManager. More...
#include <InterfacePersistence.h>
Inheritance diagram for camitk::InterfacePersistence:
Collaboration diagram for camitk::InterfacePersistence:Public Member Functions | |
| virtual void | fromVariant (const QVariant &)=0 |
| Load data from a QVariant to initialize the current object. | |
| virtual QUuid | getUuid () const =0 |
| Get the universally unique ID of the object to be saved. | |
| virtual bool | setUuid (QUuid id=QUuid())=0 |
| Set the universally unique ID of the object to be saved. | |
| virtual QVariant | toVariant () const =0 |
| Convert all data from the object to a QVariant (usually a QVariantMap) | |
| virtual | ~InterfacePersistence ()=default |
Interface for all objects that should be serialized by the PersistenceManager.
|
virtualdefault |
|
pure virtual |
Load data from a QVariant to initialize the current object.
Implemented in camitk::Action, camitk::Component, camitk::ImageComponent, camitk::MeshComponent, camitk::PropertyObject, camitk::Transformation, camitk::AnatomicalOrientation, and camitk::FrameOfReference.
|
pure virtual |
Get the universally unique ID of the object to be saved.
Implemented in camitk::Action, camitk::Component, camitk::AnatomicalOrientation, camitk::FrameOfReference, camitk::PropertyObject, and camitk::Transformation.
|
pure virtual |
Set the universally unique ID of the object to be saved.
| id | The value of the UUID to set. If you don't set this parameter, it will set a random UUID. |
Implemented in camitk::Transformation, camitk::AnatomicalOrientation, camitk::FrameOfReference, camitk::Action, camitk::Component, and camitk::PropertyObject.
|
pure virtual |
Convert all data from the object to a QVariant (usually a QVariantMap)
Implemented in camitk::Action, camitk::Component, camitk::ImageComponent, camitk::MeshComponent, camitk::AnatomicalOrientation, camitk::FrameOfReference, camitk::PropertyObject, and camitk::Transformation.