Commit 7380f65c authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: do not use deprecated methods

parent bc0c226a
......@@ -67,10 +67,10 @@ vtkRenderWindowInteractor iren
# Add the actors to the renderer, and set the background.
ren1 AddProp foheActor
ren1 AddProp outlineActor
ren2 AddProp foheActor
ren2 AddProp outlineActor
ren1 AddViewProp foheActor
ren1 AddViewProp outlineActor
ren2 AddViewProp foheActor
ren2 AddViewProp outlineActor
ren1 SetBackground 0.1 0.2 0.4
ren2 SetBackground 0.1 0.2 0.4
......@@ -91,12 +91,12 @@ vtkCubeAxesActor2D axes
axes SetFontFactor 0.8
axes SetAxisTitleTextProperty tprop
axes SetAxisLabelTextProperty tprop
ren1 AddProp axes
ren1 AddViewProp axes
# Create a vtkCubeAxesActor2D. Use the closest vertex to the camera to
# determine where to draw the axes. Add the actor to the renderer.
vtkCubeAxesActor2D axes2
axes2 SetProp foheActor
axes2 SetViewProp foheActor
axes2 SetCamera [ren2 GetActiveCamera]
axes2 SetLabelFormat "%6.4g"
axes2 SetFlyModeToClosestTriad
......@@ -104,7 +104,7 @@ vtkCubeAxesActor2D axes2
axes2 ScalingOff
axes2 SetAxisTitleTextProperty tprop
axes2 SetAxisLabelTextProperty tprop
ren2 AddProp axes2
ren2 AddViewProp axes2
# Render
renWin Render
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment