65 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-VolumeMeshConvert")
70 void log(
Logtype _type, QString _message)
override;
71 void log(QString _message)
override;
74 void addToolbar(QToolBar* _toolbar)
override;
75 void getToolBar(QString _name, QToolBar*& _toolbar)
override;
78 void addEmptyObject(
DataType _type,
int& _id)
override;
81 void updatedObject(
int,
const UpdateType& _type)
override;
84 void setSlotDescription(QString _slotName, QString _slotDescription,
85 QStringList _parameters, QStringList _descriptions)
override;
91 QString
name()
override {
return (QString(
"VolumeMeshConvert")); }
92 QString
description()
override {
return (QString(
"Convert PolyhedralMesh to TetrahedralMesh and HexahedralMesh and vice versa")); }
98 void pluginsInitialized()
override;
105 QToolBar* toolbar_ =
nullptr;
106 QActionGroup* grp_ =
nullptr;
107 QAction* actionToHex_ =
nullptr;
108 QAction* actionToTet_ =
nullptr;
109 QAction* actionToPoly_ =
nullptr;
120 int convertToHexMesh(
int _id);
121 int convertToTetMesh(
int _id);
122 int convertToPolyhedralMesh(
int _id);
124 QString version()
override {
return QString(
"1.0"); }
QString description() override
Return a description of what the plugin is doing.
void handleQAction(QAction *)
convert Converts polyhedralmesh to hex/tet mesh and vice versa depending on the Action that was calle...
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
QString name() override
Return a name for the plugin.
void initializePlugin() override
BaseInterface.
void noguiSupported() override
Tell system that this plugin runs without ui.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface for all plugins which want to Load or Save files and create Objects.