parameters: (self, o=None)
docstring: Toggle or set visibility of given overlay and update view.
             The parameter can be a boolean - which sets the visibility of
             all overlays accordingly - an overlay object or the index
             of the overlay to be hidden/re-shown. If it is omitted, all
             overlays will be toggled.
docstring_summary: Toggle or set visibility of given overlay and update view.
             The parameter can be a boolean - which sets the visibility of
             all overlays accordingly - an overlay object or the index
             of the overlay to be hidden/re-shown. If it is omitted, all
             overlays will be toggled.
docstring_tokens: Toggle or set visibility of given overlay and update view . The parameter can be a boolean - which sets the visibility of all overlays accordingly - an overlay object or the index of the overlay to be hidden / re - shown . If it is omitted all overlays will be toggled .
function: def toggleOverlayVisibility(self, o=None):
          '''Toggle or set visibility of given overlay and update view.
             The parameter can be a boolean - which sets the visibility of
             all overlays accordingly - an overlay object or the index
             of the overlay to be hidden/re-shown. If it is omitted, all
             overlays will be toggled.
          '''
          if o is None:
              for k in self.overlays:
                  k.setVisible(not k.isVisible())
          elif type(o) is bool:
              for k in self.overlays:
                  k.setVisible(o)
          else:
              if type(o) is int:
                  o = self.overlays[o]
              o.setVisible(not o.isVisible())
          self.update()
function_tokens: def toggleOverlayVisibility ( self , o = None ) : if o is None : for k in self . overlays : k . setVisible ( not k . isVisible ( ) ) elif type ( o ) is bool : for k in self . overlays : k . setVisible ( o ) else : if type ( o ) is int : o = self . overlays [ o ] o . setVisible ( not o . isVisible ( ) ) self . update ( )