50 #ifndef FILEOPENVOLUMEMESH_HH 51 #define FILEOPENVOLUMEMESH_HH 62 #include <OpenFlipper/BasePlugin/INIInterface.hh> 67 #ifdef ENABLE_OPENVOLUMEMESH_TETRAHEDRAL_SUPPORT 69 #endif // ENABLE_OPENVOLUMEMESH_TETRAHEDRAL_SUPPORT 70 #ifndef FILEOPENVOLUMEMESHT_CC 71 #include <OpenVolumeMesh/FileManager/FileManager.hh> 88 #if QT_VERSION >= 0x050000 89 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileOVM")
96 void openedFile(
int _id);
97 void addEmptyObject(
DataType _type,
int& _id);
98 void load(QString _filename,
DataType _type,
int& _id);
99 void save(
int _id, QString _filename);
100 void log(
Logtype _type, QString _message);
101 void log(QString _message);
103 void emptyObjectAdded(
int _id);
106 void updatedObject(
int _id,
const UpdateType& _type);
108 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false);
112 void fileOpened(
int ) {}
114 void loadIniFileLast(
INIFile& _ini,
int _id);
115 void saveIniFile(
INIFile& _ini,
int _id);
117 void initializePlugin();
124 return (QString(
"FileOpenVolumeMesh"));
128 return (QString(tr(
"Load/Save OpenVolumeMeshes")));
141 int loadObject(QString _filename);
143 bool saveObject(
int _id, QString _filename);
146 return QString(
"1.0");
151 template <
typename MeshT>
152 void loadMesh(
const char* _filename, MeshT& _mesh,
bool _comp,
bool _topCheck);
154 template <
typename MeshT>
155 void saveMesh(
const char* _filename, MeshT& _mesh,
bool _comp);
159 QWidget* loadOptions_;
160 QWidget* saveOptions_;
162 QComboBox* typeCheck_;
164 QCheckBox* loadCompMode_;
165 QCheckBox* loadTopCheck_;
166 QCheckBox* saveCompMode_;
171 #if defined(INCLUDE_TEMPLATES) && !defined(FILEOPENVOLUMEMESHT_CC) 172 #include "FileOpenVolumeMeshT.cc" 175 #endif //FILEOPENVOLUMEMESH_HH
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Logtype
Log types for Message Window.
QWidget * saveOptionsWidget(QString _currentFilter)
Interface for all Plugins which provide scriptable Functions.
Interface class for Plugins which have to store information in ini files.
Interface class from which all plugins have to be created.
QString name()
Return a name for the plugin.
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * loadOptionsWidget(QString _currentFilter)
QString description()
Return a description of what the plugin is doing.
Class for the handling of simple configuration files.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.
Read/Write mesh data from/to files.