#NEWLINE# def _onPropertyChanged( self , propertySet , propertyName ) : #NEWLINE# #INDENT# om . ObjectModelItem . _onPropertyChanged ( self , propertySet , propertyName ) #NEWLINE# if ( propertyName == 'Updates Enabled' ) : #NEWLINE# #INDENT# if self . getProperty ( 'Updates Enabled' ) : #NEWLINE# #INDENT# self . model . start ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . model . stop ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Edge Filter Angle' ) : #NEWLINE# #INDENT# self . model . reader . SetEdgeAngleThreshold ( self . getProperty ( 'Edge Filter Angle' ) ) #NEWLINE# self . model . showRevolution ( self . model . displayedRevolution ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Alpha' ) : #NEWLINE# #INDENT# self . model . setAlpha ( self . getProperty ( propertyName ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Visible' ) : #NEWLINE# #INDENT# self . model . setVisible ( self . getProperty ( propertyName ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Point Size' ) : #NEWLINE# #INDENT# self . model . setPointSize ( self . getProperty ( propertyName ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Number of Scan Lines' ) : #NEWLINE# #INDENT# self . model . numberOfScanLines = self . getProperty ( propertyName ) #NEWLINE# self . model . initScanLines ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName in ( 'Min Range' , 'Max Range' ) ) : #NEWLINE# #INDENT# self . model . reader . SetDistanceRange ( self . getProperty ( 'Min Range' ) , self . getProperty ( 'Max Range' ) ) #NEWLINE# self . model . showRevolution ( self . model . displayedRevolution ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( propertyName == 'Color By' ) : #NEWLINE# #INDENT# self . _updateColorBy ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self == 'Show Scalar Bar' ) : #NEWLINE# #INDENT# self . _updateScalarBar ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . model . polyDataObj . _renderAllViews ( )