Module Expr Str Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr body TryExcept body With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Import alias If CompareLt NameLoad Num body Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad orelse Import alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Num Num NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Num orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Str Num If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Num orelse If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad Call NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list decorator_list
N/A N/A 

RenderPipeline

Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

 N/A os N/A atexit panda3d.core Filename VirtualFileSystem get_model_path panda3d.core VirtualFileMountRamdisk direct.stdpy.file join isdir isfile rpcore.rpobject RPObject MountManager N/A RPObject N/A N/A  This classes mounts the required directories for the pipeline to run.
    This is important if the pipeline is in a subdirectory for example. The
    mount manager also handles the lock, storing the current PID into a file
    named instance.pid and ensuring that there is only 1 instance of the
    pipeline running at one time.  __init__ N/A N/A self pipeline N/A N/A N/A  Creates a new mount manager  N/A N/A N/A RPObject __init__ self N/A N/A self _pipeline pipeline N/A N/A self _base_path N/A N/A self _find_basepath N/A N/A self _lock_file instance.pid N/A N/A self _model_paths N/A N/A N/A self _write_path None N/A N/A self _mounted False N/A N/A self _do_cleanup True N/A N/A self _config_dir None N/A N/A N/A self debug Auto-Detected base path to N/A self _base_path N/A N/A N/A atexit register N/A self _on_exit_cleanup N/A write_path N/A N/A self N/A N/A N/A  Returns the write path previously set with set_write_path, or None
        if no write path has been set yet.  N/A N/A self _write_path N/A property write_path N/A N/A self pth N/A N/A N/A  Set a writable directory for generated files. This can be a string
        path name or a multifile with openReadWrite(). If no pathname is set
        then the root directory is used.

        This feature is usually only used for debugging, the pipeline will dump
        all generated shaders and other temporary files to that directory.
        If you don't need this, you can use set_virtual_write_path(), which
        will create the temporary path in the VirtualFileSystem, thus not
        writing any files to disk.  N/A N/A pth None N/A N/A N/A self _write_path None N/A N/A self _lock_file instance.pid N/A N/A N/A self _write_path N/A N/A N/A N/A Filename from_os_specific pth get_fullpath N/A N/A self _lock_file N/A join N/A self _write_path instance.pid N/A N/A write_path setter base_path N/A N/A self N/A N/A N/A  Returns the base path of the pipeline. This returns the path previously
        set with set_base_path, or the auto detected base path if no path was
        set yet  N/A N/A self _base_path N/A property base_path N/A N/A self pth N/A N/A N/A  Sets the path where the base shaders and models on are contained. This
        is usually the root of the rendering pipeline folder  N/A N/A N/A self debug N/A N/A Set base path to ' pth ' N/A N/A self _base_path N/A N/A N/A N/A Filename from_os_specific pth get_fullpath N/A N/A base_path setter config_dir N/A N/A self N/A N/A N/A  Returns the config directory previously set with set_config_dir, or
        None if no directory was set yet  N/A property config_dir N/A N/A self pth N/A N/A N/A  Sets the path to the config directory. Usually this is the config/
        directory located in the pipeline root directory. However, if you want
        to load your own configuration files, you can specify a custom config
        directory here. Your configuration directory should contain the
        pipeline.yaml, plugins.yaml, daytime.yaml and configuration.prc.

        It is highly recommended you use the pipeline provided config files, modify
        them to your needs, and as soon as you think they are in a final version,
        copy them over. Please also notice that you should keep your config files
        up-to-date, e.g. when new configuration variables are added.

        Also, specifying a custom configuration_dir disables the functionality
        of the PluginConfigurator and DayTime editor, since they operate on the
        pipelines default config files.

        Set the directory to None to use the default directory.  N/A N/A self _config_dir N/A N/A N/A N/A Filename from_os_specific pth get_fullpath N/A N/A config_dir setter do_cleanup N/A N/A self N/A N/A N/A  Returns whether the mount manager will attempt to cleanup the
        generated files after the application stopped running  N/A N/A self _do_cleanup N/A property do_cleanup N/A N/A self cleanup N/A N/A N/A  Sets whether to cleanup the tempfolder after the application stopped.
        This is mostly useful for debugging, to analyze the generated tempfiles
        even after the pipeline stopped running  N/A N/A self _do_cleanup cleanup N/A N/A do_cleanup setter get_lock N/A N/A self N/A N/A N/A  Checks if we are the only instance running. If there is no instance
        running, write the current PID to the instance.pid file. If the
        instance file exists, checks if the specified process still runs. This
        way only 1 instance of the pipeline can be run at one time.  N/A N/A isfile N/A self _lock_file N/A N/A N/A N/A N/A open N/A self _lock_file r handle N/A N/A pid N/A int N/A N/A handle readline N/A N/A N/A IOError N/A msg N/A N/A N/A N/A self error Failed to read lockfile: msg N/A False N/A N/A N/A self _is_pid_running pid N/A N/A N/A N/A self error Found running instance N/A False N/A N/A N/A self _write_lock N/A True N/A N/A N/A N/A self _write_lock N/A True N/A _find_basepath N/A N/A self N/A N/A N/A  Attempts to find the pipeline base path by looking at the location
        of this file  N/A pth N/A N/A N/A os path abspath N/A join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ .. N/A N/A N/A N/A N/A Filename from_os_specific pth get_fullpath N/A _is_pid_running N/A N/A self pid N/A N/A N/A  Checks if a pid is still running  N/A N/A N/A os name posix N/A N/A errno N/A N/A pid 0 N/A N/A False N/A N/A N/A N/A N/A os kill pid 0 N/A N/A N/A OSError N/A err N/A N/A N/A N/A err errno N/A errno EPERM N/A N/A True N/A N/A ctypes N/A kernel32 N/A N/A ctypes windll kernel32 N/A process N/A N/A kernel32 OpenProcess 1048576 0 pid N/A N/A process 0 N/A N/A N/A N/A kernel32 CloseHandle process N/A True N/A N/A False N/A _write_lock N/A N/A self N/A N/A N/A  Internal method to write the current process id to the instance.pid
        lockfile. This is used to ensure no second instance of the pipeline is
        running.  N/A N/A open N/A self _lock_file w handle N/A N/A N/A N/A handle write N/A str N/A N/A os getpid N/A _try_remove N/A N/A self fname N/A N/A N/A  Tries to remove the specified filename, returns either True or False
        depending if we had success or not  N/A N/A N/A N/A N/A os remove fname N/A True N/A N/A N/A N/A IOError OSError N/A N/A N/A False N/A _on_exit_cleanup N/A N/A self N/A N/A N/A  Gets called when the application exists  N/A N/A self _do_cleanup N/A N/A N/A N/A self debug Cleaning up .. N/A N/A N/A self _write_path None N/A N/A N/A N/A self _try_remove N/A self _lock_file N/A fname N/A N/A os listdir N/A self _write_path N/A N/A pth N/A join N/A self _write_path fname N/A N/A N/A isfile pth N/A N/A fname startswith $$ N/A N/A N/A N/A self _try_remove pth N/A N/A N/A len N/A N/A os listdir N/A self _write_path 1 N/A N/A N/A N/A N/A N/A os removedirs N/A self _write_path N/A N/A N/A IOError N/A N/A N/A is_mounted N/A N/A self N/A N/A N/A  Returns whether the MountManager was already mounted by calling
        mount()  N/A N/A self _mounted N/A property mount N/A N/A self N/A N/A N/A  Inits the VFS Mounts. This creates the following virtual directory
        structure, from which all files can be located:

        /$$rp/  (Mounted from the render pipeline base directory)
           + rpcore/
           + shader/
           + ...

        /$rpconfig/ (Mounted from config/, may be set by user)
           + pipeline.yaml
           + ...

        /$$rptemp/ (Either ramdisk or user specified)
            + day_time_config
            + shader_auto_config
            + ...

        /$$rpshader/ (Link to /$$rp/rpcore/shader)

          N/A N/A N/A self debug Setting up virtual filesystem N/A N/A self _mounted True convert_path N/A N/A pth N/A N/A N/A N/A N/A N/A N/A Filename from_os_specific pth get_fullpath N/A N/A vfs N/A N/A VirtualFileSystem get_global_ptr N/A N/A N/A self _config_dir None N/A N/A config_dir N/A convert_path N/A join N/A self _base_path config/ N/A N/A N/A self debug Mounting auto-detected config dir: config_dir N/A N/A N/A vfs mount config_dir /$$rpconfig 0 N/A N/A N/A N/A self debug Mounting custom config dir: N/A self _config_dir N/A N/A N/A vfs mount N/A convert_path N/A self _config_dir /$$rpconfig 0 N/A N/A N/A vfs mount N/A convert_path N/A self _base_path /$$rp 0 N/A N/A N/A vfs mount N/A convert_path N/A join N/A self _base_path rpcore/shader /$$rp/shader 0 N/A N/A N/A vfs mount N/A convert_path N/A join N/A self _base_path effects effects 0 N/A N/A N/A self _write_path None N/A N/A N/A N/A self debug Mounting ramdisk as /$$rptemp N/A N/A N/A vfs mount N/A VirtualFileMountRamdisk /$$rptemp 0 N/A N/A N/A N/A isdir N/A self _write_path N/A N/A N/A N/A self debug Creating temporary path, since it does not exist yet N/A N/A N/A N/A N/A os makedirs N/A self _write_path N/A N/A N/A IOError N/A msg N/A N/A N/A N/A self fatal Failed to create temporary path: msg N/A N/A N/A self debug Mounting N/A self _write_path as /$$rptemp N/A N/A N/A vfs mount N/A convert_path N/A self _write_path /$$rptemp 0 N/A N/A N/A N/A get_model_path prepend_directory /$$rp N/A N/A N/A N/A get_model_path prepend_directory /$$rp/shader N/A N/A N/A N/A get_model_path prepend_directory /$$rptemp N/A unmount N/A N/A self N/A N/A N/A  Unmounts the VFS  N/A N/A NotImplementedError TODO N/A N/A