Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > IDLgrWindow zoo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 5613 of 5937
Post > Topic >>

IDLgrWindow zoomIn bug?

by Erik <janssen.e@[EMAIL PROTECTED] > Apr 7, 2008 at 04:03 AM

Hi Folks,

I have a problem using the ZoomIn function from the IDLgrWindow object
in IDL 6.3. According to the IDL help file I expected the following to
happen:

---
The IDLgrWindow::ZoomIn procedure method causes the current zoom
factor for this window to be increased (that is, multiplied by the
factor given by the window's ZOOM_BASE property). The current zoom
factor, the virtual canvas dimensions, and the location of the visible
****tion of the window are updated to reflect the new zoom factor.
---

I already wrote some code to do the job for me, but what it doesn't do
is update the Roi's in the zoomed area. I thought this function could
help me out, but unfortunately I got some strange results. I use the
following code to zoom at a mouseclick (self.View is added to
self.Window);

self.Window->setProperty, ZOOM_BASE=2.0
self.Window->zoomIn
self.Window->Draw, self.View
self.Window->getProperty, Current_Zoom=cz, ZOOM_NSTEP=nstep
print, nstep
print, cz

What happens is that nstep and cz are updated as expected. On the
first zoom, the coordinates of the drawwidget suddenly changes to 0,0
so the drawwidget moves on my widget to the upper left corner... When
I click once more, the drawwidget jumps back to it's original position
again, and luckily stays there. Very strange... But even worse; there
is absolutely no zoom effect to be found in the drawwidget!

Given the fact this function is introduced in IDL 6.1 I expected it to
be functional in 6.3 (or is this too optimistical? ;-) ). Anyway I
would love to hear that this is my fault and not a bug, because this
function will be very useful!

Regards,
Erik
 




 5 Posts in Topic:
IDLgrWindow zoomIn bug?
Erik <janssen.e@[EMAIL  2008-04-07 04:03:06 
Re: IDLgrWindow zoomIn bug?
David Fanning <news@[E  2008-04-07 22:02:49 
Re: IDLgrWindow zoomIn bug?
Erik <janssen.e@[EMAIL  2008-04-08 01:23:43 
Re: IDLgrWindow zoomIn bug?
Rick Towler <rick.towl  2008-04-08 08:47:26 
Re: IDLgrWindow zoomIn bug?
Erik <janssen.e@[EMAIL  2008-04-09 03:29:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:28:57 CDT 2008.