47 #ifndef MESHCOMPAREPLUGIN_HH 48 #define MESHCOMPAREPLUGIN_HH 55 #include <OpenFlipper/BasePlugin/TextureInterface.hh> 59 #include <ACG/Scenegraph/PointNode.hh> 61 #include "MeshCompareToolbarWidget.hh" 64 #include "QwtFunctionPlot.hh" 78 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MeshCompare")
83 void updatedObject(
int _id,
const UpdateType& _type);
84 void setSlotDescription(QString _slotName, QString _slotDescription,
85 QStringList _parameters, QStringList _descriptions);
88 void log(
Logtype _type, QString _message);
89 void log(QString _message);
92 void addToolbox( QString _name , QWidget* _widget ,QIcon* _icon);
98 void pluginExists( QString _pluginName ,
bool& _exists );
106 QString
name() {
return (QString(
"Mesh Compare")); };
107 QString
description( ) {
return (QString(
"Compare two meshes")); };
111 void initializePlugin();
112 void pluginsInitialized();
123 void noguiSupported( ) {} ;
128 QString version() {
return QString(
"1.0"); };
141 void compare(
int _sourceId,
int _targetId,
142 bool _computeDist =
true,
143 bool _computeNormal =
true,
144 bool _computeGauss =
true ,
145 bool _computeMean =
true);
193 QwtFunctionPlot* plot_;
198 #endif //MESHCOMPAREPLUGIN_HH
Interface to call functions across plugins.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void slotObjectUpdated(int _identifier, const UpdateType &_type)
Called when an object gets updated.
Logtype
Log types for Message Window.
QString description()
Return a description of what the plugin is doing.
void compare(int _sourceId, int _targetId, bool _computeDist=true, bool _computeNormal=true, bool _computeGauss=true, bool _computeMean=true)
Interface for all Plugins which provide scriptable Functions.
Provide texture support for a plugin.
double maxMeanCurvatureDev_
Last maximal mean curvature deviation.
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.
double lastMaximalGaussCurvatureDeviation()
Get the maximal gauss curvature deviation of the last comparison (-1, if no comparison performed so f...
double maxNormalDeviation_
Last maximal computed normal deviation in degree.
double maximalDistance_
Last maximal computed distance.
double lastMaximalNormalDeviation()
Get the maximal normal deviation of the last comparison in degree (-1, if no comparison performed so ...
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
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.
Interface class from which all plugins have to be created.
void slotClear()
Clears the visualization.
void compareButton()
Triggers comparison of the selected meshes.
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) ...
Interface class for backup handling.
double maxGaussCurvatureDev_
Last maximal gauss curvature deviation.
double lastMaximalMeanCurvatureDeviation()
Get the maximal mean curvature deviation of the last comparison (-1, if no comparison performed so fa...