def __init__(self, slice_models=[], slice_data_source=None, colormap='seismic', interpolation='nearest',
                 image_size=None, has_data=True):
        QObject.__init__(self)

        self._available_slice_models = slice_models
        """ :type: list[SliceModel] """
        self._slice_data_source = slice_data_source
        """ :type: SliceDataSource """

        self._slice_data_source.slice_data_source_changed.connect(self._reset)

        self._colormap_name = colormap
        self._show_indicators = False
        self._global_min = None
        self._global_max = None
        self._user_min_value = None
        self._user_max_value = None
        self._samples_unit = "Time (ms)"

        self._interpolation = interpolation
        self._symmetric_scale = True
        self._image_size = image_size

        self._has_data = has_data
        self._view_limits = {}

        if self._has_data:
            self._assign_indexes()

            for model in self._available_slice_models:
                self._view_limits[model.index_direction['name']] = ViewLimit(model)
def __init__ ( self , slice_models = [ ] , slice_data_source = None , colormap = 'seismic' , interpolation = 'nearest' , image_size = None , has_data = True ) : QObject . __init__ ( self ) self . _available_slice_models = slice_models self . _slice_data_source = slice_data_source self . _slice_data_source . slice_data_source_changed . connect ( self . _reset ) self . _colormap_name = colormap self . _show_indicators = False self . _global_min = None self . _global_max = None self . _user_min_value = None self . _user_max_value = None self . _samples_unit = "Time (ms)" self . _interpolation = interpolation self . _symmetric_scale = True self . _image_size = image_size self . _has_data = has_data self . _view_limits = { } if self . _has_data : self . _assign_indexes ( ) for model in self . _available_slice_models : self . _view_limits [ model . index_direction [ 'name' ] ] = ViewLimit ( model )
:type: list[SliceModel]