47 #ifndef MESHCOMPAREPLUGIN_HH 48 #define MESHCOMPAREPLUGIN_HH 55 #include <OpenFlipper/BasePlugin/TextureInterface.hh> 60 #include <ACG/Scenegraph/PointNode.hh> 62 #include "MeshCompareToolbarWidget.hh" 65 #include "QwtFunctionPlot.hh" 80 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MeshCompare")
85 void updatedObject(
int _id,
const UpdateType& _type);
86 void setSlotDescription(QString _slotName, QString _slotDescription,
87 QStringList _parameters, QStringList _descriptions);
90 void log(
Logtype _type, QString _message);
91 void log(QString _message);
94 void addToolbox( QString _name , QWidget* _widget ,QIcon* _icon);
100 void pluginExists( QString _pluginName ,
bool& _exists );
108 QString
name() {
return (QString(
"MeshCompare")); };
109 QString
description( ) {
return (QString(
"Compare two meshes")); };
113 void initializePlugin();
114 void pluginsInitialized();
125 void noguiSupported( ) {} ;
130 QString version() {
return QString(
"1.0"); };
144 void compare(
int _sourceId,
int _targetId,
145 bool _computeDist =
true,
146 bool _computeNormal =
true,
147 bool _computeGauss =
true,
148 bool _computeMean =
true,
149 bool _selection_ =
false);
197 QwtFunctionPlot* plot_;
202 #endif //MESHCOMPAREPLUGIN_HH
double lastMaximalMeanCurvatureDeviation()
Get the maximal mean curvature deviation of the last comparison (-1, if no comparison performed so fa...
Interface class for exporting functions to python.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
double maximalDistance_
Last maximal computed distance.
void slotObjectUpdated(int _identifier, const UpdateType &_type)
Called when an object gets updated.
Logtype
Log types for Message Window.
double lastMaximalNormalDeviation()
Get the maximal normal deviation of the last comparison in degree (-1, if no comparison performed so ...
void visualizeData(const std::vector< double > &_data, double _maxValue, ACG::SceneGraph::PointNode *_pnode)
Visualize data.
Interface for all Plugins which do logging to the logging window of the framework.
void slotClampBox(bool _checked)
If the checkbox is changed to be checked, the values in the labels will be written into the spin boxe...
MeshCompareToolbarWidget * tool_
The toolbar widget of this plugin.
double maxMeanCurvatureDev_
Last maximal mean curvature deviation.
double maxNormalDeviation_
Last maximal computed normal deviation in degree.
void compareButton()
Triggers comparison of the selected meshes.
void slotClear()
Clears the visualization.
Interface to call functions across plugins.
double maxGaussCurvatureDev_
Last maximal gauss curvature deviation.
double lastMaximalGaussCurvatureDeviation()
Get the maximal gauss curvature deviation of the last comparison (-1, if no comparison performed so f...
Interface for all Plugins which provide scriptable Functions.
QString name()
Return a name for the plugin.
double lastMaximalDistance()
Get the maximal distance of the last comparison (-1, if no comparison performed so far) ...
QString description()
Return a description of what the plugin is doing.
Provide texture support for a plugin.
Interface class from which all plugins have to be created.
void compare(int _sourceId, int _targetId, bool _computeDist=true, bool _computeNormal=true, bool _computeGauss=true, bool _computeMean=true, bool _selection_=false)
Interface class for backup handling.