madgui.widget.floor_plan module¶
Components to draw a 2D floor plan of a given MAD-X lattice.
Classes
|
|
|
|
|
Graphics widget to draw 2D floor plan of given lattice. |
-
class
madgui.widget.floor_plan.
FloorCoords
(x, y, z, theta, phi, psi)¶ Bases:
tuple
Attributes
Alias for field number 4
Alias for field number 5
Alias for field number 3
Alias for field number 0
Alias for field number 1
Alias for field number 2
-
property
phi
¶ Alias for field number 4
-
property
psi
¶ Alias for field number 5
-
property
theta
¶ Alias for field number 3
-
property
x
¶ Alias for field number 0
-
property
y
¶ Alias for field number 1
-
property
z
¶ Alias for field number 2
-
property
-
class
madgui.widget.floor_plan.
LatticeFloorPlan
(*args, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QGraphicsView
Graphics widget to draw 2D floor plan of given lattice.
Methods
mapRectToScene
(rect)Map topleft/botright rect from viewport to scene coordinates.
mouseMoveEvent
(self, QMouseEvent)mousePressEvent
(self, QMouseEvent)resizeEvent
(event)Maintain visible region on resize.
setElements
(elements, survey, selection)setProjection
(theta, phi[, psi])setViewRect
(rect)Fit the given scene rectangle into the visible view.
set_model
(model)set_session
(session)wheelEvent
(event)Handle mouse wheel as zoom.
zoom
(scale)Scale the figure uniformly along both axes.
-
mapRectToScene
(rect)[source]¶ Map topleft/botright rect from viewport to scene coordinates.
This assumes there is no rotation/shearing.
-
model
= None¶
-
replay
= None¶
-
session
= None¶
-