Developer Documentation
TriMeshBackup Class Reference

Class that encapsulates a backup. More...

#include <Type-OpenMesh/Plugin-TypeTriangleMesh/TriMeshBackup.hh>

Inheritance diagram for TriMeshBackup:
BaseBackup

Public Member Functions

 TriMeshBackup (TriMeshObject *_meshObj, const QString &_name, UpdateType _type)
 
void apply ()
 Revert this backup. More...
 
- Public Member Functions inherited from BaseBackup
 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

TriMeshObjectmeshObj_
 
TriMeshmeshBackup_
 

Additional Inherited Members

- Protected Attributes inherited from BaseBackup
std::vector< std::pair< QString, PerObjectData * > > objectDatas_
 Backup of the perObjectData objects. More...
 
BaseObjectDataobject_
 
QString name_
 
IdList links_
 
int id_
 

Detailed Description

Class that encapsulates a backup.

Definition at line 52 of file TriMeshBackup.hh.

Constructor & Destructor Documentation

◆ TriMeshBackup()

TriMeshBackup::TriMeshBackup ( TriMeshObject _meshObj,
const QString &  _name,
UpdateType  _type 
)

Definition at line 47 of file TriMeshBackup.cc.

◆ ~TriMeshBackup()

TriMeshBackup::~TriMeshBackup ( )

Definition at line 57 of file TriMeshBackup.cc.

Member Function Documentation

◆ apply()

void TriMeshBackup::apply ( )
virtual

Revert this backup.

This function has to be implemented. It will be called when the backup should be restored.

Note
You have to call the BaseBackup::apply() first in your implementation of this function.

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.

Member Data Documentation

◆ meshBackup_

TriMesh* TriMeshBackup::meshBackup_
private

Definition at line 64 of file TriMeshBackup.hh.

◆ meshObj_

TriMeshObject* TriMeshBackup::meshObj_
private

Definition at line 63 of file TriMeshBackup.hh.


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