(self, visual=None, **kwargs)
Reinitialize a visual, by calling visual.initialize() after
        initialization, just to update the data.
        
        This function retrieves the data of all variables, as specified in
        visual.initialize(), and call paint_manager.set_data with this 
        information.
Reinitialize a visual, by calling visual.initialize() after
        initialization, just to update the data.
        
        This function retrieves the data of all variables, as specified in
        visual.initialize(), and call paint_manager.set_data with this 
        information.
Reinitialize a visual by calling visual . initialize () after initialization just to update the data . This function retrieves the data of all variables as specified in visual . initialize () and call paint_manager . set_data with this information .
def reinitialize_visual(self, visual=None, **kwargs):
        """Reinitialize a visual, by calling visual.initialize() after
        initialization, just to update the data.
        
        This function retrieves the data of all variables, as specified in
        visual.initialize(), and call paint_manager.set_data with this 
        information.
        
        """
        if visual is None:
            visual = 'visual0'
        name = visual
        # retrieve the visual dictionary
        visual = self.scene_creator.get_visual_object(visual)
        # tell the visual we want to reinitialize it
        visual.reinit()
        # resolve the reference variables
        kwargs = visual.resolve_references(**kwargs)
        # handle special keywords (TODO: improve this, maybe by storing this
        # list somewhere)
        data_updating = {}
        data_updating0 = {}
        special_keywords = ['visible',
                            'size',
                            'bounds',
                            'primitive_type',
                            'constrain_ratio',
                            'constrain_navigation',
                            ]
        for kw in special_keywords:
            if kw in kwargs:
                data_updating0[kw] = kwargs.pop(kw)
        # extract common parameters
        # kwargs = visual.extract_common_parameters(**kwargs)
        # call initialize with the new arguments
        visual.initialize(**kwargs)
        # call finalize again in the visual
        visual.finalize()
        # retrieve the updated data for all variables
        data_updating.update(visual.get_data_updating())
        # keywords given here in kwargs have higher priority than those in
        # get_data_updating
        data_updating.update(data_updating0)
        # finally, call set_data
        self.set_data(visual=name, **data_updating)
def reinitialize_visual ( self , visual = None , * * kwargs ) : if visual is None : visual = 'visual0' name = visual # retrieve the visual dictionary visual = self . scene_creator . get_visual_object ( visual ) # tell the visual we want to reinitialize it visual . reinit ( ) # resolve the reference variables kwargs = visual . resolve_references ( * * kwargs ) # handle special keywords (TODO: improve this, maybe by storing this # list somewhere) data_updating = { } data_updating0 = { } special_keywords = [ 'visible' , 'size' , 'bounds' , 'primitive_type' , 'constrain_ratio' , 'constrain_navigation' , ] for kw in special_keywords : if kw in kwargs : data_updating0 [ kw ] = kwargs . pop ( kw ) # extract common parameters # kwargs = visual.extract_common_parameters(**kwargs) # call initialize with the new arguments visual . initialize ( * * kwargs ) # call finalize again in the visual visual . finalize ( ) # retrieve the updated data for all variables data_updating . update ( visual . get_data_updating ( ) ) # keywords given here in kwargs have higher priority than those in # get_data_updating data_updating . update ( data_updating0 ) # finally, call set_data self . set_data ( visual = name , * * data_updating )