diff --git a/src/meshlabplugins/meshfilter/refineDialog2.h b/src/meshlabplugins/meshfilter/refineDialog2.h new file mode 100644 index 000000000..ac1055023 --- /dev/null +++ b/src/meshlabplugins/meshfilter/refineDialog2.h @@ -0,0 +1,87 @@ +/**************************************************************************** + * 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/refineDialog2.ui b/src/meshlabplugins/meshfilter/ui/refineDialog2.ui new file mode 100644 index 000000000..db3b41510 --- /dev/null +++ b/src/meshlabplugins/meshfilter/ui/refineDialog2.ui @@ -0,0 +1,144 @@ + + + + + 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 + + + + +