45#ifndef SUBDIVIDERPLUGIN_HH
46#define SUBDIVIDERPLUGIN_HH
62#include "subdividerToolbar.hh"
75 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Subdivider")
79 void updatedObject(
int _id,
const UpdateType& _type);
81 void addPickMode(
const std::string& _mode );
83 void log(
Logtype _type, QString _message);
84 void log(QString _message);
86 void addEmptyObject(
DataType _type,
int& _id );
88 void defineViewMode(QString _mode, QStringList _usedWidgets);
91 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
97 void setSlotDescription(QString _slotName, QString _slotDescription,
98 QStringList _parameters, QStringList _descriptions);
102 void initializePlugin();
104 void pluginsInitialized();
109 void slotSubdivideUniformButton();
111 void slotSimpleSubdivideButton();
133 void subdivide(
int _objectId, QString _algorithm ,
int _steps,
bool _update_points =
true);
148 void simpleSubdivide(
int _objectId, QString _algorithm ,
int _steps,
double _parameter,
bool _update_points =
true);
155 QString
name() {
return (QString(
"Subdivider")); };
165 bool test_trimesh_object(
int _identifier,
BaseObjectData*& _object);
169 QString version() {
return QString(
"1.0"); };
Logtype
Log types for Message Window.
Interface class for backup handling.
Interface class from which all plugins have to be created.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for exporting functions to python.
Interface for all Plugins which provide scriptable Functions.
void noguiSupported()
Make plugin available in no-GUI mode.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
void subdivide(int _objectId, QString _algorithm, int _steps, bool _update_points=true)
Scripting slot for subdivision.
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.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.