parameters: (filename=None)
return_statement: return servermanager._getPyProxy(textureproxy)
docstring: Creates and returns a new vtkTexture.
      The texture is not attached to anything by default but it can be applied
      to things, for example the view, like so.
      >>> GetActiveView().UseTexturedBackground = 1
      >>> GetActiveView().BackgroundTexture = CreateTexture("foo.png")
docstring_summary: Creates and returns a new vtkTexture.
      The texture is not attached to anything by default but it can be applied
      to things, for example the view, like so.
      >>> GetActiveView().UseTexturedBackground = 1
      >>> GetActiveView().BackgroundTexture = CreateTexture("foo.png")
docstring_tokens: Creates and returns a new vtkTexture . The texture is not attached to anything by default but it can be applied to things for example the view like so . >>> GetActiveView () . UseTexturedBackground = 1 >>> GetActiveView () . BackgroundTexture = CreateTexture ( foo . png )
function: def CreateTexture(filename=None):
      """Creates and returns a new vtkTexture.
      The texture is not attached to anything by default but it can be applied
      to things, for example the view, like so.
      >>> GetActiveView().UseTexturedBackground = 1
      >>> GetActiveView().BackgroundTexture = CreateTexture("foo.png")
      """
      pxm = servermanager.ProxyManager()
      textureproxy = pxm.NewProxy("textures", "ImageTexture")
      controller = servermanager.ParaViewPipelineController()
      controller.SMController.RegisterTextureProxy(textureproxy, filename)
      return servermanager._getPyProxy(textureproxy)
function_tokens: def CreateTexture ( filename = None ) : pxm = servermanager . ProxyManager ( ) textureproxy = pxm . NewProxy ( "textures" , "ImageTexture" ) controller = servermanager . ParaViewPipelineController ( ) controller . SMController . RegisterTextureProxy ( textureproxy , filename ) return servermanager . _getPyProxy ( textureproxy )