qubx :: dataGTK :: QubDataView_Base :: Class QubDataView_Base
[hide private]
[frames] | no frames]

Class QubDataView_Base

source code

        object --+                        
                 |                        
        ??.GObject --+                    
                     |                    
            gtk.Object --+                
                         |                
        object --+       |                
                 |       |                
gobject.GInterface --+   |                
                     |   |                
  atk.ImplementorIface --+                
                         |                
        object --+       |                
                 |       |                
gobject.GInterface --+   |                
                     |   |                
         gtk.Buildable --+                
                         |                
                gtk.Widget --+            
                             |            
               gtk.DrawingArea --+        
                                 |        
               toolspace.ToolSpace --+    
                                     |    
                           scope.Scope --+
                                         |
                                        QubDataView_Base
Known Subclasses:

Specialized Scope for qub data files. Originally there was only one view, which later split into lo- and hi-res panes. Accordingly, most of the program recognizes just one QubX.Data.view, which is the lo-res (upper) pane. The hi-res pane is QubX.Data.view.hires.

Instance Methods [hide private]
 
__get_data_overlay(self, w, h) source code
 
__get_draw_bounds(self) source code
 
__get_file_info(self) source code
 
__get_samp_per_pix(self) source code
 
__init__(self, global_name, signal_controls)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__init_show_grid(self) source code
 
__onChangeFits(self, *args) source code
 
__onChangeIdealization(self, *args) source code
 
__onChangeList(self, lists, lst) source code
 
__onChangeOverlays(self, file, i) source code
 
__onChangeSamples(self, *args) source code
 
__onChangeSegments(self, time) source code
 
__onDraw(self, context, w, h) source code
 
__onDrawGL(self, gldrawable, glcontext, w, h) source code
 
__onInsertSignal(self, i, undoing=False) source code
 
__onOverlay(self, context, w, h) source code
 
__onRemovingSignal(self, i, undoing=False) source code
 
__onSetAutoScale(self, x) source code
 
__onSetColorIdealized(self, x) source code
 
__onSetGaussIntensity(self, x) source code
 
__onSetHideHidden(self, x) source code
 
__onSetMultiLine(self, x) source code
 
__onSetSignal(self, i, field_name, val, prev, undoing=False) source code
 
__onSwitchList(self, lists, index, lst) source code
 
__setup_gauss(self, h) source code
 
__update_hint(self, serial, x, y) source code
 
add_baseline_node_between(self, left=None, right=None) source code
 
add_notebook_item(self, name, item) source code
 
add_screen_to_list(self)
Adds onscreen region to selection list; for hi-res pane this can be time.hilite if it exists.
source code
 
center_signal(self, index)
Adjusts a signal's 'Center' and 'per div' in the Scope table, to bring the lo-res region fully onscreen; for signal 0 (time) this expands lo-res to show the entire segment.
source code
 
display_limits(self, ix)
Returns (lo, hi) onscreen limits of signal with Index==ix in the Scope table.
source code
 
dispose(self)
Disconnects events and such when this object is no longer needed, making garbage collection more likely.
source code
 
draw_color_idl(self, context, w, h, center, per_div, seg, lows, highs, class_bits, color_exc=('scope.excluded', (0.5, 0.5, 0.5, 0.4))) source code
 
draw_custom_overlay(self, context, w, h) source code
 
draw_fit(self, context, w, h, center, per_div, sig, seg) source code
 
draw_idl(self, context, w, h, center, per_div, sig, seg, offset=0) source code
 
draw_idl_gl(self, gldrawable, glcontext, w, h, center, per_div, sig, seg, offset, vv) source code
 
draw_list(self, context, w, h, lst, seg, spp) source code
 
draw_list_gl(self, gldrawable, glcontext, w, h, lst, seg, spp) source code
 
draw_overlays(self, context, w, h, overlays, seg, spp) source code
 
draw_sampled_idl(self, context, w, h, center, per_div, seg, lows, highs, color_inc=('scope.idealization', (0.8, 0, 0, 0.8)), color_exc=('scope.excluded', (0.5, 0.5, 0.5, 0.4)), gauss_intensity=True) source code
 
draw_sampled_idl_gl(self, gldrawable, glcontext, w, h, xoff, center, per_div, seg, lows, highs, vv, color_inc=('scope.idealization', (0.8, 0, 0, 0.8)), color_exc=('scope.excluded', (0.5, 0.5, 0.5, 0.4))) source code
 
draw_samples(self, context, w, h, center, per_div, color, samples, dt, x0, seg_n) source code
 
