43 #ifndef ADVANCEDREMESHERPLUGIN_HH 44 #define ADVANCEDREMESHERPLUGIN_HH 57 #include "RemesherToolbox.hh" 58 #include "ProgressEmitter.hh" 73 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Remesher")
79 void updatedObject(
int _id,
const UpdateType& _type);
81 void setSlotDescription(QString _slotName, QString _slotDescription,
82 QStringList _parameters, QStringList _descriptions);
85 void log(
Logtype _type, QString _message );
86 void log( QString _message );
89 void pluginExists( QString _pluginName ,
bool& _exists ) ;
90 void functionExists( QString _pluginName , QString _functionName ,
bool& _exists );
93 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
96 void startJob( QString _jobId, QString _description,
int _min,
int _max,
bool _blocking =
false);
97 void setJobState(QString _jobId,
int _value);
98 void setJobName(QString _jobId, QString _name);
99 void finishJob(QString _jobId);
100 void setJobDescription(QString _jobId, QString _description);
106 void scriptInfo(QString _functionName);
120 QString
name() {
return (QString(
"Remesher")); };
121 QString
description( ) {
return (QString(
"Remeshing plugin with isotropic and adaptive remesher.")); };
131 enum RemeshingOperation { REMESH_UNIFORM, REMESH_ADAPTIVE };
133 RemeshingOperation operation_;
139 void adaptiveRemeshingButtonClicked();
141 void adaptiveRemeshing();
145 void uniformRemeshingButtonClicked();
147 void uniformRemeshing();
151 void threadFinished(QString _jobId);
158 void slotAdaptiveRemeshing(
int _objectId,
160 double _min_edge_length,
161 double _max_edge_length,
163 bool _use_projection =
true,
164 bool _vertex_selection =
true);
166 void slotUniformRemeshing(
int _objectId,
169 unsigned int _area_iters,
170 bool _use_projection =
true,
171 bool _vertex_selection =
true);
177 void adaptiveRemeshing(
int _objectId,
179 double _min_edge_length,
180 double _max_edge_length,
182 bool _use_projection =
true);
184 void adaptiveRemeshingFaceSelection(
int _objectId,
186 double _min_edge_length,
187 double _max_edge_length,
189 bool _use_projection =
true);
191 void uniformRemeshing(
int _objectId,
194 unsigned int _area_iters,
195 bool _use_projection =
true);
197 void uniformRemeshingFaceSelection(
int _objectId,
200 unsigned int _area_iters,
201 bool _use_projection =
true);
204 QString version() {
return QString(
"1.0"); };
209 #endif //ADVANCEDREMESHERPLUGIN_HH
Interface to call functions across plugins.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
Interface class for Thread handling.
QString name()
Return a name for the plugin.
Logtype
Log types for Message Window.
Interface for all Plugins which provide scriptable Functions.
Interface for all Plugins which do logging to the logging window of the framework.
void computeInitValues()
Compute mean edge length and set values.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
QString description()
Return a description of what the plugin is doing.
void initializePlugin()
init the Toolbox
Interface class from which all plugins have to be created.
void pluginsInitialized()
Initialize the plugin.
Interface class for backup handling.