[vtkusers] mouse interaction
Marcelo Costa Oliveira
marcelo at radioimaging.net
Thu Nov 21 06:49:50 EST 2002
Hi Yasin, how are you ??
The best way to do what you want is
Use the vtkInteractorStyleUser
and the method OnLeftButtonUp (int ctrl, int shift, int X, int Y)
for example:
class NAME_OF_YOUR_CLASS : public vtkInteractorStyleUser
{
void OnLeftButtonDown (int ctrl, int shift, int X, int Y);
}
void NAME_OF_YOUR_CLASS :: OnLeftButtonUp (int ctrl, int shift, int X, int
Y)
{
ZOOM
}
please any problens contact me
> ----- Original Message -----
> From: "Yasin Alakese" <y_alakese at hotmail.com>
> To: <vtkusers at public.kitware.com>
> Sent: Wednesday, November 20, 2002 3:58 PM
> Subject: [vtkusers] mouse interaction
>
>
> > can some one please tell me how to capture mouse interactions? i wrote
> > vtkhandleMessage() and SetParentID(), and now I want to scale my object
by
> > pressin left mouse button, but i couldn't succeed it, how must i
implement
> > onLButton()?
> >
> >
> > _________________________________________________________________
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
> > _______________________________________________
> > 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://public.kitware.com/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list