draw_samples_gl(self, gldrawable, glcontext, w, h, center, per_div, color, samples, dt, x0, seg_n) source code
 
draw_samples_raster(self, context, w, h, sig_color, N, lows, highs, gauss_los, gauss_his, pixels_from_start) source code
 
draw_samples_raster_gl(self, gldrawable, glcontext, w, h, center, per_div, sig_color, lows, highs, gauss_los, gauss_his, pixels_from_start, vv) source code
 
get_center_sample(self)
Returns the index of the sample under the cross-hairs.
source code
 
get_sampled_events(self, sig, seg_index, f, l, Nsample, unset_val=1543209.75)
Returns numpy.arrays (lows, highs, class_bits) with min and max idealized amp for each sample.
source code
 
get_sampled_fits(self, sig, seg_index, f, l, Nsample, unset_val=1543209.75)
Returns numpy.arrays (lows, highs) with min and max idealized amp for each sample.
source code
 
get_segmentation(self, first_seg=None, last_seg=None, left=None, right=None, source=0, signal=None, latency=None, baseline_nodes=True)
Returns a list of SourceSeg corresponding to source, modified by args.
source code
 
get_segmentation_file(self, signal=None, latency=None, screen_sel=False, baseline_nodes=True)
Returns a list of SourceSeg corresponding to the whole file.
source code
 
get_segmentation_indexed(self, first, last, signal=0, latency=None, baseline_nodes=True) source code
 
get_segmentation_list(self, list_name=None, signal=None, baseline_nodes=True, group=None) source code
 
get_segmentation_screen(self, signal=None, line=None, latency=None, baseline_nodes=True)
Returns a list of SourceSeg corresponding to what's onscreen.
source code
 
get_sels_screen(self, left=None, right=None, hilite=False) source code
 
hide_signal(self, index)
Hides a signal (by its index in Scope table), by setting Scope[index, 'Center'] to a special value.
source code
 
motion_notify(self, widget, event) source code
 
nb_draw(self, context, w, h) source code
 
nb_draw_no_overlays(self, context, w, h) source code
 
nb_get_caption(self) source code
 
nb_get_caption_list(self) source code
 
nb_get_col(self, c) source code
 
nb_get_col_format(self, c) source code
 
nb_get_col_list(self, c) source code
 
nb_get_headers(self) source code
 
nb_get_headers_list(self) source code
 
nb_get_shape(self) source code
 
nb_get_table_shape(self) source code
 
nb_get_table_shape_list(self, segs=None) source code
 
nb_get_trace_series(self, all=False) source code
 
nb_get_trace_series_all(self) source code
 
nb_get_trace_series_list(self, all=False) source code
 
nb_get_trace_xlabel(self) source code
 
nb_get_trace_ylabel(self) source code
 
nb_iter_table_cols(self) source code
 
new_list(self)
Prompts the user to enter the name of a new selection list; creates it (if nonexistant); and brings it to front.
source code
 
set_auto_scale(self, x) source code
 
set_color_idealized(self, x) source code
 
set_draw_dim(self, x) source code
 
set_file(self, file) source code
 
set_gauss_intensity(self, x) source code
 
set_mark_overlays(self, x) source code
 
set_multi_line(self, x) source code
 
set_raw_bounds(self, lr) source code
 
set_show_grid(self, x) source code
 
set_subtract_baseline_nodes(self, x) source code
 
set_time(self, x) source code
 
toggle_grid(self)
Alternately makes grid lines in/visible.
source code
 
update_display_prefs(self, category, props) source code
 
update_hint(self, x, y) source code

Inherited from scope.Scope: compute_divs, copy_image, enable_grid, onClickGrab, onClickUnGrab, set_hide_hidden, set_line_count, u2x, u2y, x2u, y2u

Inherited from toolspace.ToolSpace: add_layer, button_press, button_release, draw_all_overlays, draw_to_context, draw_to_drawable, enter_notify, find_layer, focus_in, focus_out, invalidate_layer, key_press, key_release, redraw_canvas, release_button, remove_layer, resize_event, scroll, set_appearance, set_can_focus, set_layerset, set_tool

Inherited from toolspace.ToolSpace (private): _expose, _realize

Inherited from gtk.DrawingArea: size

