51#ifndef PROPERTYVISPLUGIN_HH
52#define PROPERTYVISPLUGIN_HH
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;
108 #if QT_VERSION_MAJOR < 6
110 void getScriptingEngine( QScriptEngine*& _engine )
override;
116 void slotObjectUpdated(
int _identifier,
const UpdateType& _type )
override;
117 void slotObjectPropertiesChanged(
int _identifier)
override;
118 void slotAllCleared()
override;
121 void objectDeleted(
int _id )
override;
124 void initializePlugin()
override;
125 void pluginsInitialized()
override;
128 void slotMeshChanged(
int _index = -1);
129 void slotVisualize();
132 void slotMouseEvent( QMouseEvent* _event )
override;
135 void slotPickModeChanged(
const std::string& _mode)
override;
150 void slotLog(QString _message){ emit log(_message); }
162 void slotClear(
int _id,
const QString& _propname );
164 #if QT_VERSION_MAJOR < 6
165 QScriptValue getPropertyVisualizer(
int _id,
const QString& _propname );
174 QString
name()
override {
return (QString(
"Property Visualization")); }
175 QString
description( )
override {
return (QString(
"Computes the PropertyVis of the the active Mesh")); }
196#if defined(INCLUDE_TEMPLATES) && !defined(PROPERTYVISPLUGIN_CC)
197#define PROPERTYVISPLUGIN_TEMPLATES
198#include "PropertyVisPluginT_impl.hh"
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Keyboard Event Interface.
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 receiving mouse events.
Allow access to picking functions.
void propertySelectionChanged()
Called when user selects a property.
void slotClear(int _id, const QString &_propname)
void setNewPropertyModel(int id)
Exchanges the PropertyModel after the user selected a different object.
QString name() override
Return a name for the plugin.
QString description() override
Return a description of what the plugin is doing.
void slotDuplicateProperty()
Duplicates the selected properties.
void slotRemoveProperty()
Removes the selected properties.
void slotLog(Logtype _type, QString _message)
Receives log messages from PropertyModels and emits them.
void slotVisualizeProperty(int _id, const QString &_propname)
Interface for all Plugins which provide scriptable Functions.