added minimum size to display options
[engrid.git] / guipick.cpp
blob6af1865f03c258feba9c8003c41ee898e20d939e
1 #include "guipick.h"
2 #include "guimainwindow.h"
4 void GuiPick::before()
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);
20 else
22 vtkIdType cellId=ui.spinBox_Cell->value();
23 cout<<"Pick cell "<<cellId<<endl;
24 GuiMainWindow::pointer()->setPickMode(false,true);
25 GuiMainWindow::pointer()->pickCell(cellId);
27 updateActors();