Inherited from gtk.Widget: activate, add_accelerator, add_events, add_mnemonic_label, can_activate_accel, child_focus, child_notify, class_path, create_pango_context, create_pango_layout, destroy, do_button_press_event, do_button_release_event, do_can_activate_accel, do_client_event, do_composited_changed, do_configure_event, do_delete_event, do_destroy_event, do_direction_changed, do_drag_begin, do_drag_data_delete, do_drag_data_get, do_drag_data_received, do_drag_drop, do_drag_end, do_drag_leave, do_drag_motion, do_enter_notify_event, do_event, do_expose_event, do_focus, do_focus_in_event, do_focus_out_event, do_get_accessible, do_grab_broken_event, do_grab_focus, do_grab_notify, do_hide, do_hide_all, do_hierarchy_changed, do_key_press_event, do_key_release_event, do_leave_notify_event, do_map, do_map_event, do_mnemonic_activate, do_motion_notify_event, do_no_expose_event, do_parent_set, do_popup_menu, do_property_notify_event, do_proximity_in_event, do_proximity_out_event, do_realize, do_screen_changed, do_scroll_event, do_selection_clear_event, do_selection_get, do_selection_notify_event, do_selection_received, do_selection_request_event, do_show, do_show_all, do_show_help, do_size_allocate, do_size_request, do_state_changed, do_style_set, do_unmap, do_unmap_event, do_unrealize, do_visibility_notify_event, do_window_state_event, drag_begin, drag_check_threshold, drag_dest_add_image_targets, drag_dest_add_text_targets, drag_dest_add_uri_targets, drag_dest_find_target, drag_dest_get_target_list, drag_dest_get_track_motion, drag_dest_set, drag_dest_set_proxy, drag_dest_set_target_list, drag_dest_set_track_motion, drag_dest_unset, drag_get_data, drag_highlight, drag_source_add_image_targets, drag_source_add_text_targets, drag_source_add_uri_targets, drag_source_get_target_list, drag_source_set, drag_source_set_icon, drag_source_set_icon_name, drag_source_set_icon_pixbuf, drag_source_set_icon_stock, drag_source_set_target_list, drag_source_unset, drag_unhighlight, draw, ensure_style, error_bell, event, freeze_child_notify, get_accessible, get_action, get_activate_signal, get_allocation, get_ancestor, get_app_paintable, get_can_default, get_can_focus, get_child_requisition, get_child_visible, get_clipboard, get_colormap, get_composite_name, get_direction, get_display, get_double_buffered, get_events, get_extension_events, get_has_tooltip, get_has_window, get_mapped, get_modifier_style, get_name, get_no_show_all, get_pango_context, get_parent, get_parent_window, get_pointer, get_realized, get_receives_default, get_requisition, get_root_window, get_screen, get_sensitive, get_settings, get_size_request, get_snapshot, get_state, get_style, get_tooltip_markup, get_tooltip_text, get_tooltip_window, get_toplevel, get_visible, get_visual, get_window, grab_add, grab_default, grab_focus, grab_remove, has_default, has_focus, has_grab, has_rc_style, has_screen, hide, hide_all, hide_on_delete, input_shape_combine_mask, intersect, is_ancestor, is_composited, is_drawable, is_focus, is_sensitive, is_toplevel, keynav_failed, list_accel_closures, list_mnemonic_labels, map, menu_get_for_attach_widget, mnemonic_activate, modify_base, modify_bg, modify_cursor, modify_fg, modify_font, modify_style, modify_text, path, queue_clear, queue_clear_area, queue_draw, queue_draw_area, queue_resize, queue_resize_no_redraw, rc_get_style, realize, region_intersect, remove_accelerator, remove_mnemonic_label, render_icon, reparent, reset_rc_styles, reset_shapes, selection_add_target, selection_add_targets, selection_clear_targets, selection_convert, selection_owner_set, selection_remove_all, send_expose, send_focus_change, set_accel_path, set_activate_signal, set_allocation, set_app_paintable, set_can_default, set_child_visible, set_colormap, set_composite_name, set_direction, set_double_buffered, set_events, set_extension_events, set_has_tooltip, set_has_window, set_mapped, set_name, set_no_show_all, set_parent, set_parent_window, set_realized, set_receives_default, set_redraw_on_allocate, set_scroll_adjustments, set_sensitive, set_set_scroll_adjustments_signal, set_size_request, set_state, set_style, set_tooltip_markup, set_tooltip_text, set_tooltip_window, set_uposition, set_usize, set_visible, set_window, shape_combine_mask, show, show_all, show_now, size_allocate, size_request, style_attach, style_get_property, thaw_child_notify, translate_coordinates, trigger_tooltip_query, unmap, unparent, unrealize

