Developer Documentation
|
Class that encapsulates a backup. More...
#include <Type-OpenMesh/Plugin-TypeTriangleMesh/TriMeshBackup.hh>
Public Member Functions | |
TriMeshBackup (TriMeshObject *_meshObj, const QString &_name, UpdateType _type) | |
void | apply () |
Revert this backup. More... | |
![]() | |
BaseBackup (const QString &_name) | |
BaseBackup (BaseObjectData *_object, const QString &_name, UpdateType _type) | |
constructor More... | |
virtual void | apply () |
Revert this backup. More... | |
QString | name () |
Get the backups name) More... | |
void | setLinks (IdList _objectIDs) |
Set links to corresponding backups. More... | |
int | id () |
get id of this backup More... | |
bool | blocked () |
Returns if this backup is blocked. More... | |
Private Attributes | |
TriMeshObject * | meshObj_ |
TriMesh * | meshBackup_ |
Additional Inherited Members | |
![]() | |
std::vector< std::pair< QString, PerObjectData * > > | objectDatas_ |
Backup of the perObjectData objects. More... | |
BaseObjectData * | object_ |
QString | name_ |
IdList | links_ |
int | id_ |
Class that encapsulates a backup.
Definition at line 52 of file TriMeshBackup.hh.
TriMeshBackup::TriMeshBackup | ( | TriMeshObject * | _meshObj, |
const QString & | _name, | ||
UpdateType | _type | ||
) |
Definition at line 47 of file TriMeshBackup.cc.
TriMeshBackup::~TriMeshBackup | ( | ) |
Definition at line 57 of file TriMeshBackup.cc.
|
virtual |
Revert this backup.
This function has to be implemented. It will be called when the backup should be restored.
You have to restore your backup to the corresponding object when this function gets called.
Reimplemented from BaseBackup.
Definition at line 64 of file TriMeshBackup.cc.
|
private |
Definition at line 64 of file TriMeshBackup.hh.
|
private |
Definition at line 63 of file TriMeshBackup.hh.