/[fenfire]/fenfire/org/fenfire/demo/mm.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/mm.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.54 by humppake, Thu Aug 28 09:30:26 2003 UTC revision 1.55 by humppake, Thu Aug 28 14:03:11 2003 UTC
# Line 337  class LMB(Action, vob.mouse.MouseClickLi Line 337  class LMB(Action, vob.mouse.MouseClickLi
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':
# Line 422  class MMScene: Line 423  class MMScene:
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.
# Line 453  class MMScene: Line 455  class MMScene:
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()

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26