DataViewerAxon
Data viewer showing 3d data as 2d slices.
Usage
Note
This viewer is based on the pyqtgraph package.
-
class DataViewer(source, points=None, vectors=None, orientations=None, annotation=None, axis=None, scale=None, title=None, invertY=False, minMax=None, screen=None, parent=None, default_lut='flame', max_projection=None, points_style=None, vectors_style=None, orientations_style=None, **kwargs)[source]
Bases: QWidget
-
change_max_projection(value=None)[source]
-
change_orientations_color()[source]
-
change_orientations_threshold(value=None)[source]
-
change_points_color()[source]
-
change_vectors_color()[source]
-
change_vectors_threshold(value=None)[source]
-
eventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) → bool[source]
-
getXYAxes()[source]
-
get_coords(pos)[source]
-
handleMouseClick(event)[source]
-
initializeSources(source, scale=None, axis=None, update=True)[source]
-
initialize_points_item()[source]
-
initialize_vectors_item()[source]
-
scale_coords(x, x_axis, y, y_axis)[source]
-
setMinMax(min_max, source=None)[source]
-
setSliceAxis(axis)[source]
-
setSource(source, index='all')[source]
-
set_color_scheme(type_, lut=0)[source]
-
set_orientations(orientations)[source]
-
set_points(points)[source]
-
set_vectors(vectors)[source]
-
shape3d(shape)[source]
-
sourceSlice()[source]
-
sync_cursors(x, y)[source]
-
toggle_layer(i, state)[source]
-
updateImage()[source]
-
updateLabel()[source]
-
updateLabelFromMouseMove(event_pos)[source]
-
updateSlice(force_update=False)[source]
-
updateSlicer()[source]
-
updateSourceRange()[source]
-
updateSourceSlice()[source]
Set the current slice of the source
-
update_orientations()[source]
-
update_points()[source]
-
update_vectors()[source]
-
DEFAULT_SCATTER_PARAMS = {'brush': 'red', 'pen': 'red', 'size': 10, 'symbol': '+'}
-
mouse_clicked