45 #ifndef SUBDIVIDERPLUGIN_HH 46 #define SUBDIVIDERPLUGIN_HH 62 #include "subdividerToolbar.hh" 74 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Subdivider")
78 void updatedObject(
int _id,
const UpdateType& _type);
80 void addPickMode(
const std::string& _mode );
82 void log(
Logtype _type, QString _message);
83 void log(QString _message);
85 void addEmptyObject(
DataType _type,
int& _id );
87 void defineViewMode(QString _mode, QStringList _usedWidgets);
90 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
96 void setSlotDescription(QString _slotName, QString _slotDescription,
97 QStringList _parameters, QStringList _descriptions);
101 void initializePlugin();
103 void pluginsInitialized();
108 void slotSubdivideUniformButton();
110 void slotSimpleSubdivideButton();
132 void subdivide(
int _objectId, QString _algorithm ,
int _steps,
bool _update_points =
true);
147 void simpleSubdivide(
int _objectId, QString _algorithm ,
int _steps,
double _parameter,
bool _update_points =
true);
154 QString
name() {
return (QString(
"Subdivider")); };
164 bool test_trimesh_object(
int _identifier,
BaseObjectData*& _object);
168 QString version() {
return QString(
"1.0"); };
171 #endif //SUBDIVIDERPLUGIN_HH
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
Logtype
Log types for Message Window.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
Interface for all Plugins which do logging to the logging window of the framework.
void noguiSupported()
Make plugin available in no-GUI mode.
void simpleSubdivide(int _objectId, QString _algorithm, int _steps, double _parameter, bool _update_points=true)
Scripting slot for the simple subdivision algorithms.
subdividerToolbarWidget * tool_
Widget for Toolbox.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface class for backup handling.
void subdivide(int _objectId, QString _algorithm, int _steps, bool _update_points=true)
Scripting slot for subdivision.
Interface for all plugins which want to Load or Save files and create Objects.