def emitAnimationSpeed(self): params = ObjectMgr().getParamsOfObject(0) params.animationSpeed = self.widget().sliderSpeed.getValue() self.animSpeed = params.animationSpeed ObjectMgr().setParams(0, params) msg = coGRSetAnimationSpeedMsg( params.animationSpeed, params.animationSpeedMin, params.animationSpeedMax ) covise.sendRendMsg(msg.c_str())
def __getParams(self): data = ObjectMgr().getParamsOfObject(0) if data.numTimeSteps > 1: data.actTimeStep = self.widget().timestepSlider.getValue() data.animationSpeed = self.widget().sliderSpeed.getValue() return data
def __getParams(self): data = ObjectMgr().getParamsOfObject(0) if data.numTimeSteps > 1: data.actTimeStep = self.widget().timestepSlider.getValue() data.animationSpeed = self.widget().sliderSpeed.getValue() return data
def emitAnimationSpeed(self): params = ObjectMgr().getParamsOfObject(0) params.animationSpeed = self.widget().sliderSpeed.getValue() self.animSpeed = params.animationSpeed ObjectMgr().setParams(0, params) msg = coGRSetAnimationSpeedMsg(params.animationSpeed, params.animationSpeedMin, params.animationSpeedMax) covise.sendRendMsg(msg.c_str())