3
ÐÆ‘[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.stereoÚstereoztvtk.scene.magnificationÚmagnificationztvtk.scene.foreground_colorÚ
foregroundztvtk.scene.background_colorÚ
background)r   ÚpreferencesÚevalÚget)ÚprefÚres© r   ú^/home/yuhw/wc/wire-cell-python/venv/lib/python3.6/site-packages/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   Ú	trait_setr   Úrenderer)ÚsceneÚ
prefs_dictr   r   r   Úset_scene_preferences   s    r   )N)Ú__doc__r   r   r   r   r   r   r   Ú<module>   s   