[vtkusers] vtkImagePlaneWidget
Veerapuram Varadhan
v.varadhan at gmail.com
Thu Sep 2 00:39:15 EDT 2004
Hi Mathieu,
I am sorry, on going through the vtkImagePlaneWidget code, I came to
know that the marginactor is just being used to display the margins
and the actual marginselectmode is calculated on the basis of the
mouse pick position.
BTW, if you want to retain pushing and scaling but disable rotation,
you can derive a class from vtkImagePlaneWidget (sort of filter class)
and disable the rotation.
HTH,
V. Varadhan.
On Wed, 1 Sep 2004 10:01:50 -0400 (EDT), Mathieu Coursolle
<mcoursolle at yahoo.ca> wrote:
>
> Thank you.
> But I can make the margins disappears, but the
> I can still rotate the planes when I click within the
> unvisible margin region.
> Is there a way to just disable that functionality?
> Thanx.
>
> MAthieu
>
> Veerapuram Varadhan <v.varadhan at gmail.com> wrote:
>
>
> Hi,
> Try setting the opacity of the marginactor to zero.
>
> For example:
> vtkImagePlaneWidget* imgPlaneWgt = vtkImagePlaneWidget::New();
> ...
> ...
> ...
> ...
> imgPlaneWgt->GetMarginProperty()->SetOpactiy (0.0);
> imgPlaneWgt->SetEnabled (1);
>
> Once an actor has become "transparent", the picker will not pick it. :)
>
> HTH,
>
> V. Varadhan.
>
> ----- Original Message -----
> From: Mathieu Coursolle
> Date: Tue, 31 Aug 2004 12:41:01 -0400 (EDT)
> Subject: [vtkusers] vtkImagePlaneWidget
> To: vtkusers at vtk.org
>
>
> Hi,
> Does anyone knows how to disable the margins in a
> vtkImagePlaneWidget, I don't want the user to be able to rotate
> the plane.
> Thank you.
>
> MAthieu
>
>
> ________________________________
> Post your free ad now! Yahoo! Canada Personals
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> ________________________________
> Post your free ad now! Yahoo! Canada Personals
>
>
>
>
> _______________________________________________
> 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