Пример #1
0
    def redraw( self ):
        if self.size is None:
            dobj.blank()
            return

        try:
            self.marklist = draw._save_marked_cameras( self.markmode )
            self.markmode = 0

            library._reader.mode = 1

            dobj.startdraw( self.clear_color )
            draw._frame()
            system.global_draw_object( self.object, self.pdict, self.aspect, 1.0 )
            if self.savefilename:
                dobj.enddraw( self.savefilename )
                self.savefilename = None
            else:
                dobj.enddraw()

            library._reader.mode = 0
        except KeyboardInterrupt:
            self.quit()
        except:
            traceback.print_exc()
            sys.exit(1)
Пример #2
0
 def query_redraw( self, xy ):
     library._reader.mode = 1
     
     draw._save_marked_cameras( 0 )
     dobj.startdraw( self.clear_color, xy )
     draw._frame()
     system.global_draw_object( self.object, self.pdict, self.aspect, 1.0 )
     self.lastqueryresult = dobj.enddraw()
     
     library._reader.mode = 0
Пример #3
0
 def query_redraw( self, xy ):
     library._reader.mode = 1
     
     draw._save_marked_cameras( 0 )
     dobj.startdraw( library.black, xy )
     draw._frame()
     system.event_receivers.reset()
     system.global_draw_object( self.object, self.pdict, self.aspect, 1.0 )
     self.lastqueryresult = dobj.enddraw()
     
     library._reader.mode = 0
Пример #4
0
    def query_redraw(self, xy):
        library._reader.mode = 1

        draw._save_marked_cameras(0)
        dobj.startdraw(library.black, xy)
        draw._frame()
        system.event_receivers.reset()
        system.global_draw_object(self.object, self.pdict, self.aspect, 1.0)
        self.lastqueryresult = dobj.enddraw()

        library._reader.mode = 0
Пример #5
0
    def redraw( self ):
        if self.size is None or self.object is None:
            dobj.blank()
            return

        library._reader.mode = 1
        
        draw._save_marked_cameras( 0 )
        dobj.startdraw( None )
        draw._frame()
        system.event_receivers.reset()
        self.keepalive = system.global_draw_object( self.object, self.pdict, self.aspect, 1.0 )
        if self.grab_filename:
            dobj.enddraw( self.grab_filename )
            self.grab_filename = None
        else:
            dobj.enddraw()

        library._reader.mode = 0
Пример #6
0
    def redraw(self):
        if self.size is None or self.object is None:
            dobj.blank()
            return

        library._reader.mode = 1

        draw._save_marked_cameras(0)
        dobj.startdraw(None)
        draw._frame()
        system.event_receivers.reset()
        self.keepalive = system.global_draw_object(self.object, self.pdict,
                                                   self.aspect, 1.0)
        if self.grab_filename:
            dobj.enddraw(self.grab_filename)
            self.grab_filename = None
        else:
            dobj.enddraw()

        library._reader.mode = 0