madgui.survey.widget module¶
Components to draw a 3D floor plan of a given MAD-X lattice.
Classes
|
A widget that shows a 3D scene of the accelerator. |
-
class
madgui.survey.widget.FloorPlanWidget(session)[source]¶ Bases:
PyQt5.QtWidgets.QWidgetA widget that shows a 3D scene of the accelerator.
Attributes
float(x) -> floating point number
float(x) -> floating point number
Methods
closeEvent(self, QCloseEvent)create_element_items(element, coords)Create an
Object3Dfor a single beam line element.create_items(camera)Turn the MAD-X sequence of elements into a list of
Object3Dconstituting the scene to be drawn.create_object(element, coords, color, width)setElements(elements, survey)Set scene using given elements and floor coordinates.
set_session(session)Set session.
-
circle_points_per_m= 200.0¶
-
create_element_items(element, coords)[source]¶ Create an
Object3Dfor a single beam line element. Use the supplied color and tube diameter.
-
create_items(camera)[source]¶ Turn the MAD-X sequence of elements into a list of
Object3Dconstituting the scene to be drawn.
-
thin_element_length= 0.005¶
-