Commit 4035ad39 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

BUG: (?): GetActiveCamera would instantiate a camera, and call a ResetCamera....

BUG: (?): GetActiveCamera would instantiate a camera, and call a ResetCamera. This would have a lot of side effects side effects (like computing the bounds of all props, which will eventually call UpdateInformation() on data objects, etc). It's old, but let's try without. Obviously can be solved by calling ResetCamera manually.
    // this->ResetCamera();
parent f4e217d3
......@@ -94,6 +94,7 @@ vtkActor profile
ren1 AddActor profile
ren1 ResetCamera
[ren1 GetActiveCamera] Dolly 1.5
ren1 ResetCameraClippingRange
......
......@@ -47,6 +47,7 @@ vtkRenderWindowInteractor iren
ren1 AddActor actor
ren1 SetBackground 1 1 1
renWin SetSize 300 300
ren1 ResetCamera
[ren1 GetActiveCamera] Azimuth 60
[ren1 GetActiveCamera] Elevation -10
[ren1 GetActiveCamera] Dolly 1.5
......
......@@ -35,6 +35,7 @@ vtkRenderWindowInteractor iren
ren1 AddActor actor
ren1 SetBackground 1 1 1
renWin SetSize 300 300
ren1 ResetCamera
[ren1 GetActiveCamera] Dolly 1.35
ren1 ResetCameraClippingRange
iren Initialize
......
......@@ -49,6 +49,7 @@ vtkRenderWindowInteractor iren
#
ren1 AddActor clipActor
ren1 SetBackground 1 1 1
ren1 ResetCamera
[ren1 GetActiveCamera] Azimuth 30
[ren1 GetActiveCamera] Elevation 30
[ren1 GetActiveCamera] Dolly 1.2
......
......@@ -157,6 +157,7 @@ eval [profileC GetProperty] SetDiffuseColor $peacock
[profileC GetProperty] SetSpecularPower 30
ren1 AddActor profileC
ren1 ResetCamera
[ren1 GetActiveCamera] Dolly 1.5
ren1 ResetCameraClippingRange
......
......@@ -118,6 +118,7 @@ $renWin1 AddRenderer ren1
#
ren1 AddActor actor
ren1 SetBackground 0.25 0.2 0.2
ren1 ResetCamera
[ren1 GetActiveCamera] Zoom 1.2
[ren1 GetActiveCamera] Elevation 40
[ren1 GetActiveCamera] Azimuth -20
......
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