50 #ifndef ADVANCEDREMESHERPLUGIN_HH 51 #define ADVANCEDREMESHERPLUGIN_HH 64 #include "RemesherToolbox.hh" 65 #include "ProgressEmitter.hh" 80 #if QT_VERSION >= 0x050000 81 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Remesher")
88 void updatedObject(
int _id,
const UpdateType& _type);
90 void setSlotDescription(QString _slotName, QString _slotDescription,
91 QStringList _parameters, QStringList _descriptions);
94 void log(
Logtype _type, QString _message );
95 void log( QString _message );
98 void pluginExists( QString _pluginName ,
bool& _exists ) ;
99 void functionExists( QString _pluginName , QString _functionName ,
bool& _exists );
102 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
105 void startJob( QString _jobId, QString _description,
int _min,
int _max,
bool _blocking =
false);
106 void setJobState(QString _jobId,
int _value);
107 void setJobName(QString _jobId, QString _name);
108 void finishJob(QString _jobId);
109 void setJobDescription(QString _jobId, QString _description);
115 void scriptInfo(QString _functionName);
129 QString
name() {
return (QString(
"Remesher")); };
130 QString
description( ) {
return (QString(
"Remeshing plugin with isotropic and adaptive remesher.")); };
140 enum RemeshingOperation { REMESH_UNIFORM, REMESH_ADAPTIVE };
142 RemeshingOperation operation_;
148 void adaptiveRemeshingButtonClicked();
150 void adaptiveRemeshing();
154 void uniformRemeshingButtonClicked();
156 void uniformRemeshing();
160 void threadFinished(QString _jobId);
167 void slotAdaptiveRemeshing(
int _objectId,
169 double _min_edge_length,
170 double _max_edge_length,
172 bool _use_projection =
true,
173 bool _vertex_selection =
true);
175 void slotUniformRemeshing(
int _objectId,
178 unsigned int _area_iters,
179 bool _use_projection =
true,
180 bool _vertex_selection =
true);
186 void adaptiveRemeshing(
int _objectId,
188 double _min_edge_length,
189 double _max_edge_length,
191 bool _use_projection =
true);
193 void adaptiveRemeshingFaceSelection(
int _objectId,
195 double _min_edge_length,
196 double _max_edge_length,
198 bool _use_projection =
true);
200 void uniformRemeshing(
int _objectId,
203 unsigned int _area_iters,
204 bool _use_projection =
true);
206 void uniformRemeshingFaceSelection(
int _objectId,
209 unsigned int _area_iters,
210 bool _use_projection =
true);
213 QString version() {
return QString(
"1.0"); };
218 #endif //ADVANCEDREMESHERPLUGIN_HH void computeInitValues()
Compute mean edge length and set values.
void pluginsInitialized()
Initialize the plugin.
Logtype
Log types for Message Window.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface class for Thread handling.
QString name()
Return a name for the plugin.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
Interface for all Plugins which do logging to the logging window of the framework.
void initializePlugin()
init the Toolbox
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
QString description()
Return a description of what the plugin is doing.
Interface to call functions across plugins.
Interface class for backup handling.