[Paraview] Is the VIEW-UP vector updated automatically?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Oct 2 16:00:33 EDT 2014


Yes, vtkCamera does often update its itself. Look at vtkCamera.cxx [1].

[1] https://github.com/Kitware/VTK/blob/83be7b1b77a6bfbf296ccaa5155cec57d0c77a8c/Rendering/Core/vtkCamera.cxx

On Thu, Oct 2, 2014 at 2:18 AM, Kazuyoshi Furutaka
<furutaka.kazuyoshi at jaea.go.jp> wrote:
> Dear ParaView expert...
>
> I'm using ParaView Version 4.2.0 32-bit on linux (Fedora 20,
> i386).
>
> Is the view-up vector updated automatically after
> e.g. changing the camera position?
>
> From Python Shell, I got the following result:
>
> ...resetting...
> Python 2.7.5 (default, Sep 25 2014, 13:58:10)
> [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
>>>> from paraview.simple import *
>>>> box=Box()
>>>> Show(box)
> <paraview.servermanager.CompositeMultiSliceRepresentation object at 0xad91dcc>
>>>> cam=GetActiveCamera()
>>>> cam.SetPosition(0,3,3)
>>>> Render()
> <paraview.servermanager.SliceView object at 0xad91bac>
>>>> cam.GetViewUp()
> (0.0, 1.0, 0.0)
>>>>
>
> Is this correct behavior?
> Who/what routine/method is responsible for updating the
> vector?
>
> I'm observing a curious behavior of paraview.simple.Azimuth();
> camera is NOT moving left/right.
>
> Thanks in advance.
> Kazuyoshi
> --
> Kazuyoshi Furutaka
> furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview


More information about the ParaView mailing list