3
5Ad]5  ã               @   s&   d Z ddlmZ dd„ Zddd„ZdS )	z3
Code to setup the preferences for common objects.
é   )Úpreference_managerc              C   sV   t j} i }t| jdƒƒ|d< t| jdƒƒ|d< t| jdƒƒ|d< t| jdƒƒ|d< |S )	z7Return a dictionary of the scene's default preferences.ztvtk.scene.stereoZstereoztvtk.scene.magnificationZmagnificationztvtk.scene.foreground_colorZ
foregroundztvtk.scene.background_colorÚ
background)r   ZpreferencesÚevalÚget)ÚprefÚres© r   ú‚/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/mayavi-4.7.1-py3.6-linux-x86_64.egg/mayavi/preferences/bindings.pyÚget_scene_preferences   s    r
   Nc             C   s(   |dkrt ƒ }| jf |Ž | j| j_dS )ziSetup the preferences for a scene given a scene and an optional
    dictionary with the preferences.
    N)r
   Z	trait_setr   Zrenderer)ZsceneZ
prefs_dictr   r   r	   Úset_scene_preferences   s    r   )N)Ú__doc__r   r
   r   r   r   r   r	   Ú<module>   s   