X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=dd585636c5a76227817ec14cc8ded56fd548f132;hb=c0ba47479246ee1d42c2e9c8de5912e4b75c3e98;hp=cd65e2fdd722221e3414d39a56d3aa7685490044;hpb=ce4f422636ff94e4462cbd0f13f3c5dac66ce545;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index cd65e2f..dd58563 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1170,7 +1170,6 @@ void vvSlicer::SetRenderWindow(int orientation, vtkRenderWindow * rw) this->SetupInteractor(rw->GetInteractor()); ca->SetImageActor(this->GetImageActor()); ca->SetWindowLevel(this->GetWindowLevel()); - ca->SetText(2, ""); ca->SetText(3, "\n"); double bounds[6]; @@ -1448,6 +1447,10 @@ void vvSlicer::Render() << 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()) {