From: Simon Rit Date: Mon, 30 May 2011 15:21:41 +0000 (+0200) Subject: Make fusion, overlay and vf visible by default X-Git-Tag: v1.3.0~330^2~4 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cd44966c6eda950effec88c4e15d8d9369d283f8;p=clitk.git Make fusion, overlay and vf visible by default --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 3c32255..8842b2d 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -1818,8 +1818,6 @@ void vvMainWindow::AddOverlayImage(int index, QString file) for (int j = 1; j <= 4; j++) { item->setData(j,Qt::CheckStateRole,DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole)); - mSlicerManagers[index]->GetSlicer(j-1)->SetActorVisibility("overlay",0, - DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole).toInt()); } //Create the buttons for reload and close @@ -1940,8 +1938,6 @@ void vvMainWindow::AddFusionImage(int index, QString file) for (int j = 1; j <= 4; j++) { item->setData(j,Qt::CheckStateRole,DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole)); - mSlicerManagers[index]->GetSlicer(j-1)->SetActorVisibility("fusion",0, - DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole).toInt()); } //Create the buttons for reload and close @@ -2025,8 +2021,6 @@ void vvMainWindow::AddFieldEntry(QString filename,int index,bool from_disk) for (int j = 1; j <= 4; j++) { item->setData(j,Qt::CheckStateRole,DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole)); - mSlicerManagers[index]->GetSlicer(j-1)->SetActorVisibility("vector",0, - DataTree->topLevelItem(index)->data(j,Qt::CheckStateRole).toInt()); } //Create the buttons for reload and close diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 6651833..d934d26 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -372,7 +372,7 @@ void vvSlicer::SetOverlay(vvImage::Pointer overlay) mOverlayActor = vtkSmartPointer::New(); mOverlayActor->SetInput(mOverlayMapper->GetOutput()); mOverlayActor->SetPickable(0); - mOverlayActor->SetVisibility(false); + mOverlayActor->SetVisibility(true); mOverlayActor->SetOpacity(0.5); } @@ -415,7 +415,7 @@ void vvSlicer::SetFusion(vvImage::Pointer fusion) mFusionActor = vtkSmartPointer::New(); mFusionActor->SetInput(mFusionMapper->GetOutput()); mFusionActor->SetPickable(0); - mFusionActor->SetVisibility(false); + mFusionActor->SetVisibility(true); mFusionActor->SetOpacity(0.7); this->GetRenderer()->AddActor(mFusionActor); }