IGLScalarBar
Module: graphics.olwidgets
__init__
method
__init__(self)
set_range
method
set_range(self, min_val, max_val)
set_bar_size
method
set_bar_size(self, width, height)
set_discrete
method
set_discrete(self, flag)
get_discrete
method
get_discrete(self)
set_num_bands
method
set_num_bands(self, n)
get_num_bands
method
get_num_bands(self)
set_band_edges
method
set_band_edges(self, edges)
set_header
method
set_header(self, lines)
set_band_colors
method
set_band_colors(self, colors)
colors: list of QColor or (r,g,b) tuples
Length must match number of bands
set_header_font
method
set_header_font(self, font: QFont)
set_header_font_family
method
set_header_font_family(self, family: str)
set_header_font_size
method
set_header_font_size(self, size: int)
set_header_bold
method
set_header_bold(self, flag: bool)
set_header_italic
method
set_header_italic(self, flag: bool)
set_header_color
method
set_header_color(self, color)
set_scientific_format
method
set_scientific_format(self)
set_floating_format
method
set_floating_format(self)
set_digits
method
set_digits(self, d)
get_continous_lut
method
get_continous_lut(self)
get_discrete_lut
method
get_discrete_lut(self)
get_lut
method
get_lut(self)
build_header
method
build_header(self, name, result_type, add_txt, unit, time)
Constructs standard FEA-style header block.
draw
method
draw(self, painter: QPainter)
_compute_layout
method
_compute_layout(self)
_draw_header
method
_draw_header(self, painter: QPainter)
_draw_border
method
_draw_border(self, painter: QPainter)
set_colormap_jet
method
set_colormap_jet(self, resolution)
_jet_color
method
_jet_color(self, t)
_generate_jet_colors
method
_generate_jet_colors(self, n)
_draw_gradient
method
_draw_gradient(self, painter, rect)
_draw_discrete
method
_draw_discrete(self, painter, rect)
_get_band_edges
method
_get_band_edges(self)
_value_to_t
method
_value_to_t(self, v)
_get_linear_ticks
method
_get_linear_ticks(self, n)
_fmt
method
_fmt(self, v)
_draw_ticks_and_labels
method
_draw_ticks_and_labels(self, painter, rect)
_draw_label
method
_draw_label(self, painter, x_anchor, y, text)
onset_colorscheme
method
onset_colorscheme(self)
CreateContextMenu
method
CreateContextMenu(self, menu)
ShowContextMenu
method
ShowContextMenu(self, e)
AddExclusiveMenu
method
AddExclusiveMenu(self, parent_menu, title, values, current_value, callback)
_build_lut_from_bands
method
_build_lut_from_bands(self, colors, resolution)
_build_continuous_lut
method
_build_continuous_lut(self, colors, resolution)