#NEWLINE# def _enable_contours_changed( self , value ) : #NEWLINE# #INDENT# 'Turns on and off the contours.' #NEWLINE# if ( self . module_manager is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if value : #NEWLINE# #INDENT# self . actor . inputs = [ self . contour ] #NEWLINE# if self . contour . filled_contours : #NEWLINE# #INDENT# self . actor . mapper . scalar_mode = 'use_cell_data' #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . actor . inputs = [ self . grid_plane ] #NEWLINE# self . actor . mapper . scalar_mode = 'default' #NEWLINE# #UNINDENT# self . render ( )