#NEWLINE# def __init__( self , model ) : #NEWLINE# #INDENT# om . ObjectModelItem . __init__ ( self , 'Multisense' , om . Icons . Laser ) #NEWLINE# self . model = model #NEWLINE# self . scalarBarWidget = None #NEWLINE# self . addProperty ( 'Color By' , 0 , attributes = om . PropertyAttributes ( enumNames = [ 'Solid Color' , 'Intensity' , 'Z Coordinate' , 'Range' , 'Spindle Angle' , 'Azimuth' , 'Camera RGB' , 'Scan Delta' ] ) ) #NEWLINE# self . addProperty ( 'Show Scalar Bar' , False ) #NEWLINE# self . addProperty ( 'Updates Enabled' , True ) #NEWLINE# self . addProperty ( 'Min Range' , model . reader . GetDistanceRange ( ) [ 0 ] , attributes = om . PropertyAttributes ( decimals = 2 , minimum = 0.0 , maximum = 100.0 , singleStep = 0.25 , hidden = False ) ) #NEWLINE# self . addProperty ( 'Max Range' , model . reader . GetDistanceRange ( ) [ 1 ] , attributes = om . PropertyAttributes ( decimals = 2 , minimum = 0.0 , maximum = 100.0 , singleStep = 0.25 , hidden = False ) ) #NEWLINE# self . addProperty ( 'Edge Filter Angle' , model . reader . GetEdgeAngleThreshold ( ) , attributes = om . PropertyAttributes ( decimals = 0 , minimum = 0.0 , maximum = 60.0 , singleStep = 1 , hidden = False ) ) #NEWLINE# self . addProperty ( 'Number of Scan Lines' , model . numberOfScanLines , attributes = om . PropertyAttributes ( decimals = 0 , minimum = 0 , maximum = 100 , singleStep = 1 , hidden = False ) ) #NEWLINE# self . addProperty ( 'Visible' , model . visible ) #NEWLINE# self . addProperty ( 'Point Size' , self . pointSize , attributes = om . PropertyAttributes ( decimals = 0 , minimum = 1 , maximum = 20 , singleStep = 1 , hidden = False ) ) #NEWLINE# self . addProperty ( 'Alpha' , model . alpha , attributes = om . PropertyAttributes ( decimals = 2 , minimum = 0 , maximum = 1.0 , singleStep = 0.1 , hidden = False ) )