[vtkusers] Pick Method...
Patric.Weis at mycrona.de
Patric.Weis at mycrona.de
Wed Aug 30 04:09:48 EDT 2000
Hi Monsieur Duck,
Derive your own interactor style class from vtkInteractorStyle (or one of
its derived subclasses. e.g. vtkInteractorStyleTrackball).
Then override the appropriate default mouse operation (e.g
vtkInteractorStyle::OnLeftButtonUp()) to implement your picking.
In the overridden function you can call the keycode operation for picking.
Be aware that the mouse operations normally are used for rotation or
zooming. So maybe you also have to call the default mouse operation, e.g.
if (ctrl == 0) && (shift == 0)
{
OnChar(ctrl, shift, 'p', 1);
}
else if (...)
{
...
}
vtkInteractorStyle::OnLeftButtonUp(ctrl, shift, X, Y);
Hope this helps!
Patric Weis
MYCRONA GmbH
- - - Original Message - - -
Monsieur Duck
<jaroma at sdf.lonestar.or An: vtkusers at public.kitware.com
g> Kopie:
Gesendet von: Thema: [vtkusers] Pick Method...
vtkusers-admin at public.k
itware.com
30.08.00 06:34
Hi Vtk List
How can I change the default method to pick an actor (typing 'p')?... I
want to do that with a click mouse...
Thanks
--
Monsieur Duck
club.gdl.iteso.mx
\../)................................................
Quand je fatigue pour M-icouter
pleurer des enfants dans la brise,
Quand je fatigue pour observer
les villes qui dM-hs qu'elles seront cendre-grises...
Quand je fatigue le sous-programme
dont elles blessent M-` moi et M-` elles vole M-` moi,
Quand je me fatigue de ce un sous-programme
changez-vous en jeune lune...
\../)................................................
--
_______________________________________________
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