Skip to content

Commit

Permalink
Update myvtkresliceimageviewer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamLife-Jianwei committed Aug 18, 2021
1 parent ca40dc6 commit d9f7597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 03_ThirdVtk/ImageManage/Core/myvtkresliceimageviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ MyVtkResliceImageViewer::MyVtkResliceImageViewer()
this->ResliceCursorWidget->SetRepresentation(resliceCursorRep);
this->PointPlacer = vtkBoundedPlanePointPlacer::New();
this->Measurements = MyVtkResliceImageViewerMeasurements::New();
// this->Measurements->SetResliceImageViewer(this); //重写
this->Measurements->SetResliceImageViewer(this); //重写

this->ScrollCallback = vtkResliceImageViewerScrollCallback::New(); //等待实现
this->ScrollCallback->Viewer = this;
Expand Down Expand Up @@ -353,7 +353,7 @@ void MyVtkResliceImageViewer::SetResliceCursor(vtkResliceCursor *rc)
{
vtkResliceCursorRepresentation *rep = vtkResliceCursorRepresentation::SafeDownCast(this->GetResliceCursorWidget()->GetRepresentation());
rep->GetCursorAlgorithm()->SetResliceCursor(rc);
// this->Measurements->SetResliceImageViewer(this); //这里需要重新vtkResliceImageViewerMeasurements
this->Measurements->SetResliceImageViewer(this); //这里需要重新vtkResliceImageViewerMeasurements
}

void MyVtkResliceImageViewer::SetLookupTable(vtkScalarsToColors *l)
Expand Down

0 comments on commit d9f7597

Please sign in to comment.