2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 // + This file is part of enGrid. +
6 // + Copyright 2008,2009 Oliver Gloth +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24 #include "deletepickedpoint.h"
29 #include "guimainwindow.h"
30 #include "egvtkobject.h"
31 #include "geometrytools.h"
32 using namespace GeometryTools
;
34 DeletePickedPoint::DeletePickedPoint() : SurfaceOperation()
41 void DeletePickedPoint::operate()
43 vtkIdType nodeId
= GuiMainWindow::pointer()->getPickedPoint();
44 cout
<<"You picked "<<nodeId
<<endl
;
51 QVector
<vtkIdType
> PSP
;
53 UpdatePotentialSnapPoints(true);
56 msgBox
.setText("Delete point?");
57 msgBox
.setStandardButtons(QMessageBox::Yes
| QMessageBox::No
);
58 switch (msgBox
.exec()) {
59 case QMessageBox::Yes
:
60 cout
<<"yes was clicked"<<endl
;
61 // DeletePoint(nodeId,N_newpoints,N_newcells);
64 cout
<<"no was clicked"<<endl
;
66 cout
<<"=== Topological neighbours ==="<<endl
;
67 PSP
= getPotentialSnapPoints(id_node
);
68 cout
<<"id_node="<<id_node
<<" PSP="<<PSP
<<endl
;
70 cout
<<"=== NODE TYPE ==="<<endl
;
71 type
= getNodeType(id_node
);
72 cout
<<"id_node="<<id_node
<<" is of type="<<(int)type
<<"="<<VertexType2Str(type
)<<endl
;
76 // should never be reached