[vtkusers] How can I display a vtkRectilinearGrid as a 2d actor?

Cory Quammen cory.quammen at kitware.com
Tue Jan 5 22:20:35 EST 2016


Is it just 2D interaction that you want? If so, you can implement a
subclass of vtkInteractorStyle and change the behavior on the button
event handlers to eliminate rotation, for example.

On Tue, Jan 5, 2016 at 5:59 PM, joaoroberto88 <joaorobertojr88 at gmail.com> wrote:
> Hi,
>
> I would like to display a vtkRectilinearGrid as a 2d actor. I found that I
> have two approaches:
> 1. Convert it to either vtkImageData or vtkPolyData and use the appropriated
> implementation of vtkMapper2D class;
> 2. Display it as an original 3d actor, but blocking user interaction such as
> rotation. I've seen vtkRenderer, vtkActor and vtkInteractorStyle classes
> however I didn't find any methods to make this approach work.
>
> What can I do to get it working?
>
> Thanks for any help.
>
> Joao.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-can-I-display-a-vtkRectilinearGrid-as-a-2d-actor-tp5735803.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list