|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self, str title, float nop=500.0, float meop=700.0, float pop=1000.0, float thresh=None, QtGui.QColor fixed_color=None, parent=None) | |
| set_global_line_ys (self, float y20, float y40, float y60, float y80) | |
| set_limits (self, float nop, float meop, float pop, float thresh=None, float scale_max=None) | |
| set_value (self, float value) | |
| paintEvent (self, event) | |
Public Attributes | |
| title = title | |
| nop = nop | |
| meop = meop | |
| pop = pop | |
| thresh = thresh if thresh is not None else (nop * 0.5) | |
| float | scale_max = 1.25 * pop |
| fixed_color = fixed_color | |
| float | current_value = 0.0 |
Static Public Attributes | |
| int | TOP_MARGIN = 20 |
| int | BOTTOM_GAP = 8 |
| int | VALUE_BOX_HEIGHT = 26 |
| int | BOTTOM_CLEARANCE = 4 |
| tuple | BOTTOM_MARGIN |
Protected Attributes | |
| _line_y20_parent = None | |
| _line_y40_parent = None | |
| _line_y60_parent = None | |
| _line_y80_parent = None | |
Vertical bar gauge: four dashed lines at 20%, 40%, 60%, 80% of bar height (global Y from parent). Labels: y80=POP, y60=MEOP, y40=NOP, y20=THRESH. Bar outline and fill are full height; fill is linear in pressure.
Definition at line 2958 of file combined_gui.py.
| combined_gui.PressureBarWidget.__init__ | ( | self, | |
| str | title, | ||
| float | nop = 500.0, | ||
| float | meop = 700.0, | ||
| float | pop = 1000.0, | ||
| float | thresh = None, | ||
| QtGui.QColor | fixed_color = None, | ||
| parent = None ) |
| combined_gui.PressureBarWidget.paintEvent | ( | self, | |
| event ) |
Definition at line 3034 of file combined_gui.py.
References _line_y20_parent, _line_y40_parent, _line_y60_parent, _line_y80_parent, BOTTOM_GAP, BOTTOM_MARGIN, current_value, fixed_color, feedtwin.vessels.tank.Tank.geometry, backend.routers.flight.TankConfig.height, feedtwin.vessels.geometry.CylindricalTank.height(), feedtwin.vessels.geometry.TabulatedGeometry.height(), feedtwin.vessels.geometry.TankGeometry.height(), max, meop, min, nop, pop, scale_max, thresh, title, TOP_MARGIN, VALUE_BOX_HEIGHT, and engine.pipeline.config_schemas.RimGlandConfig.width.
| combined_gui.PressureBarWidget.set_global_line_ys | ( | self, | |
| float | y20, | ||
| float | y40, | ||
| float | y60, | ||
| float | y80 ) |
Set the four dashed-line Y positions in parent coordinates (same for all three bars).
Definition at line 3004 of file combined_gui.py.
References _line_y20_parent, _line_y40_parent, _line_y60_parent, _line_y80_parent, EngineFSM.update(), EngineState.update(), feedtwin.props.backend.PropertyBackend.update(), feedtwin.props.backends.coolprop.CoolPropBackend.update(), feedtwin.props.backends.tabulated.TabulatedProperties.update(), and robust_calibration.GaussMarkovBiasModel.update().
| combined_gui.PressureBarWidget.set_limits | ( | self, | |
| float | nop, | ||
| float | meop, | ||
| float | pop, | ||
| float | thresh = None, | ||
| float | scale_max = None ) |
Update NOP, MEOP, POP, THRESH and optional shared scale_max; repaint.
Definition at line 3012 of file combined_gui.py.
References meop, nop, pop, scale_max, thresh, EngineFSM.update(), EngineState.update(), feedtwin.props.backend.PropertyBackend.update(), feedtwin.props.backends.coolprop.CoolPropBackend.update(), feedtwin.props.backends.tabulated.TabulatedProperties.update(), and robust_calibration.GaussMarkovBiasModel.update().
| combined_gui.PressureBarWidget.set_value | ( | self, | |
| float | value ) |
Definition at line 3030 of file combined_gui.py.
References current_value, EngineFSM.update(), EngineState.update(), feedtwin.props.backend.PropertyBackend.update(), feedtwin.props.backends.coolprop.CoolPropBackend.update(), feedtwin.props.backends.tabulated.TabulatedProperties.update(), and robust_calibration.GaussMarkovBiasModel.update().
|
protected |
Definition at line 2993 of file combined_gui.py.
Referenced by paintEvent(), and set_global_line_ys().
|
protected |
Definition at line 2994 of file combined_gui.py.
Referenced by paintEvent(), and set_global_line_ys().
|
protected |
Definition at line 2995 of file combined_gui.py.
Referenced by paintEvent(), and set_global_line_ys().
|
protected |
Definition at line 2996 of file combined_gui.py.
Referenced by paintEvent(), and set_global_line_ys().
|
static |
Definition at line 2968 of file combined_gui.py.
|
static |
Definition at line 2966 of file combined_gui.py.
Referenced by paintEvent().
|
static |
Definition at line 2969 of file combined_gui.py.
Referenced by paintEvent().
| float combined_gui.PressureBarWidget.current_value = 0.0 |
Definition at line 2991 of file combined_gui.py.
Referenced by paintEvent(), and set_value().
| combined_gui.PressureBarWidget.fixed_color = fixed_color |
Definition at line 2990 of file combined_gui.py.
Referenced by paintEvent().
| combined_gui.PressureBarWidget.meop = meop |
Definition at line 2986 of file combined_gui.py.
Referenced by paintEvent(), and set_limits().
| combined_gui.PressureBarWidget.nop = nop |
Definition at line 2985 of file combined_gui.py.
Referenced by paintEvent(), and set_limits().
| combined_gui.PressureBarWidget.pop = pop |
Definition at line 2987 of file combined_gui.py.
Referenced by paintEvent(), and set_limits().
| float combined_gui.PressureBarWidget.scale_max = 1.25 * pop |
Definition at line 2989 of file combined_gui.py.
Referenced by paintEvent(), and set_limits().
| combined_gui.PressureBarWidget.thresh = thresh if thresh is not None else (nop * 0.5) |
Definition at line 2988 of file combined_gui.py.
Referenced by paintEvent(), and set_limits().
| combined_gui.PressureBarWidget.title = title |
Definition at line 2984 of file combined_gui.py.
Referenced by paintEvent().
|
static |
Definition at line 2965 of file combined_gui.py.
Referenced by paintEvent().
|
static |
Definition at line 2967 of file combined_gui.py.
Referenced by paintEvent().