50 #ifndef FILEOPENVOLUMEMESH_HH
51 #define FILEOPENVOLUMEMESH_HH
62 #include <OpenFlipper/BasePlugin/INIInterface.hh>
67 #ifndef FILEOPENVOLUMEMESHT_CC
68 #include <OpenVolumeMesh/FileManager/FileManager.hh>
85 #if QT_VERSION >= 0x050000
86 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileOVM")
93 void openedFile(
int _id);
94 void addEmptyObject(
DataType _type,
int& _id);
95 void load(QString _filename,
DataType _type,
int& _id);
96 void save(
int _id, QString _filename);
97 void log(
Logtype _type, QString _message);
98 void log(QString _message);
100 void emptyObjectAdded(
int _id);
103 void updatedObject(
int _id,
const UpdateType& _type);
105 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
109 void fileOpened(
int ) {}
111 void loadIniFileLast(
INIFile& _ini,
int _id);
112 void saveIniFile(
INIFile& _ini,
int _id);
114 void initializePlugin();
121 return (QString(
"FileOpenVolumeMesh"));
125 return (QString(tr(
"Load/Save OpenVolumeMeshes")));
138 int loadObject(QString _filename);
140 bool saveObject(
int _id, QString _filename);
143 return QString(
"1.0");
148 template <
typename MeshT>
149 void loadMesh(
const char* _filename, MeshT& _mesh,
bool _comp,
bool _topCheck);
151 template <
typename MeshT>
152 void saveMesh(
const char* _filename, MeshT& _mesh,
bool _comp);
156 QWidget* loadOptions_;
157 QWidget* saveOptions_;
159 QComboBox* typeCheck_;
161 QCheckBox* loadCompMode_;
162 QCheckBox* loadTopCheck_;
163 QCheckBox* saveCompMode_;
168 #if defined(INCLUDE_TEMPLATES) && !defined(FILEOPENVOLUMEMESHT_CC)
169 #include "FileOpenVolumeMeshT.cc"
172 #endif //FILEOPENVOLUMEMESH_HH
Interface class from which all plugins have to be created.
Interface class for Plugins which have to store information in ini files.
Logtype
Log types for Message Window.
QWidget * loadOptionsWidget(QString _currentFilter)
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for file handling.
QString name()
Return a name for the plugin.
Class for the handling of simple configuration files.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all Plugins which provide scriptable Functions.
QString description()
Return a description of what the plugin is doing.
Interface for all plugins which want to Load or Save files and create Objects.
Read/Write mesh data from/to files.
QWidget * saveOptionsWidget(QString _currentFilter)