LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PAN and ZOOM without keyboard

I use GRAPH 3D on a tactil screen.
How can I use the PAN and ZOOM fonction ?
Normay, I must press SHIFT or ALT key, but without key it's not so easy !!!

Can I do a "simulation" of these key's, with LabView fonction's or with a
DLL ???

Thanks in advence (and sorry for my englich... if you speek french !)

Yves...
0 Kudos
Message 1 of 2
(2,724 Views)
Yves GALLEY wrote:

> I use GRAPH 3D on a tactil screen.
> How can I use the PAN and ZOOM fonction ?
> Normay, I must press SHIFT or ALT key, but without key it's not so easy !!!
>
> Can I do a "simulation" of these key's, with LabView fonction's or with a
> DLL ???

It might be difficult to create an intuitive user interface, but you should be
able to accomplish the pan and zoom actions using sliders or buttons on the
front panel in conjunction with VI Server calls on the diagram.

Wire a 3D Graph reference into a property node and check out the properties
that you can set programmatically. I think you'll want to use ViewDistance
(zoom) plus ViewXCenter and ViewYCenter (pan) to get what you're after. In the
panel button scenario, you might put a "Zoom In" button on t
he panel tied to a
case structure on your diagram that multiplied the current ViewDistance by
slightly more than 1.0.

Regards,
John Lum
National Instruments
0 Kudos
Message 2 of 2
(2,724 Views)