(self, event=None, args=None, do_update=None)
Process user interaction.
        
        This method is called after each user action (mouse, keyboard...).
        It finds the right action associated to the command, then the event 
        associated to that action.
        
        Arguments:
          * event=None: if None, the current event associated to the current
            user action is retrieved. Otherwise, an event can be directly
            passed here to force the trigger of any interaction event.
          * args=None: the arguments of the event if event is not None.
Process user interaction.
        
        This method is called after each user action (mouse, keyboard...).
        It finds the right action associated to the command, then the event 
        associated to that action.
        
        Arguments:
          * event=None: if None, the current event associated to the current
            user action is retrieved. Otherwise, an event can be directly
            passed here to force the trigger of any interaction event.
          * args=None: the arguments of the event if event is not None.
Process user interaction . This method is called after each user action ( mouse keyboard ... ) . It finds the right action associated to the command then the event associated to that action . Arguments : * event = None : if None the current event associated to the current user action is retrieved . Otherwise an event can be directly passed here to force the trigger of any interaction event . * args = None : the arguments of the event if event is not None .
def process_interaction(self, event=None, args=None, do_update=None):
        """Process user interaction.
        
        This method is called after each user action (mouse, keyboard...).
        It finds the right action associated to the command, then the event 
        associated to that action.
        
        Arguments:
          * event=None: if None, the current event associated to the current
            user action is retrieved. Otherwise, an event can be directly
            passed here to force the trigger of any interaction event.
          * args=None: the arguments of the event if event is not None.
        
        """
        if event is None:
            # get current event from current user action
            event, args = self.get_current_event()
        
        
        if event == 'Animate' and self.block_refresh:
            return
        
        
        prev_event = self.interaction_manager.prev_event
        
        # handle interaction mode change
        if event == 'SwitchInteractionMode':
            binding = self.switch_interaction_mode()
            log_debug("Switching interaction mode to %s." % \
                binding.__class__.__name__)
        
        # process the interaction event
        self.interaction_manager.process_event(event, args)
        
        # raise a signal if there is one associated to the current event
        if event in self.events_to_signals:
            self.events_to_signals[event].emit(*args)
        
        # set cursor
        self.set_current_cursor()
        
        # clean current action (unique usage)
        self.user_action_generator.clean_action()
        
        # update the OpenGL view
        if do_update is None:
            do_update = (
                # (not isinstance(self, GalryTimerWidget)) and
                (event is not None or prev_event is not None))
                
        if do_update:
            self.updateGL()
def process_interaction ( self , event = None , args = None , do_update = None ) : if event is None : # get current event from current user action event , args = self . get_current_event ( ) if event == 'Animate' and self . block_refresh : return prev_event = self . interaction_manager . prev_event # handle interaction mode change if event == 'SwitchInteractionMode' : binding = self . switch_interaction_mode ( ) log_debug ( "Switching interaction mode to %s." % binding . __class__ . __name__ ) # process the interaction event self . interaction_manager . process_event ( event , args ) # raise a signal if there is one associated to the current event if event in self . events_to_signals : self . events_to_signals [ event ] . emit ( * args ) # set cursor self . set_current_cursor ( ) # clean current action (unique usage) self . user_action_generator . clean_action ( ) # update the OpenGL view if do_update is None : do_update = ( # (not isinstance(self, GalryTimerWidget)) and ( event is not None or prev_event is not None ) ) if do_update : self . updateGL ( )