Skip to content

Commit 22e92a4

Browse files
committed
fix for vtk latest
1 parent 775aba2 commit 22e92a4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Common/RenderWindow.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ RenderWindow::AddText (char *text, float x, float y, float z, float R,
419419

420420
Actor->SetMapper (Mapper);
421421
Mapper->Delete();
422-
this->GetMeshRenderer()->AddActor2D (Actor);
422+
this->GetMeshRenderer()->AddViewProp (Actor);
423423
}
424424

425425
void
@@ -970,11 +970,10 @@ RenderWindow::GetEdgesVisibilityArray()
970970
void
971971
RenderWindow::SwitchDisplayIds ()
972972
{
973-
vtkActor2DCollection *Actors = this->GetMeshRenderer()->GetActors2D ();
973+
auto *Actors = this->GetMeshRenderer()->GetViewProps ();
974974

975-
vtkActor2D *Actor;
976975
Actors->InitTraversal ();
977-
Actor = Actors->GetNextActor2D ();
976+
auto Actor = Actors->GetNextProp ();
978977

979978
while (Actor)
980979
{
@@ -984,7 +983,7 @@ RenderWindow::SwitchDisplayIds ()
984983
this->SetDisplayIdsOff ();
985984
return;
986985
}
987-
Actor = Actors->GetNextActor2D ();
986+
Actor = Actors->GetNextProp ();
988987

989988
}
990989

0 commit comments

Comments
 (0)