peng3d/world.py
def addView(self,view):
        """
        Adds the supplied :py:class:`WorldView()` object to the internal registry.
        
        The same restrictions as for cameras apply, e.g. no duplicate names.
        
        Additionally, only instances of :py:class:`WorldView()` may be used, everything else raises a :py:exc:`TypeError`\ .
        """
        if not isinstance(view,WorldView):
            raise TypeError("view is not of type WorldView!")
        self.views[view.name]=view
def addView(self,view):
        """
        Adds the supplied :py:class:`WorldView()` object to the internal registry.
        
        The same restrictions as for cameras apply, e.g. no duplicate names.
        
        Additionally, only instances of :py:class:`WorldView()` may be used, everything else raises a :py:exc:`TypeError`\ .
        """
        if not isinstance(view,WorldView):
            raise TypeError("view is not of type WorldView!")
        self.views[view.name]=view
def addView ( self , view ) : if not isinstance ( view , WorldView ) : raise TypeError ( "view is not of type WorldView!" ) self . views [ view . name ] = view
Adds the supplied :py:class:`WorldView()` object to the internal registry.
        
        The same restrictions as for cameras apply, e.g. no duplicate names.
        
        Additionally, only instances of :py:class:`WorldView()` may be used, everything else raises a :py:exc:`TypeError`\ .
Adds the supplied : py : class : WorldView () object to the internal registry . The same restrictions as for cameras apply e . g . no duplicate names . Additionally only instances of : py : class : WorldView () may be used everything else raises a : py : exc : TypeError \ .