<s> from traits . api import Instance <EOL> from tvtk . api import tvtk <EOL> from mayavi . filters . filter_base import FilterBase <EOL> from mayavi . core . pipeline_info import PipelineInfo <EOL> class MaskPoints ( FilterBase ) : <EOL> """<STR_LIT>""" <EOL> __version__ = <NUM_LIT:0> <EOL> filter = Instance ( tvtk . MaskPoints , args = ( ) , allow_none = False , record = True ) <EOL> input_info = PipelineInfo ( datasets = [ '<STR_LIT>' ] , <EOL> attribute_types = [ '<STR_LIT>' ] , <EOL> attributes = [ '<STR_LIT>' ] ) <EOL> output_info = PipelineInfo ( datasets = [ '<STR_LIT>' ] , <EOL> attribute_types = [ '<STR_LIT>' ] , <EOL> attributes = [ '<STR_LIT>' ] ) <EOL> def update_pipeline ( self ) : <EOL> self . filter . maximum_number_of_points = self . _find_number_of_points_in_input ( ) <EOL> super ( MaskPoints , self ) . update_pipeline ( ) <EOL> def _find_number_of_points_in_input ( self ) : <EOL> inp = self . inputs [ <NUM_LIT:0> ] . outputs [ <NUM_LIT:0> ] <EOL> if hasattr ( inp , '<STR_LIT>' ) : <EOL> inp . update ( ) <EOL> inp = self . inputs [ <NUM_LIT:0> ] . get_output_dataset ( ) <EOL> return inp . number_of_points </s>
