예제 #1
0
    def __init__(self, param=None, buffersize=512, stackMode='datetime'):
        """
        :param param: param to be passed to XYImageItem constructor
        :param buffersize: (int) size of the stack
        :param stackMode: (str) can be 'datetime', 'timedelta' or 'event'
        """
        XYImageItem.__init__(self,
                             numpy.arange(2),
                             numpy.arange(2),
                             numpy.zeros((2, 2)),
                             param=param)
        TaurusBaseComponent.__init__(self, self.__class__.__name__)
        self.maxBufferSize = buffersize
        self._yValues = None
        self._xBuffer = None
        self._zBuffer = None
        self.stackMode = stackMode
        self.set_interpolation(INTERP_NEAREST)
        self.__timeOffset = None

        # Config properties
        self.registerConfigProperty(self.get_lut_range, self.set_lut_range,
                                    'lut_range')
        self.registerConfigProperty(self._get_interpolation_cfg,
                                    self._set_interpolation_cfg,
                                    'interpolation')
        self.registerConfigProperty(self.get_color_map_name,
                                    self.set_color_map, 'color_map')
예제 #2
0
 def __init__(self, param=None):
     XYImageItem.__init__(self,
                          numpy.arange(2),
                          numpy.arange(2),
                          numpy.zeros((2, 2)),
                          param=param)
     TaurusBaseImageItem.__init__(self, self.__class__.__name__)
예제 #3
0
 def __init__(self, param=None, buffersize=512, stackMode='datetime'):
     XYImageItem.__init__(self, numpy.arange(2), numpy.arange(
         2), numpy.zeros((2, 2)), param=param)
     TaurusBaseComponent.__init__(self, self.__class__.__name__)
     self.maxBufferSize = buffersize
     self._yValues = None
     self._xBuffer = None
     self._zBuffer = None
     self.stackMode = stackMode
     self.set_interpolation(INTERP_NEAREST)
     self.__timeOffset = None
예제 #4
0
파일: image.py 프로젝트: cmft/taurus
 def __init__(self, param=None):
     XYImageItem.__init__(self, numpy.arange(2), numpy.arange(
         2), numpy.zeros((2, 2)), param=param)
     TaurusBaseImageItem.__init__(self, self.__class__.__name__)