Skip to content

Commit

Permalink
select_points_testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alonsoJASL committed Nov 20, 2024
1 parent c28e217 commit 570b0a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void FourChamberGuidePointsView::CreateQtPartControl(QWidget *parent) {

vtkSmartPointer<vtkGenericOpenGLRenderWindow> renderWindow =
vtkSmartPointer<vtkGenericOpenGLRenderWindow>::New();
m_Controls.widget_1->renderWindow(renderWindow);
m_Controls.widget_1->SetRenderWindow(renderWindow);
m_Controls.widget_1->renderWindow()->AddRenderer(renderer);

//Setup keyboard interactor
Expand All @@ -153,6 +153,7 @@ void FourChamberGuidePointsView::CreateQtPartControl(QWidget *parent) {

m_Controls.button_save->setEnabled(false);
Help(true);
pluginLoaded = true;
}

void FourChamberGuidePointsView::SetFocus() {
Expand Down Expand Up @@ -348,14 +349,18 @@ std::string FourChamberGuidePointsView::GetShortcuts(){
}

void FourChamberGuidePointsView::LeftAtriumReactToToggle() {
if (m_Controls.radio_load_la->isChecked()) {
if (pluginLoaded && m_Controls.radio_load_la->isChecked()) {
QMessageBox::information(NULL, "Info", "Left Atrium selected");
iniPreSurf();
Visualiser();
}
}

void FourChamberGuidePointsView::RightAtriumReactToToggle() {
if (m_Controls.radio_load_ra->isChecked()){
if (pluginLoaded && m_Controls.radio_load_ra->isChecked()) {
QMessageBox::information(NULL, "Info", "Right Atrium selected");
iniPreSurf();
Visualiser();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ protected slots:
vtkSmartPointer<vtkRenderWindowInteractor> interactor;
mitk::UnstructuredGrid::Pointer surface;

bool pluginLoaded = false;
};

#endif // FourChamberGuidePointsView_h

0 comments on commit 570b0a2

Please sign in to comment.