a
    «ˆcp  ã                   @   s.   d Z ddlZddlmZ dd„ Zd	dd„ZdS )
z3
Code to setup the preferences for common objects.
é    Né   )Úpreference_managerc                  C   s^   t j} i }t |  d¡¡|d< t |  d¡¡|d< t |  d¡¡|d< t |  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ÚastÚliteral_evalÚget)ZprefÚres© r	   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/mayavi/preferences/bindings.pyÚget_scene_preferences   s    ÿr   c                 C   s,   |du rt ƒ }| jf i |¤Ž | 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	   r
   Ú<module>   s   