51 #ifndef PROPERTYVISPLUGIN_HH 52 #define PROPERTYVISPLUGIN_HH 61 #include <QTextStream> 74 #include "Toolbars/PropertyVisToolbar.hh" 75 #include "Models/ObjectListItemModel.hh" 77 #include "Models/PropertyModel.hh" 93 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-PropertyVis")
96 void updateView()
override;
97 void updatedObject(
int,
const UpdateType&)
override;
99 void log(
Logtype, QString)
override;
100 void log(QString)
override;
103 void addToolbox( QString _name , QWidget* _widget ,QIcon* _icon)
override;
106 void addHiddenPickMode(
const std::string& _mode )
override;
109 void getScriptingEngine( QScriptEngine*& _engine )
override;
114 void slotObjectUpdated(
int _identifier,
const UpdateType& _type )
override;
115 void slotObjectPropertiesChanged(
int _identifier)
override;
116 void slotAllCleared()
override;
119 void objectDeleted(
int _id )
override;
122 void initializePlugin()
override;
123 void pluginsInitialized()
override;
126 void slotMeshChanged(
int _index = -1);
127 void slotVisualize();
130 void slotMouseEvent( QMouseEvent* _event )
override;
133 void slotPickModeChanged(
const std::string& _mode)
override;
148 void slotLog(QString _message){ emit log(_message); }
160 void slotClear(
int _id,
const QString& _propname );
162 QScriptValue getPropertyVisualizer(
int _id,
const QString& _propname );
170 QString
name()
override {
return (QString(
"Property Visualization")); }
171 QString
description( )
override {
return (QString(
"Computes the PropertyVis of the the active Mesh")); }
190 #if defined(INCLUDE_TEMPLATES) && !defined(PROPERTYVISPLUGIN_CC) 191 #define PROPERTYVISPLUGIN_TEMPLATES 192 #include "PropertyVisPluginT_impl.hh" 195 #endif // PROPERTYVISPLUGIN_HH defined
void slotClear(int _id, const QString &_propname)
Interface class for receiving mouse events.
void propertySelectionChanged()
Called when user selects a property.
Logtype
Log types for Message Window.
void slotVisualizeProperty(int _id, const QString &_propname)
Interface for all Plugins which do logging to the logging window of the framework.
QString name() override
Return a name for the plugin.
void setNewPropertyModel(int id)
Exchanges the PropertyModel after the user selected a different object.
void slotLog(Logtype _type, QString _message)
Receives log messages from PropertyModels and emits them.
void slotRemoveProperty()
Removes the selected properties.
Keyboard Event Interface.
void slotDuplicateProperty()
Duplicates the selected properties.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Allow access to picking functions.
Interface for all plugins which want to Load or Save files and create Objects.
QString description() override
Return a description of what the plugin is doing.