for(unsigned int i=0; i<mImageActorList.size(); i++) {
mImageActorList[i]->VisibilityOff();
}
- mSlicer->Render();
+ // Caller MUST call Render
+ // mSlicer->Render();
}
//------------------------------------------------------------------------------
mImageActorList[mTSlice]->VisibilityOn();
UpdateSlice(0, mSlice);
//}
- mSlicer->Render();
+ // Caller MUST call Render
+ //mSlicer->Render();
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void vvBinaryImageOverlayActor::ComputeExtent(int orientation,
- int slice,
- int * inExtent,
- int * outExtent)
+ int slice,
+ int * inExtent,
+ int * outExtent)
{
// std::cout << "InExtent = " << inExtent[0] << " " << inExtent[1] << " " << inExtent[2] << " "
// << inExtent[3] << " " << inExtent[4] << " " << inExtent[5] << std::endl;
//------------------------------------------------------------------------------
void vvBinaryImageOverlayActor::SetDisplayExtentAndCameraPosition(int orientation,
- int slice,
- int * extent,
- vtkImageActor * actor,
- double position)
+ int slice,
+ int * extent,
+ vtkImageActor * actor,
+ double position)
{
- actor->SetDisplayExtent(extent);
-
// Set position
if (orientation == vtkImageViewer2::SLICE_ORIENTATION_XY) {
if (mSlicer->GetRenderer()->GetActiveCamera()->GetPosition()[2] > slice)
else
actor->SetPosition(-position,0, 0);
}
-
+ actor->SetDisplayExtent(extent);
}
//------------------------------------------------------------------------------
-
-
-
UpdateWithFastCacheMode();
}
-
- mSlicer->Render(); //DS ---> REMOVE ??
-
+ // mSlicer->Render(); //DS ---> REMOVE ??
mPreviousTSlice = mSlicer->GetTSlice();
mPreviousSlice = mSlicer->GetSlice();