Exemple #1
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self, logger=logger, rgbmap=rgbmap, settings=settings)

        self.pgcanvas = None

        # format for rendering image on HTML5 canvas
        # NOTE: 'jpeg' has much better performance than 'png', but can show
        # some artifacts, especially noticeable with small text
        self.t_.setDefaults(html5_canvas_format="jpeg")
Exemple #2
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self, logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.tkcanvas = None
        self.tkphoto = None

        self._defer_task = None
        self.msgtask = None
Exemple #3
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self,
                           logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.tkcanvas = None
        self.tkphoto = None

        self._defer_task = None
        self.msgtask = None
Exemple #4
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self, logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.pgcanvas = None

        # format for rendering image on HTML5 canvas
        # NOTE: 'jpeg' has much better performance than 'png', but can show
        # some artifacts, especially noticeable with small text
        self.t_.setDefaults(html5_canvas_format=default_html_fmt)
Exemple #5
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewAgg.__init__(self, logger=logger,
                              rgbmap=rgbmap,
                              settings=settings)

        self.tkcanvas = None
        self.tkphoto = None

        self.msgtask = None

        # see reschedule_redraw() method
        self._defer_task = None
Exemple #6
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self, logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.jp_img = None
        self.jp_evt = None
        # Format 'png' is ok with 'RGBA', but 'jpeg' only works with 'RGB'
        self.rgb_order = 'RGB'

        self._defer_task = None
        self.msgtask = None
Exemple #7
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewAgg.__init__(self,
                              logger=logger,
                              rgbmap=rgbmap,
                              settings=settings)

        self.tkcanvas = None
        self.tkphoto = None

        self.msgtask = None

        # see reschedule_redraw() method
        self._defer_task = None
Exemple #8
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self,
                           logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.jp_img = None
        self.jp_evt = None
        # Format 'png' is ok with 'RGBA', but 'jpeg' only works with 'RGB'
        self.rgb_order = 'RGB'

        self._defer_task = None
        self.msgtask = None
Exemple #9
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self,
                           logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.pgcanvas = None

        # format for rendering image on HTML5 canvas
        # NOTE: 'jpeg' has much better performance than 'png', but can show
        # some artifacts, especially noticeable with small text
        self.t_.set_defaults(html5_canvas_format=default_html_fmt)

        # Format 'png' is ok with 'RGBA', but 'jpeg' only works with 'RGB'
        self.rgb_order = 'RGB'
        # this should already be so, but just in case...
        self.defer_redraw = True
Exemple #10
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewSS.__init__(self, logger=logger,
                             rgbmap=rgbmap,
                             settings=settings)

        # Our Bokeh plot
        self.figure = None
        # Holds the image on the plot
        self.bkimage = None
        self._push_server = False

        # NOTE: Bokeh manages it's Y coordinates by default with
        # the origin at the bottom (see base class)
        self._originUpper = False

        # override, until we can get access to a timer
        #self.defer_redraw = False

        self.msgtask = None
        # see reschedule_redraw() method
        self._defer_task = None
Exemple #11
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewSS.__init__(self, logger=logger,
                             rgbmap=rgbmap,
                             settings=settings)

        # Our Bokeh plot
        self.figure = None
        # Holds the image on the plot
        self.bkimage = None
        self._push_server = False

        # NOTE: Bokeh manages it's Y coordinates by default with
        # the origin at the bottom (see base class)
        self._originUpper = False

        # override, until we can get access to a timer
        #self.defer_redraw = False

        self.msgtask = None
        # see reschedule_redraw() method
        self._defer_task = None
Exemple #12
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewSS.__init__(self, logger=logger,
                             rgbmap=rgbmap,
                             settings=settings)

        # Our Bokeh plot
        self.figure = None
        # Holds the image on the plot
        self.bkimage = None
        self.d_src = None
        self._push_handle = None

        # NOTE: Bokeh manages it's Y coordinates by default with
        # the origin at the bottom (see base class)
        self.origin_upper = True
        self._invert_y = True

        # override, until we can get access to a timer
        self.defer_redraw = True

        # For timing events
        self._msg_timer = 0
        self._defer_timer = 0
Exemple #13
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageViewSS.__init__(self, logger=logger,
                             rgbmap=rgbmap,
                             settings=settings)

        # Our Bokeh plot
        self.figure = None
        # Holds the image on the plot
        self.bkimage = None
        self.d_src = None
        self._push_handle = None

        # NOTE: Bokeh manages it's Y coordinates by default with
        # the origin at the bottom (see base class)
        self.origin_upper = True
        self._invert_y = True

        # override, until we can get access to a timer
        self.defer_redraw = True

        # For timing events
        self._msg_timer = 0
        self._defer_timer = 0
Exemple #14
0
    def __init__(self, logger=None, rgbmap=None, settings=None):
        ImageView.__init__(self, logger=logger,
                           rgbmap=rgbmap,
                           settings=settings)

        self.pgcanvas = None