#NEWLINE# def __init__( self , **traits ) : #NEWLINE# #INDENT# self . property = self . actor . property #NEWLINE# HasTraits . __init__ ( self , ** traits ) #NEWLINE# self . _create_points ( traits . radius , self . height , self . pos , self . axis ) #NEWLINE# self . _pos_changed ( numpy . array ( [ 0.0 , 0.0 , 0.0 ] ) , self . pos ) #NEWLINE# self . _x_changed ( self . x ) #NEWLINE# self . _y_changed ( self . y ) #NEWLINE# self . _z_changed ( self . z ) #NEWLINE# self . _color_changed ( self . color ) #NEWLINE# m = tvtk . PolyDataMapper ( ) #NEWLINE# configure_input_data ( m , self . polydata ) #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 )