337 |
except ValueError: |
except ValueError: |
338 |
cursor.setOffset((x-into[0])/scale/nodeScale, (y-into[1])/scale/nodeScale) |
cursor.setOffset((x-into[0])/scale/nodeScale, (y-into[1])/scale/nodeScale) |
339 |
focus = main.getFocus() |
focus = main.getFocus() |
340 |
|
|
341 |
main.setNewPlane(node, focus.getPanX(), focus.getPanY(), focus.getZoom()) |
main.setNewPlane(node, focus.getPanX(), focus.getPanY(), focus.getZoom()) |
342 |
|
|
343 |
elif rmb == 'link': |
elif rmb == 'link': |
423 |
self.ps2.getAxes()[i].setMainListener( |
self.ps2.getAxes()[i].setMainListener( |
424 |
vob.input.BoundedFloatLinearAbsoluteAdapter(self.axes[i])) |
vob.input.BoundedFloatLinearAbsoluteAdapter(self.axes[i])) |
425 |
except: pass # java.io.FileNotFoundException: pass |
except: pass # java.io.FileNotFoundException: pass |
426 |
|
# if self.naxes >= 3: self.view.initRotation = None |
427 |
|
|
428 |
def compinit(self): |
def compinit(self): |
429 |
"""Finds mindmap components; if none, creates one. |
"""Finds mindmap components; if none, creates one. |
455 |
return VobScene |
return VobScene |
456 |
self.context.oldVS = vs |
self.context.oldVS = vs |
457 |
|
|
458 |
|
# if self.view.initRotation and self.naxes >= 3\ |
459 |
|
# and Math.abs(self.view.initRotation + self.axes[2].getValue()) > 0.001: |
460 |
|
# if hasattr(self.view, "zoomPanCS"): |
461 |
|
# self.view.initRotation = -self.axes[2].getValue() |
462 |
|
# vs.coords.rotate(self.view.zoomPanCS, self.view.initRotation + self.axes[2].getValue()) |
463 |
|
# vob.AbstractUpdateManager.setNoAnimation() |
464 |
|
# return vs |
465 |
|
# else: self.view.initRotation = 0 |
466 |
|
|
467 |
# custom controller support |
# custom controller support |
468 |
if self.naxes >= 1: self.view.filletWidth = self.axes[0].getValue() |
if self.naxes >= 1: self.view.filletWidth = self.axes[0].getValue() |
469 |
if self.naxes >= 2: self.view.filletLength = self.axes[1].getValue() |
if self.naxes >= 2: self.view.filletLength = self.axes[1].getValue() |
470 |
if self.naxes >= 3: self.view.initRotation = -self.axes[2].getValue() |
if self.naxes >= 3: self.view.initRotation = -self.axes[2].getValue() |
471 |
|
|
472 |
accursed = self.context.c.getAccursed() |
accursed = self.context.c.getAccursed() |
473 |
# adding accursed to multiplexer |
# adding accursed to multiplexer |
474 |
set = java.util.HashSet() |
set = java.util.HashSet() |