mSlicerManagers.back()->SetSlicerWindow(1,NEViewWidget->GetRenderWindow());
mSlicerManagers.back()->SetSlicerWindow(2,SOViewWidget->GetRenderWindow());
mSlicerManagers.back()->SetSlicerWindow(3,SEViewWidget->GetRenderWindow());
+ mSlicerManagers.back()->Render(); // SR: displayed #slice is wrong without this
}
}
this->SetupInteractor(rw->GetInteractor());
ca->SetImageActor(this->GetImageActor());
ca->SetWindowLevel(this->GetWindowLevel());
- ca->SetText(2, "<slice>");
ca->SetText(3, "<window>\n<level>");
double bounds[6];
<< std::endl;
}
ca->SetText(1,worldPos.str().c_str());
+
+ std::stringstream slicePos;
+ slicePos << "Slice: " << this->GetSlice();
+ ca->SetText(2, slicePos.str().c_str());
}
if (pdmA->GetVisibility()) {