(self, view, location)
Adds a new view.

    Args:
      view: renderer.BaseViewportView instance.
      location: Value defined in PanelLocation enum, location of the view in the
        viewport.
Adds a new view.
Adds a new view .
def add(self, view, location):
    """Adds a new view.

    Args:
      view: renderer.BaseViewportView instance.
      location: Value defined in PanelLocation enum, location of the view in the
        viewport.
    """
    if not isinstance(view, BaseViewportView):
      raise TypeError(
          'View added to this layout needs to implement BaseViewportView.')
    self._views[view] = location
def add ( self , view , location ) : if not isinstance ( view , BaseViewportView ) : raise TypeError ( 'View added to this layout needs to implement BaseViewportView.' ) self . _views [ view ] = location