228 |
self.data.layout.request(self.fisheye.curx, self.fisheye.cury, |
self.data.layout.request(self.fisheye.curx, self.fisheye.cury, |
229 |
self.data.layout.w, 1, .8, 2000) |
self.data.layout.w, 1, .8, 2000) |
230 |
|
|
231 |
|
def moveTo(self, x, y): |
232 |
|
if x < 0: x = 0 |
233 |
|
if y < 0: y = 0 |
234 |
|
if x > self.data.layout.w: x = self.data.layout.w |
235 |
|
if y > self.data.layout.h: y = self.data.layout.h |
236 |
|
self.fisheye.setCenter(x, y) |
237 |
|
gzz.client.AbstractUpdateManager.chg() |
238 |
|
self.doReq() |
239 |
|
|
240 |
def mouse(self, mouseEvent, oldVS): |
def mouse(self, mouseEvent, oldVS): |
241 |
if self.fisheye.event(mouseEvent): |
if self.fisheye.event(mouseEvent): |
242 |
self.fisheye.setCoordsysParams() |
self.fisheye.setCoordsysParams() |
260 |
print "Retransformed:", tmp[0], tmp[1], tmp[2] |
print "Retransformed:", tmp[0], tmp[1], tmp[2] |
261 |
x = size[0] |
x = size[0] |
262 |
y = size[1] |
y = size[1] |
263 |
if x < 0: x = 0 |
self.moveTo(x, y) |
|
if y < 0: y = 0 |
|
|
if x > self.data.layout.w: x = self.data.layout.w |
|
|
if y > self.data.layout.h: y = self.data.layout.h |
|
|
self.fisheye.setCenter(x, y) |
|
|
gzz.client.AbstractUpdateManager.chg() |
|
|
self.doReq() |
|
264 |
# self.setShift(oldVS) |
# self.setShift(oldVS) |
265 |
return 0 |
return 0 |
266 |
return 0 |
return 0 |