

def _onPropertyChanged(self, propertySet, propertyName):
    om.ObjectModelItem._onPropertyChanged(self, propertySet, propertyName)
    if (propertyName == 'Updates Enabled'):
        if self.getProperty('Updates Enabled'):
            self.model.start()
        else:
            self.model.stop()
    elif (propertyName == 'Visible'):
        self.model.setVisible(self.getProperty(propertyName))
    elif (propertyName == 'Framerate'):
        self.model.setFPS(self.getProperty('Framerate'))
    elif (propertyName == 'Color By'):
        self._updateColorBy()
    self.model.polyDataObj._renderAllViews()

dataset/ETHPy150Open RobotLocomotion/director/src/python/director/pointcloudlcm.py PointCloudItem._onPropertyChanged/original