53 #ifndef MESHCOMPAREPLUGIN_HH
54 #define MESHCOMPAREPLUGIN_HH
61 #include <OpenFlipper/BasePlugin/TextureInterface.hh>
65 #include <ACG/Scenegraph/PointNode.hh>
67 #include "MeshCompareToolbarWidget.hh"
70 #include "QwtFunctionPlot.hh"
84 #if QT_VERSION >= 0x050000
85 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MeshCompare")
91 void updatedObject(
int _id,
const UpdateType& _type);
92 void setSlotDescription(QString _slotName, QString _slotDescription,
93 QStringList _parameters, QStringList _descriptions);
96 void log(
Logtype _type, QString _message);
97 void log(QString _message);
100 void addToolbox( QString _name , QWidget* _widget ,QIcon* _icon);
106 void pluginExists( QString _pluginName ,
bool& _exists );
114 QString
name() {
return (QString(
"Mesh Compare")); };
115 QString
description( ) {
return (QString(
"Compare two meshes")); };
119 void initializePlugin();
120 void pluginsInitialized();
131 void noguiSupported( ) {} ;
136 QString version() {
return QString(
"1.0"); };
149 void compare(
int _sourceId,
int _targetId,
150 bool _computeDist =
true,
151 bool _computeNormal =
true,
152 bool _computeGauss =
true ,
153 bool _computeMean =
true);
201 QwtFunctionPlot* plot_;
206 #endif //MESHCOMPAREPLUGIN_HH
QString name()
Return a name for the plugin.
Interface class from which all plugins have to be created.
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 lastMaximalGaussCurvatureDeviation()
Get the maximal gauss curvature deviation of the last comparison (-1, if no comparison performed so f...
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.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
double lastMaximalMeanCurvatureDeviation()
Get the maximal mean curvature deviation of the last comparison (-1, if no comparison performed so fa...
Interface for all Plugins which do logging to the logging window of the framework.
Interface to call functions across plugins.
double maxNormalDeviation_
Last maximal computed normal deviation in degree.
double lastMaximalDistance()
Get the maximal distance of the last comparison (-1, if no comparison performed so far) ...
void visualizeData(const std::vector< double > &_data, double _maxValue, ACG::SceneGraph::PointNode *_pnode)
Visualize data.
void slotClear()
Clears the visualization.
double maxGaussCurvatureDev_
Last maximal gauss curvature deviation.
double lastMaximalNormalDeviation()
Get the maximal normal deviation of the last comparison in degree (-1, if no comparison performed so ...
Interface for all Plugins which provide scriptable Functions.
QString description()
Return a description of what the plugin is doing.
Interface class for backup handling.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
void compare(int _sourceId, int _targetId, bool _computeDist=true, bool _computeNormal=true, bool _computeGauss=true, bool _computeMean=true)
Provide texture support for a plugin.
void compareButton()
Triggers comparison of the selected meshes.