예제 #1
0
파일: pyplot.py 프로젝트: dragoljub/galry
 def __init__(self, *args, **kwargs):
     self.visuals = ordict()
     self.handlers = ordict()
     self.processors = ordict()
     self.bindings = []
     self.viewbox = (None, None, None, None)
     
     self.constrain_ratio = None
     self.constrain_navigation = None
     self.display_fps = None
     self.activate3D = None
     self.antialiasing = None
     self.activate_grid = True
     self.show_grid = False
     self.activate_help = True
     self.animation_interval = None
     self.figsize = (GalryWidget.w, GalryWidget.h)
     self.toolbar = True
     self.autosave = None
     self.autodestruct = None
     
     self.pmclass = kwargs.pop('paint_manager', mgs.PlotPaintManager)
     self.imclass = kwargs.pop('interaction_manager', mgs.PlotInteractionManager)
     self.bindingsclass = kwargs.pop('bindings', mgs.PlotBindings)
     
     self.initialize(*args, **kwargs)
예제 #2
0
    def __init__(self, *args, **kwargs):
        self.visuals = ordict()
        self.handlers = ordict()
        self.processors = ordict()
        self.bindings = []
        self.viewbox = (None, None, None, None)

        self.constrain_ratio = None
        self.constrain_navigation = None
        self.display_fps = None
        self.activate3D = None
        self.antialiasing = None
        self.activate_grid = True
        self.show_grid = False
        self.activate_help = True
        self.momentum = False
        self.figsize = (GalryWidget.w, GalryWidget.h)
        self.toolbar = True
        self.autosave = None
        self.autodestruct = None

        self.pmclass = kwargs.pop('paint_manager', mgs.PlotPaintManager)
        self.imclass = kwargs.pop('interaction_manager',
                                  mgs.PlotInteractionManager)
        self.bindingsclass = kwargs.pop('bindings', mgs.PlotBindings)

        self.initialize(*args, **kwargs)

        if self.momentum:
            self.animation_interval = .01
        else:
            self.animation_interval = None
예제 #3
0
 def __init__(self):
     self.base_cursor = 'ArrowCursor'
     self.text = None
     self.binding = ordict()
     self.descriptions = ordict()
     self.initialize_default()
     self.initialize()
예제 #4
0
 def __init__(self, parent):
     super(InteractionManager, self).__init__(parent)
     self.cursor = None
     self.prev_event = None
     self.processors = ordict()
     self.initialize_default(constrain_navigation=self.parent.constrain_navigation)
     self.initialize()
예제 #5
0
 def __init__(self, parent):
     super(InteractionManager, self).__init__(parent)
     self.cursor = None
     self.prev_event = None
     self.processors = ordict()
     self.initialize_default(
         constrain_navigation=self.parent.constrain_navigation)
     self.initialize()
예제 #6
0
파일: pyplot.py 프로젝트: lijinhui/galry
    def __init__(self, *args, **kwargs):
        self.visuals = ordict()
        self.handlers = ordict()
        self.processors = ordict()
        self.bindings = []
        self.viewbox = (None, None, None, None)
        
        self.constrain_ratio = None
        self.constrain_navigation = None
        self.display_fps = None
        self.activate3D = None
        self.antialiasing = None
        self.activate_grid = True
        self.activate_help = True
        self.animation_interval = None
        self.figsize = (GalryWidget.width, GalryWidget.height)

        self.pmclass = mgs.PlotPaintManager
        self.imclass = mgs.PlotInteractionManager
        self.bindingsclass = mgs.PlotBindings
        
        self.initialize(*args, **kwargs)