![]() |
![]() |
Public Member Functions | |
def | __init__ (self) |
def | decrementZoom (self) |
def | incrementZoom (self) |
def | setZoom (self, zoom) |
def | zoom (self) |
def | zoomFactor (self) |
Private Attributes | |
_zoomFactor | |
Interface for zoomable objects.
Definition at line 1 of file Zoomable.py.
def Vispa.Gui.Zoomable.Zoomable.__init__ | ( | self | ) |
Definition at line 4 of file Zoomable.py.
def Vispa.Gui.Zoomable.Zoomable.decrementZoom | ( | self | ) |
Decrement zome by 10 %
Definition at line 27 of file Zoomable.py.
References Vispa.Gui.Zoomable.Zoomable._zoomFactor, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), and Vispa.Gui.VispaWidget.VispaWidget.setZoom().
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.wheelEvent().
def Vispa.Gui.Zoomable.Zoomable.incrementZoom | ( | self | ) |
Increment zoom by 10 %
Definition at line 22 of file Zoomable.py.
References Vispa.Gui.Zoomable.Zoomable._zoomFactor, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), and Vispa.Gui.VispaWidget.VispaWidget.setZoom().
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.wheelEvent().
def Vispa.Gui.Zoomable.Zoomable.setZoom | ( | self, | |
zoom | |||
) |
Takes zoom factor in percent.
Definition at line 8 of file Zoomable.py.
References Vispa.Gui.Zoomable.Zoomable._zoomFactor, funct.abs(), and SiStripPI.max.
Referenced by Vispa.Gui.Zoomable.Zoomable.decrementZoom(), Vispa.Gui.Zoomable.Zoomable.incrementZoom(), Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().
def Vispa.Gui.Zoomable.Zoomable.zoom | ( | self | ) |
Returns zoom factor in percent.
Definition at line 14 of file Zoomable.py.
References Vispa.Gui.Zoomable.Zoomable._zoomFactor.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection.draw(), Vispa.Gui.VispaWidget.VispaWidget.paintEvent(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.wheelEvent(), Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), and Vispa.Main.TabController.TabController.zoomHundred().
def Vispa.Gui.Zoomable.Zoomable.zoomFactor | ( | self | ) |
Definition at line 19 of file Zoomable.py.
References Vispa.Gui.Zoomable.Zoomable._zoomFactor.
Referenced by Vispa.Views.LineDecayView.DecayLine.arrowBoundingRect(), Vispa.Views.LineDecayView.LineDecayView.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Gui.PortConnection.PointToPointConnection.betweenTwoPoints(), Vispa.Gui.PortConnection.PointToPointConnection.bottomRight(), Vispa.Views.LineDecayView.DecayLine.boundingRect(), Vispa.Gui.PortConnection.PointToPointConnection.calculateRoute(), Vispa.Views.LineDecayView.LineDecayContainer.childrenRect(), Vispa.Views.LineDecayView.DecayObject.containsAreaSquareRect(), Vispa.Views.LineDecayView.DecayLine.containsPoint(), Vispa.Views.BoxDecayView.BoxDecayView.contentStartX(), Vispa.Views.BoxDecayView.BoxDecayView.contentStartY(), Vispa.Views.LineDecayView.LineDecayContainer.contentStartY(), Vispa.Views.LineDecayView.LineDecayContainer.createChildContainer(), Vispa.Gui.PortConnection.PointToPointConnection.drawCorner(), Vispa.Gui.PortConnection.PointToPointConnection.drawLineSection(), Vispa.Gui.MenuWidget.MenuWidget.drawMenuEntries(), Vispa.Gui.PortConnection.PointToPointConnection.drawSection(), Vispa.Gui.PortConnection.PointToPointConnection.drawStraightLine(), Vispa.Views.LineDecayView.LineDecayContainer.dropEvent(), Vispa.Gui.PortConnection.PointToPointConnection.getRectBetweenTwoPoints(), Vispa.Views.LineDecayView.DecayLine.labelBoundingRect(), Vispa.Views.LineDecayView.DecayLine.length(), Vispa.Views.LineDecayView.DecayLine.lineWidth(), Vispa.Gui.MenuWidget.MenuWidget.mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget.mousePressEvent(), Vispa.Views.LineDecayView.DecayNode.move(), Vispa.Views.LineDecayView.DecayNode.paint(), Vispa.Views.LineDecayView.DecayLine.paint(), Vispa.Views.LineDecayView.DecayNode.position(), Vispa.Views.LineDecayView.DecayNode.select(), Vispa.Views.LineDecayView.DecayLine.setLabel(), Vispa.Views.LineDecayView.DecayLine.setZoom(), Vispa.Gui.WidgetContainer.WidgetContainer.sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer.sizeHint(), Vispa.Gui.PortConnection.PointToPointConnection.topLeft(), and Vispa.Views.LineDecayView.DecayLine.transform().
|
private |
Definition at line 5 of file Zoomable.py.
Referenced by Vispa.Gui.Zoomable.Zoomable.decrementZoom(), Vispa.Gui.Zoomable.Zoomable.incrementZoom(), Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.Zoomable.Zoomable.zoom(), and Vispa.Gui.Zoomable.Zoomable.zoomFactor().