[vtkusers] how to use keyboard buttons?
Gökhan ERSOY
goksoy66 at gmail.com
Fri Aug 22 09:09:45 EDT 2008
when i apply only following code, can i use direction buttons? i am sorry,
but i am very new in vtk. :(
vtkRenderWindowInteractor iren;
...
* *vtkInteractorStyleFlight style = new vtkInteractorStyleFlight();
iren.SetInteractorStyle(style*);*
Gökhan
2008/8/22 Sercani <sercanimailgroups at gmail.com>
> You can find example code here :
> http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/GUI/Win32/vtkBorland/Package/vtkBorlandRenderWindow.cpp?root=VTK&content-type=text/plain
>
>
>
> *From:* Gökhan ERSOY [mailto:goksoy66 at gmail.com]
> *Sent:* Friday, August 22, 2008 3:36 PM
> *To:* Sercani
> *Cc:* vtkusers at vtk.org
> *Subject:* Re: [vtkusers] how to use keyboard buttons?
>
>
>
> do u have an example code for vtkInteractorStyleFlight? i can understand
> better with a simple example.
>
> bilgiler için sağol :)
>
> Gökhan...
>
> 22 Ağustos 2008 Cuma 15:10 tarihinde Sercani <sercanimailgroups at gmail.com>
> yazdı:
>
> Hi Gökhan;
>
> You can use vtkInteractorStyleFlight for moving an object on screen using
> keyboard...Your second question depends on selecting the actor to interact.
> If you want to select that actor by clicking on it you can use vtkPropPicker
> or vtkVisibleCellSelector and use actor->SetUserMatrix or
> actor->SetUserTransform(). If you wont choose the actor by clicking on it,
> you can set other actor's draggable value to off.
>
>
>
> Kolay gelsin :D
>
> Sercani...
>
>
>
> *From:* vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *On
> Behalf Of *Gökhan ERSOY
> *Sent:* Friday, August 22, 2008 2:43 PM
> *To:* vtkusers at vtk.org
> *Subject:* [vtkusers] how to use keyboard buttons?
>
>
>
> Hello
>
> 1- i want to use keyboard buttons (direction buttons or other ones) to get
> move an object on the screen. how can i do this?
> 2- other question is how i can interact only one object (Actor) in the
> screen. i want an object to be moved anywhere as independent of others.
>
> thanks...
>
> Gökhan
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080822/09e2b34c/attachment.htm>
More information about the vtkusers
mailing list