3
îÈ‘[ƒ  ã               @   sX   d Z ddlmZ ddlmZmZmZ ddlmZ ddl	m
Z
mZmZ G dd„ de
ƒZdS )	z„A custom grid plane with a lot more flexibility than
GridPlane.  This also only works for non-unstructured/non-polygonal
datasets.

é    )ÚInstance)ÚViewÚGroupÚItem)Úcustom_grid_plane)ÚContourGridPlaneÚContourÚActorc            
   @   sz   e Zd Zeejddd�Zeee	ddd�ddd�eee	d	d
�ƒee	dddd�dd�dd�ee	ddd�ddd�ƒZ
dd„ ZdS )ÚCustomGridPlaneFT)Ú
allow_noneÚrecordÚ
grid_planeÚcustom)ÚnameÚstyleZ	GridPlane)Úshow_labelsÚlabelÚenable_contours)r   Úcontourzobject.enable_contours)r   r   Úenabled_when)r   r   )r   Úactorr	   )r   r   c             C   s4   t jƒ | _tddd�| _tƒ | _d| _d| jj_	d S )NTé
   )Zauto_contoursZnumber_of_contoursFé   )
r   r
   r   r   r   r	   r   r   ÚpropertyÚ
point_size)Úself© r   úc/home/yuhw/wc/wire-cell-python/venv/lib/python3.6/site-packages/mayavi/modules/custom_grid_plane.pyÚsetup_pipeline0   s
    
zCustomGridPlane.setup_pipelineN)Ú__name__Ú
__module__Ú__qualname__r   r   Z	Componentr   r   r   r   Úviewr   r   r   r   r   r
      s   

r
   N)Ú__doc__Ú
traits.apir   Útraitsui.apir   r   r   Zmayavi.componentsr   Z!mayavi.modules.contour_grid_planer   r   r	   r
   r   r   r   r   Ú<module>   s
   