55 #include <OpenFlipper/BasePlugin/INIInterface.hh> 59 #ifdef ENABLE_TETRAHEDRALMESH_SUPPORT 61 #endif // ENABLE_TETRAHEDRALMESH_SUPPORT 62 #ifndef FILEOPENVOLUMEMESHT_CC 63 #include <OpenVolumeMesh/FileManager/FileManager.hh> 80 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileOVM")
86 void openedFile(
int _id);
87 void addEmptyObject(
DataType _type,
int& _id);
88 void load(QString _filename,
DataType _type,
int& _id);
89 void save(
int _id, QString _filename);
90 void log(
Logtype _type, QString _message);
91 void log(QString _message);
93 void emptyObjectAdded(
int _id);
96 void updatedObject(
int _id,
const UpdateType& _type);
98 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
102 void fileOpened(
int ) {}
104 void loadIniFileLast(
INIFile& _ini,
int _id);
105 void saveIniFile(
INIFile& _ini,
int _id);
107 void initializePlugin();
109 void noguiSupported( ) {}
116 return (QString(
"FileOpenVolumeMesh"));
120 return (QString(tr(
"Load/Save OpenVolumeMeshes")));
133 int loadObject(QString _filename);
135 bool saveObject(
int _id, QString _filename);
138 return QString(
"1.0");
143 template <
typename MeshT>
144 void loadMesh(
const char* _filename, MeshT& _mesh,
bool _comp,
bool _topCheck);
146 template <
typename MeshT>
147 void saveMesh(
const char* _filename, MeshT& _mesh,
bool _comp);
151 QWidget* loadOptions_;
152 QWidget* saveOptions_;
154 QComboBox* typeCheck_;
156 QCheckBox* loadCompMode_;
157 QCheckBox* loadTopCheck_;
158 QCheckBox* saveCompMode_;
163 #if defined(INCLUDE_TEMPLATES) && !defined(FILEOPENVOLUMEMESHT_CC) 164 #include "FileOpenVolumeMeshT_impl.hh"
Logtype
Log types for Message Window.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all Plugins which do logging to the logging window of the framework.
Read/Write mesh data from/to files.
QWidget * loadOptionsWidget(QString _currentFilter)
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
Interface class for Plugins which have to store information in ini files.
QWidget * saveOptionsWidget(QString _currentFilter)
Class for the handling of simple configuration files.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.