44 #include "TypePolyMesh.hh"
47 #include <OpenFlipper/common/BackupData.hh>
48 #include "PolyMeshBackup.hh"
52 TypePolyMeshPlugin::TypePolyMeshPlugin() {
58 bool TypePolyMeshPlugin::registerType() {
67 int TypePolyMeshPlugin::addEmpty(){
82 object->setName( f.fileName() );
88 emit emptyObjectAdded (object->
id() );
97 int cur_idx = _object->
id();
99 QString cur_name = QString(tr(
"PolyMesh new %1.off").arg( cur_idx + 1 ));
101 return QString(tr(
"PolyMesh new %1.off").arg( cur_idx + 1 ));
106 void TypePolyMeshPlugin::generateBackup(
int _id, QString _name,
UpdateType _type ){
119 backupData = dynamic_cast< BackupData* >(object->
objectData(OBJECT_BACKUPS));
123 object->setObjectData(OBJECT_BACKUPS, backupData);