56 #ifndef SMOOTHERPLUGIN_HH
57 #define SMOOTHERPLUGIN_HH
77 #include "SmootherToolbarWidget.hh"
94 #if QT_VERSION >= 0x050000
95 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Smoother")
105 void setSlotDescription(QString _slotName, QString _slotDescription,
106 QStringList _parameters, QStringList _descriptions);
109 void log(
Logtype _type, QString _message);
110 void log(QString _message);
113 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
119 void scriptInfo(QString _functionName);
130 QString
name(){
return (QString(
"Smoother")); };
133 QString
description() {
return (QString(
"Mesh Smoothing ...")); };
137 void initializePlugin();
172 void smooth(
int _objectId ,
int _iterations , QString _direction , QString _continuity,
double _maxDistance = -1.0,
bool _respectFeatures =
true);
177 QString version() {
return QString(
"1.0"); };
185 #endif //SMOOTHERPLUGIN_HH
Interface class from which all plugins have to be created.
void noguiSupported()
Tell system that this plugin runs without ui.
Logtype
Log types for Message Window.
QString description()
Description of the Plugin.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
Interface for all Plugins which do logging to the logging window of the framework.
QString name()
Name of the Plugin.
Interface for all Plugins which provide scriptable Functions.
~SmootherPlugin()
default destructor
void smooth(int _objectId, int _iterations, QString _direction, QString _continuity, double _maxDistance=-1.0, bool _respectFeatures=true)
smooth an object
Interface class for backup handling.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
SmootherToolbarWidget * tool_
Widget for Toolbox.
void pluginsInitialized()
Set the scripting slot descriptions.
void slot_smooth()
Slot connected to the smooth button in the toolbox.