madgui.survey.widget module

Components to draw a 3D floor plan of a given MAD-X lattice.

Classes

FloorPlanWidget(session)

A widget that shows a 3D scene of the accelerator.

class madgui.survey.widget.FloorPlanWidget(session)[source]

Bases: PyQt5.QtWidgets.QWidget

A widget that shows a 3D scene of the accelerator.

Attributes

circle_points_per_m

float(x) -> floating point number

thin_element_length

float(x) -> floating point number

Methods

closeEvent(self, QCloseEvent)

create_element_items(element, coords)

Create an Object3D for a single beam line element.

create_items(camera)

Turn the MAD-X sequence of elements into a list of Object3D constituting the scene to be drawn.

create_object(element, coords, color, width)

session_data()

setElements(elements, survey)

Set scene using given elements and floor coordinates.

set_session(session)

Set session.

circle_points_per_m = 200.0
closeEvent(self, QCloseEvent)[source]
create_element_items(element, coords)[source]

Create an Object3D for 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 Object3D constituting the scene to be drawn.

create_object(element, coords, color, width)[source]
session_data()[source]
setElements(elements, survey)[source]

Set scene using given elements and floor coordinates.

set_session(session)[source]

Set session.

thin_element_length = 0.005