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); }
152 void slotVisualizeProperty(
int _id,
const QString& _propname );
153 QScriptValue getPropertyVisualizer(
int _id,
const QString& _propname );
161 QString
name()
override {
return (QString(
"Property Visualization")); }
162 QString
description( )
override {
return (QString(
"Computes the PropertyVis of the the active Mesh")); }
181 #if defined(INCLUDE_TEMPLATES) && !defined(PROPERTYVISPLUGIN_CC) 182 #define PROPERTYVISPLUGIN_TEMPLATES 183 #include "PropertyVisPluginT_impl.hh" 186 #endif // PROPERTYVISPLUGIN_HH defined
void setNewPropertyModel(int id)
Exchanges the PropertyModel after the user selected a different object.
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
void slotDuplicateProperty()
Duplicates the selected properties.
Interface for all Plugins which provide scriptable Functions.
QString name() override
Return a name for the plugin.
void slotLog(Logtype _type, QString _message)
Receives log messages from PropertyModels and emits them.
Interface class for receiving mouse events.
void slotRemoveProperty()
Removes the selected properties.
Interface for all Plugins which do logging to the logging window of the framework.
QString description() override
Return a description of what the plugin is doing.
Allow access to picking functions.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
void propertySelectionChanged()
Called when user selects a property.
Interface class from which all plugins have to be created.
Keyboard Event Interface.