STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
combined_gui.PressureBarWidget Class Reference
Inheritance diagram for combined_gui.PressureBarWidget:
[legend]
Collaboration diagram for combined_gui.PressureBarWidget:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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 )

Definition at line 2973 of file combined_gui.py.

References __init__().

Referenced by __init__().

Member Function Documentation

◆ paintEvent()

◆ set_global_line_ys()

combined_gui.PressureBarWidget.set_global_line_ys ( self,
float y20,
float y40,
float y60,
float y80 )

◆ set_limits()

combined_gui.PressureBarWidget.set_limits ( self,
float nop,
float meop,
float pop,
float thresh = None,
float scale_max = None )

◆ set_value()

Member Data Documentation

◆ _line_y20_parent

combined_gui.PressureBarWidget._line_y20_parent = None
protected

Definition at line 2993 of file combined_gui.py.

Referenced by paintEvent(), and set_global_line_ys().

◆ _line_y40_parent

combined_gui.PressureBarWidget._line_y40_parent = None
protected

Definition at line 2994 of file combined_gui.py.

Referenced by paintEvent(), and set_global_line_ys().

◆ _line_y60_parent

combined_gui.PressureBarWidget._line_y60_parent = None
protected

Definition at line 2995 of file combined_gui.py.

Referenced by paintEvent(), and set_global_line_ys().

◆ _line_y80_parent

combined_gui.PressureBarWidget._line_y80_parent = None
protected

Definition at line 2996 of file combined_gui.py.

Referenced by paintEvent(), and set_global_line_ys().

◆ BOTTOM_CLEARANCE

int combined_gui.PressureBarWidget.BOTTOM_CLEARANCE = 4
static

Definition at line 2968 of file combined_gui.py.

◆ BOTTOM_GAP

int combined_gui.PressureBarWidget.BOTTOM_GAP = 8
static

Definition at line 2966 of file combined_gui.py.

Referenced by paintEvent().

◆ BOTTOM_MARGIN

tuple combined_gui.PressureBarWidget.BOTTOM_MARGIN
static
Initial value:
= (
BOTTOM_GAP + VALUE_BOX_HEIGHT + BOTTOM_CLEARANCE
)

Definition at line 2969 of file combined_gui.py.

Referenced by paintEvent().

◆ current_value

float combined_gui.PressureBarWidget.current_value = 0.0

Definition at line 2991 of file combined_gui.py.

Referenced by paintEvent(), and set_value().

◆ fixed_color

combined_gui.PressureBarWidget.fixed_color = fixed_color

Definition at line 2990 of file combined_gui.py.

Referenced by paintEvent().

◆ meop

combined_gui.PressureBarWidget.meop = meop

Definition at line 2986 of file combined_gui.py.

Referenced by paintEvent(), and set_limits().

◆ nop

combined_gui.PressureBarWidget.nop = nop

Definition at line 2985 of file combined_gui.py.

Referenced by paintEvent(), and set_limits().

◆ pop

combined_gui.PressureBarWidget.pop = pop

Definition at line 2987 of file combined_gui.py.

Referenced by paintEvent(), and set_limits().

◆ scale_max

float combined_gui.PressureBarWidget.scale_max = 1.25 * pop

Definition at line 2989 of file combined_gui.py.

Referenced by paintEvent(), and set_limits().

◆ thresh

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().

◆ title

combined_gui.PressureBarWidget.title = title

Definition at line 2984 of file combined_gui.py.

Referenced by paintEvent().

◆ TOP_MARGIN

int combined_gui.PressureBarWidget.TOP_MARGIN = 20
static

Definition at line 2965 of file combined_gui.py.

Referenced by paintEvent().

◆ VALUE_BOX_HEIGHT

int combined_gui.PressureBarWidget.VALUE_BOX_HEIGHT = 26
static

Definition at line 2967 of file combined_gui.py.

Referenced by paintEvent().


The documentation for this class was generated from the following file: