GuiPick class mostly done.
[engrid.git] / guipick.cpp
blob4cd41fa7c8948df9fe6f2800f3cc5ce379e53649
1 #include "guipick.h"
2 #include "guimainwindow.h"
4 void GuiPick::before()
6 ui.spinBox_Point->setMaximum(grid->GetNumberOfPoints());
7 ui.spinBox_Cell->setMaximum(grid->GetNumberOfCells());
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()->pickPoint(nodeId);
19 else
21 vtkIdType cellId=ui.spinBox_Cell->value();
22 cout<<"Pick cell "<<cellId<<endl;
23 GuiMainWindow::pointer()->pickCell(cellId);
25 updateActors();