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 void slotClampBox(bool _checked)
If the checkbox is changed to be checked, the values in the labels will be written into the spin boxe...
double maximalDistance_
Last maximal computed distance.
void slotClear()
Clears the visualization.
Logtype
Log types for Message Window.
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...
void compareButton()
Triggers comparison of the selected meshes.
void visualizeData(const std::vector< double > &_data, double _maxValue, ACG::SceneGraph::PointNode *_pnode)
Visualize data.
QString description()
Return a description of what the plugin is doing.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
Interface for all Plugins which do logging to the logging window of the framework.
double lastMaximalMeanCurvatureDeviation()
Get the maximal mean curvature deviation of the last comparison (-1, if no comparison performed so fa...
Provide texture support for a plugin.
void slotObjectUpdated(int _identifier, const UpdateType &_type)
Called when an object gets updated.
double maxNormalDeviation_
Last maximal computed normal deviation in degree.
MeshCompareToolbarWidget * tool_
The toolbar widget of this plugin.
double lastMaximalNormalDeviation()
Get the maximal normal deviation of the last comparison in degree (-1, if no comparison performed so ...
QString name()
Return a name for the plugin.
double maxMeanCurvatureDev_
Last maximal mean curvature deviation.
double lastMaximalDistance()
Get the maximal distance of the last comparison (-1, if no comparison performed so far) ...
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void compare(int _sourceId, int _targetId, bool _computeDist=true, bool _computeNormal=true, bool _computeGauss=true, bool _computeMean=true)
Interface to call functions across plugins.
Interface class for backup handling.