#NEWLINE# def __init__( self , **traits ) : #NEWLINE# #INDENT# self . property = self . actor . property #NEWLINE# HasTraits . __init__ ( self , ** traits ) #NEWLINE# self . _create_points ( self . radius , self . pos ) #NEWLINE# self . _color_changed ( self . color ) #NEWLINE# self . _visibility_changed ( self . visibility ) #NEWLINE# self . _x_changed ( self . x ) #NEWLINE# self . _y_changed ( self . y ) #NEWLINE# self . _z_changed ( self . z ) #NEWLINE# self . _axis_changed ( numpy . array ( ( 1.0 , 0.0 , 0.0 ) ) , self . axis ) #NEWLINE# self . normals = tvtk . PolyDataNormals ( ) #NEWLINE# configure_input_data ( self . normals , self . polydata ) #NEWLINE# self . normals . update ( ) #NEWLINE# m = tvtk . PolyDataMapper ( ) #NEWLINE# configure_input_data ( m . normals , self . normals . output ) #NEWLINE# self . actor . mapper = m #NEWLINE# self . property = self . actor . property #NEWLINE# self . property . representation = self . representation #NEWLINE# show_actor ( self . actor ) #NEWLINE# self . viewer = get_viewer ( ) #NEWLINE# self . property . on_trait_change ( self . viewer . scene . render ) #NEWLINE# self . actor . on_trait_change ( self . viewer . scene . render )