55#include <OpenFlipper/BasePlugin/INIInterface.hh>
59#ifdef 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);
100 void fileOpened(
int ) {}
102 void loadIniFileLast(
INIFile& _ini,
int _id);
103 void saveIniFile(
INIFile& _ini,
int _id);
105 void initializePlugin();
107 void noguiSupported( ) {}
114 return (QString(
"FileOpenVolumeMesh"));
118 return (QString(tr(
"Load/Save OpenVolumeMeshes")));
131 int loadObject(QString _filename);
133 bool saveObject(
int _id, QString _filename);
136 return QString(
"1.0");
141 template <
typename MeshT>
142 void loadMesh(
const char* _filename,
MeshT& _mesh,
bool _comp,
bool _topCheck);
144 template <
typename MeshT>
145 void saveMesh(
const char* _filename,
MeshT& _mesh,
bool _comp);
149 QWidget* loadOptions_;
150 QWidget* saveOptions_;
152 QComboBox* typeCheck_;
154 QCheckBox* loadCompMode_;
155 QCheckBox* loadTopCheck_;
156 QCheckBox* saveCompMode_;
161#if defined(INCLUDE_TEMPLATES) && !defined(FILEOPENVOLUMEMESHT_CC)
162#include "FileOpenVolumeMeshT_impl.hh"
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Interface class for file handling.
QWidget * loadOptionsWidget(QString _currentFilter)
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QWidget * saveOptionsWidget(QString _currentFilter)
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
Class for the handling of simple configuration files.
Interface class for Plugins which have to store information in ini files.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which do logging to the logging window of the framework.
Read/Write mesh data from/to files.
Interface for all Plugins which provide scriptable Functions.