Inherited from gtk.Object: do_destroy, flags, remove_data, remove_no_notify, set_flags, unset_flags

Inherited from unreachable.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gobject_init__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from atk.ImplementorIface: ref_accessible

Inherited from gtk.Buildable: add_child, construct_child, do_add_child, do_construct_child, do_get_internal_child, do_parser_finished, do_set_name, get_internal_child, parser_finished

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __explore_featured = ['file', 'time', 'OnHint', 'OnListSorted'...

Inherited from gtk.DrawingArea: __gtype__

Instance Variables [hide private]
  OnHint
WeakEvent(QubDataView, str) called with coordinates when the mouse moves
  OnListSorted
WeakEvent(TableView)
  file
qubx.data_types.QubData
  time
TimeControlLayer must be provided by subclass (owned by lo-res, shared by both)

Inherited from scope.Scope: controls, divs, pix_per_div, sig_layers, signals

Inherited from toolspace.ToolSpace: OnChangeLayerset, OnChangeTool, OnDblClick, OnDrag, OnDraw, OnDrawGL, OnKeyPress, OnKeyRelease, OnNeedPopup, OnOverlay, OnPress, OnRelease, OnRoll, OnScroll, appearance, can_focus, dim, layerset, tool, tooltip

Properties [hide private]
  auto_scale
  color_idealized
  fields
for use with Notebook_Table_Extensions
  gauss_intensity
  mark_overlays
  multi_line
  raw_bounds
  show_grid
  subtract_baseline_nodes

Inherited from scope.Scope: draw_dim, hide_hidden, line_count

Inherited from gtk.Widget: allocation, name, parent, requisition, saved_state, state, style, window

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, global_name, signal_controls)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_sampled_events(self, sig, seg_index, f, l, Nsample, unset_val=1543209.75)

source code 

Returns numpy.arrays (lows, highs, class_bits) with min and max idealized amp for each sample.

Parameters:
  • sig - signal index
  • seg_index - index in segmentation containing f and l
  • f - start sample index
  • l - end sample index, inclusive
  • Nsample - screen width, usually
  • unset_val - samples with no events are initialized to this value

get_sampled_fits(self, sig, seg_index, f, l, Nsample, unset_val=1543209.75)

source code 

Returns numpy.arrays (lows, highs) with min and max idealized amp for each sample.

Parameters:
  • sig - signal index
  • seg_index - index in segmentation containing f and l
  • f - start sample index
  • l - end sample index, inclusive
  • Nsample - screen width, usually
  • unset_val - samples with no events are initialized to this value

get_segmentation(self, first_seg=None, last_seg=None, left=None, right=None, source=0, signal=None, latency=None, baseline_nodes=True)

source code 

Returns a list of SourceSeg corresponding to source, modified by args.

Parameters:
  • first_seg
  • last_seg
  • left - time offset from start-of-each-seg
  • right - time offset from start-of-each-seg
  • source - DATASOURCE_FILE, DATASOURCE_SCREEN (overridden by other options), or DATASOURCE_LIST
  • signal - index in file.signals (default QubX.DataSource.signal)
  • latency - number of samples to shift the data rightwards (same f, l, and idealization)

motion_notify(self, widget, event)

source code 
Overrides: toolspace.ToolSpace.motion_notify

set_draw_dim(self, x)

source code 
Overrides: scope.Scope.set_draw_dim

Class Variable Details [hide private]

__explore_featured

Value:
['file',
 'time',
 'OnHint',
 'OnListSorted',
 'samp_per_pix',
 'draw_bounds',
 'tile_cache',
 'list_sel',
...

Instance Variable Details [hide private]

file

qubx.data_types.QubData
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

time

TimeControlLayer must be provided by subclass (owned by lo-res, shared by both)
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Property Details [hide private]

auto_scale

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to re-center visible signals whenever the lo-res onscreen area (\
time.left, time.right) changes.'

color_idealized

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to draw idealized data with class colors'

fields

for use with Notebook_Table_Extensions

Get Method:
unreachable(self)

gauss_intensity

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to draw MacRates fit with intensity gradient'

mark_overlays

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

multi_line

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to split data across multiple traces, as space allows (this obje\
ct subscribes to qubx.toolspace.Appearance\'s global setting)'

raw_bounds

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

show_grid

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to show grid lines; global pref implemented via alpha channel of\
 appearance prefs for qubx.scope.COLOR_GRID'

subtract_baseline_nodes

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'True to subtract linear interpolated baseline from data for display (\
e.g. on hi-res panel while baseline cursor is selected).'