2 #include "guimainwindow.h"
6 ui
.spinBox_Point
->setMaximum(grid
->GetNumberOfPoints()-1);
7 ui
.spinBox_Cell
->setMaximum(grid
->GetNumberOfCells()-1);
10 void GuiPick::operate()
12 cout
<<"GuiPick called"<<endl
;
13 if(ui
.radioButton_Point
->isChecked())
15 vtkIdType nodeId
=ui
.spinBox_Point
->value();
16 cout
<<"Pick point "<<nodeId
<<endl
;
17 GuiMainWindow::pointer()->setPickMode(false,false);
18 GuiMainWindow::pointer()->pickPoint(nodeId
);
22 vtkIdType cellId
=ui
.spinBox_Cell
->value();
23 cout
<<"Pick cell "<<cellId
<<endl
;
24 GuiMainWindow::pointer()->setPickMode(false,true);
25 GuiMainWindow::pointer()->pickCell(cellId
);