51 #ifndef SUBDIVIDERPLUGIN_HH 52 #define SUBDIVIDERPLUGIN_HH 68 #include "subdividerToolbar.hh" 80 #if QT_VERSION >= 0x050000 81 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Subdivider")
86 void updatedObject(
int _id,
const UpdateType& _type);
88 void addPickMode(
const std::string& _mode );
90 void log(
Logtype _type, QString _message);
91 void log(QString _message);
93 void addEmptyObject(
DataType _type,
int& _id );
95 void defineViewMode(QString _mode, QStringList _usedWidgets);
98 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
104 void setSlotDescription(QString _slotName, QString _slotDescription,
105 QStringList _parameters, QStringList _descriptions);
109 void initializePlugin();
111 void pluginsInitialized();
116 void slotSubdivideUniformButton();
118 void slotSimpleSubdivideButton();
140 void subdivide(
int _objectId, QString _algorithm ,
int _steps,
bool _update_points =
true);
155 void simpleSubdivide(
int _objectId, QString _algorithm ,
int _steps,
double _parameter,
bool _update_points =
true);
162 QString
name() {
return (QString(
"Subdivider")); };
172 bool test_trimesh_object(
int _identifier,
BaseObjectData*& _object);
176 QString version() {
return QString(
"1.0"); };
179 #endif //SUBDIVIDERPLUGIN_HH subdividerToolbarWidget * tool_
Widget for Toolbox.
QString description()
Return a description of what the plugin is doing.
void noguiSupported()
Make plugin available in no-GUI mode.
void subdivide(int _objectId, QString _algorithm, int _steps, bool _update_points=true)
Scripting slot for subdivision.
Logtype
Log types for Message Window.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
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.
Interface for all plugins which want to Load or Save files and create Objects.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void simpleSubdivide(int _objectId, QString _algorithm, int _steps, double _parameter, bool _update_points=true)
Scripting slot for the simple subdivision algorithms.
Interface class for backup handling.
QString name()
Return a name for the plugin.