def __init__(self): ReaderBaseBase.__init__(self, nOutputPorts=1, outputType='vtkMultiBlockDataSet') # Properties: self._dataselection = vtk.vtkDataArraySelection() self._dataselection.AddObserver("ModifiedEvent", _helpers.create_modified_callback(self)) self.__names = [] self.__data = dict() self.__project = None
def __init__(self, **kwargs): ReaderBaseBase.__init__(self, outputType='vtkImageData', **kwargs) self.__reader = espatools.RasterSetReader(yflip=True) self.__raster = None self.__cast = True self.__scheme = 'infrared' # Properties: self._dataselection = vtk.vtkDataArraySelection() self._dataselection.AddObserver("ModifiedEvent", _helpers.create_modified_callback(self))