Commit 398a18c9 authored by Jan Möbius's avatar Jan Möbius

Implement Backup Interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9561 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ea28438a
......@@ -70,6 +70,9 @@ void IsotropicRemesherPlugin::threadFinished(QString _jobId) {
o_it != PluginFunctions::objectsEnd(); ++o_it) {
emit updatedObject( o_it->id(), UPDATE_ALL );
emit createBackup(o_it->id(),"Isotropic Remeshing with Target length: " + QString::number(edgeLength_) );
emit updateView();
}
......@@ -180,6 +183,8 @@ void IsotropicRemesherPlugin::isotropicRemesh(int _objectID, double _targetEdgeL
mesh->update_normals();
emit updatedObject( object->id(), UPDATE_ALL );
emit createBackup(object->id(),"Isotropic Remeshing with Target length: " + QString::number(edgeLength_) );
emit updateView();
......
......@@ -9,6 +9,7 @@
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/BasePlugin/RPCInterface.hh>
#include <OpenFlipper/BasePlugin/ProcessInterface.hh>
#include <OpenFlipper/BasePlugin/BackupInterface.hh>
#include <OpenFlipper/common/Types.hh>
#include <ObjectTypes/TriangleMesh/TriangleMesh.hh>
#include <ObjectTypes/PolyMesh/PolyMesh.hh>
......@@ -17,7 +18,7 @@
#include "ProgressEmitter.hh"
class IsotropicRemesherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, RPCInterface, ProcessInterface
class IsotropicRemesherPlugin : public QObject, BaseInterface, BackupInterface , ToolboxInterface, LoggingInterface, RPCInterface, ProcessInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
......@@ -25,6 +26,7 @@ Q_INTERFACES(ToolboxInterface)
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(RPCInterface)
Q_INTERFACES(ProcessInterface)
Q_INTERFACES(BackupInterface)
signals:
......@@ -53,6 +55,9 @@ signals:
void setJobName(QString _jobId, QString _name);
void finishJob(QString _jobId);
void setJobDescription(QString _jobId, QString _description);
// BackupInterface
void createBackup( int _id , QString _name );
private slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment