[vtkusers] How to find the "view trasformation" after a 3D camera operation?

Veerapuram Varadhan v.varadhan at gmail.com
Fri Jul 16 10:53:04 EDT 2004


Hi Amy,

I just found that GetViewTransformMatrix is already available in my
version of VTK.  BTW, i am using the VTK that came with 0.6 of
paraview. ;)

V. Varadhan.

On Fri, 16 Jul 2004 20:14:39 +0530, Veerapuram Varadhan
<v.varadhan at gmail.com> wrote:
> Hi Amy,
> The current version that I am using is good old 3.x, i have no choice,
> other than working in 3.x, since my client doesn't want to port it to
> 4.x :)
> 
> Anyway, i will try porting GetViewTransformMatrix to 3.x.
> 
> Also, is there a way to pick a textactor?
> 
> Thanks,
> V. Varadhan.
> 
> 
> 
> On Fri, 16 Jul 2004 10:33:24 -0400, Amy Henderson
> <amy.henderson at kitware.com> wrote:
> > What version of VTK are you using? In versions since at least 4.0, there
> > are methods in vtkCamera called GetViewTransformObject (which returns a
> > vtkTransform) and GetViewTransformMatrix (which returns a vtkMatrix4x4).
> >
> > - Amy
> >
> >
> >
> > At 10:21 AM 7/16/2004, Veerapuram Varadhan wrote:
> > >Hi All,
> > >
> > >I am trying to use camera->GetViewTransform(); but VTK says it is
> > >deprecated.  Can anyone help me in finding the transformation of a
> > >co-ordinate point (in world co-ordinates) after any of zoom, rotate,
> > >fly-in, fly-out operations?
> > >
> > >Basically, i am creating a "text annotation" widget.  Since, i was not
> > >able to pick a text actor through vtkCellPicker or vtkPropPicker, I
> > >have implemented my own (brut-forth) algorithm to pick the widget.  It
> > >checks whether the relevant mouse event has occurred within the
> > >bounding box of the text actor and does the picking.
> > >
> > >But this algorithm, seems to be not working when we do Zoom or rotate
> > >or fly or any operation that would transform the co-ordinate.
> > >
> > >Any help in this regard would be greatly appreciated.
> > >
> > >TIA,
> > >
> > >V. Varadhan.
> > >_______________________________________________
> > >This is the private VTK discussion list.
> > >Please keep messages on-topic. Check the FAQ at:
> > ><http://public.kitware.com/cgi-bin/vtkfaq>
> > >Follow this link to subscribe/unsubscribe:
> > >http://www.vtk.org/mailman/listinfo/vtkusers
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>



More information about the vtkusers mailing list