diff --git a/src/meshlabplugins/meshfilter/detacherDialog.h b/src/meshlabplugins/meshfilter/detacherDialog.h deleted file mode 100644 index 839ed6203..000000000 --- a/src/meshlabplugins/meshfilter/detacherDialog.h +++ /dev/null @@ -1,108 +0,0 @@ -#ifndef DETACHER_DIALOG_H -#define DETACHER_DIALOG_H - -// for options on decimator -#include -#include "ui_detacherDialog.h" -#include - -class DetacherDialog : public QDialog, Ui::DetacherDialog { - -Q_OBJECT - -public: - DetacherDialog() : QDialog() - { - setupUi( this ); - threshold = 0.00; - diagonal_percentual = 0.00; - diagonale= 0.00; - perc = 0.0f; - selected=false; - } - -public: - - inline float getThreshold() - { - return threshold; - } - - inline bool getSelected() - { - return selected; - } - - void setDiagonale(float diag) - { - diagonale = diag; - thresholdSB->setMaximum(diag); - } - - void setHistogram(vcg::Histogram *hi) - { - histo = hi; - } - - void aggiornaPercentualeDiagonale() - { - diagonal_percentual = (threshold / diagonale) * 100; - percdiag->setValue(diagonal_percentual); - } - - void aggiornaTrashold() - { - threshold = (diagonal_percentual * diagonale) /100; - thresholdSB->setValue(threshold); - } - - void aggiornaPercentile() - { - threshold = histo->Percentile(perc); - thresholdSB->setValue(threshold); - diagonal_percentual = (threshold / diagonale) * 100; - percdiag->setValue(diagonal_percentual); - } - -public slots: - - void on_thresholdSB_valueChanged(double threshold) - { - if(threshold <= this->diagonale) - { - this->threshold = threshold; - aggiornaPercentualeDiagonale(); - } - } - - void on_percdiag_valueChanged(double pd) - { - diagonal_percentual = pd; - aggiornaTrashold(); - } - - -void on_percentileSB_valueChanged(int pd) -{ - perc = 1.0f - (pd * 0.01); - aggiornaPercentile(); -} - - void on_selctedCB_stateChanged(int pd) { - - if (pd == Qt::Checked) - selected= true; - else - selected = false; - } - -private: - double threshold; - double diagonal_percentual; - double diagonale; - vcg::Histogram *histo; - float perc; - bool selected; -}; - -#endif diff --git a/src/meshlabplugins/meshfilter/refineDialog.h b/src/meshlabplugins/meshfilter/refineDialog.h deleted file mode 100644 index 1cc740b2f..000000000 --- a/src/meshlabplugins/meshfilter/refineDialog.h +++ /dev/null @@ -1,88 +0,0 @@ -/**************************************************************************** - * VCGLib o o * - * Visual and Computer Graphics Library o o * - * _ O _ * - * Copyright(C) 2004 \/)\/ * - * Visual Computing Lab /\/| * - * ISTI - Italian National Research Council | * - * \ * - * All rights reserved. * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * for more details. * - * * - ****************************************************************************/ -/**************************************************************************** - History - -$Log$ -Revision 1.2 2006/01/31 14:46:39 mariolatronico -added license and log variable - - -*/ - - - -#ifndef REFINE_DIALOG_H -#define REFINE_DIALOG_H - -// for options on refine and decimator -#include -#include "ui_refineDialog.h" - -class RefineDialog : public QDialog, Ui::Dialog { - -Q_OBJECT - -public: - RefineDialog() : QDialog() - { - setupUi( this ); - threshold = 0.00; - selected = false; - } -public slots: - -void on_refineSelectedCB_stateChanged(int selected) { - - if (selected == Qt::Checked) - this->selected = true; - else - this->selected = false; - - -} - - void on_thresholdSB_valueChanged(double threshold) { - this->threshold = threshold; - } - -public: - - inline double getThreshold() { - return threshold; - } - - inline bool isSelected() { - return selected; - } - - -private: - // affect only selected vertices ? - bool selected; - // threshold value for refine - double threshold; - -}; - -#endif //REFINE_DIALOG_H diff --git a/src/meshlabplugins/meshfilter/refineDialog2.h b/src/meshlabplugins/meshfilter/refineDialog2.h deleted file mode 100644 index ac1055023..000000000 --- a/src/meshlabplugins/meshfilter/refineDialog2.h +++ /dev/null @@ -1,87 +0,0 @@ -/**************************************************************************** - * VCGLib o o * - * Visual and Computer Graphics Library o o * - * _ O _ * - * Copyright(C) 2004 \/)\/ * - * Visual Computing Lab /\/| * - * ISTI - Italian National Research Council | * - * \ * - * All rights reserved. * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * for more details. * - * * - ****************************************************************************/ -/**************************************************************************** - History - -$Log$ -Revision 1.1 2006/02/05 11:22:01 mariolatronico -different implementation of refine dialog, includes QEdgeLength widget - -Revision 1.2 2006/01/31 14:46:39 mariolatronico -added license and log variable - - -*/ - - -#ifndef REFINE_DIALOG2_H -#define REFINE_DIALOG2_H - -// for options on refine and decimator -#include -#include "ui_refineDialog2.h" - -class RefineDialog : public QDialog, Ui::Dialog { - -Q_OBJECT - -public: - RefineDialog() : QDialog() - { - setupUi( this ); - threshold = 0.00; - selected = false; - } -public slots: - -void on_refineSelectedCB_stateChanged(int selected) { - - if (selected == Qt::Checked) - this->selected = true; - else - this->selected = false; - -} - -public: - - inline double getThreshold() { - return edgeLength->getAbsoluteValue(); - } - - inline bool isSelected() { - return selected; - } - - inline void setDiagonal(float diag) { - edgeLength->setDiagonal( diag ); - } -private: - // affect only selected vertices ? - bool selected; - // threshold value for refine - double threshold; - -}; - -#endif //REFINE_DIALOG_H diff --git a/src/meshlabplugins/meshfilter/ui/detacherDialog.ui b/src/meshlabplugins/meshfilter/ui/detacherDialog.ui deleted file mode 100644 index b2bd95f1e..000000000 --- a/src/meshlabplugins/meshfilter/ui/detacherDialog.ui +++ /dev/null @@ -1,226 +0,0 @@ - - - - - DetacherDialog - - - - 0 - 0 - 205 - 178 - - - - - 0 - 0 - 0 - 0 - - - - - 16 - 16 - - - - Detacher - - - ..\..\..\meshlab\images\eye128.png - - - - 8 - - - 6 - - - - - affect only selected faces - - - - - - - 0 - - - 6 - - - - - <html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-weight:400; font-style:normal; text-decoration:none;"><pre style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:Courier New,courier;">Percentile</span></pre></body></html> - - - - - - - Qt::Horizontal - - - - 21 - 20 - - - - - - - - 100 - - - 0 - - - - - - - - - 0 - - - 6 - - - - - <html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Diagonal percentage</span></p></body></html> - - - - - - - Qt::Horizontal - - - - 31 - 20 - - - - - - - - 100 - - - - - - - - - 0 - - - 6 - - - - - Threshold - - - thresholdSB - - - - - - - 3 - - - 99.999 - - - 0.001 - - - - - - - - - 0 - - - 6 - - - - - OK - - - - - - - Cancel - - - - - - - - - - thresholdSB - okButton - cancelButton - - - - - okButton - clicked() - DetacherDialog - accept() - - - 87 - 57 - - - 170 - 67 - - - - - cancelButton - clicked() - DetacherDialog - reject() - - - 165 - 57 - - - 175 - 67 - - - - - diff --git a/src/meshlabplugins/meshfilter/ui/refineDialog.ui b/src/meshlabplugins/meshfilter/ui/refineDialog.ui deleted file mode 100644 index 9b214cc16..000000000 --- a/src/meshlabplugins/meshfilter/ui/refineDialog.ui +++ /dev/null @@ -1,166 +0,0 @@ - - - - - Dialog - - - - 0 - 0 - 275 - 147 - - - - Refine - - - ..\..\..\meshlab\images\eye128.png - - - - 9 - - - 6 - - - - - 0 - - - 6 - - - - - 0 - - - 6 - - - - - Threshold - - - thresholdSB - - - - - - - 3 - - - 99.999 - - - 0.001 - - - - - - - - - Affect Only selected vertices - - - - - - - - - Qt::Vertical - - - - 20 - 121 - - - - - - - - 0 - - - 6 - - - - - Qt::Horizontal - - - - 131 - 31 - - - - - - - - OK - - - - - - - Cancel - - - - - - - - - - - - okButton - clicked() - Dialog - accept() - - - 278 - 253 - - - 96 - 254 - - - - - cancelButton - clicked() - Dialog - reject() - - - 369 - 253 - - - 179 - 282 - - - - - diff --git a/src/meshlabplugins/meshfilter/ui/refineDialog2.ui b/src/meshlabplugins/meshfilter/ui/refineDialog2.ui deleted file mode 100644 index db3b41510..000000000 --- a/src/meshlabplugins/meshfilter/ui/refineDialog2.ui +++ /dev/null @@ -1,144 +0,0 @@ - - - - - Dialog - - - - 0 - 0 - 299 - 221 - - - - Refine - - - ..\..\..\meshlab\images\eye128.png - - - - 9 - - - 6 - - - - - Threshold - - - - 9 - - - 6 - - - - - Affect Only selected vertices - - - - - - - Edge Length widget - - - Edge Length widget set a length based on diagonal values. - - - - - - - - - - 0 - - - 6 - - - - - Qt::Horizontal - - - - 131 - 31 - - - - - - - - OK - - - - - - - Cancel - - - - - - - - - - - QEdgeLength - -
QEdgeLength.h
- 0 - -
-
- - - - okButton - clicked() - Dialog - accept() - - - 278 - 253 - - - 96 - 254 - - - - - cancelButton - clicked() - Dialog - reject() - - - 369 - 253 - - - 179 - 282 - - - - -