Beispiel #1
0
 def sendMessages(self):
     msg = coGRAnimationOnMsg( self.params.animateOn)
     covise.sendRendMsg(msg.c_str())
     msg = coGRSetAnimationSpeedMsg( self.params.animationSpeed, self.params.animationSpeedMin, self.params.animationSpeedMax )
     covise.sendRendMsg(msg.c_str())
     if (not self.params.animateOn):
         msg = coGRSetTimestepMsg( self.params.actTimeStep, self.params.numTimeSteps)
         covise.sendRendMsg(msg.c_str())
Beispiel #2
0
 def sendMessages(self):
     msg = coGRAnimationOnMsg(self.params.animateOn)
     covise.sendRendMsg(msg.c_str())
     msg = coGRSetAnimationSpeedMsg(self.params.animationSpeed,
                                    self.params.animationSpeedMin,
                                    self.params.animationSpeedMax)
     covise.sendRendMsg(msg.c_str())
     if (not self.params.animateOn):
         msg = coGRSetTimestepMsg(self.params.actTimeStep,
                                  self.params.numTimeSteps)
         covise.sendRendMsg(msg.c_str())
Beispiel #3
0
 def emitAnimationModeOn(self):
     self.widget().ToStartButton.setEnabled(False)
     self.widget().BackButton.setEnabled(False)
     self.widget().PlayButton.setEnabled(False)
     self.widget().StopButton.setEnabled(True)
     self.widget().ForwardButton.setEnabled(False)
     self.widget().ToEndButton.setEnabled(False)
     params = ObjectMgr().getParamsOfObject(0)
     params.animateOn = True
     ObjectMgr().setParams(0, params)
     msg = coGRAnimationOnMsg(True)
     covise.sendRendMsg(msg.c_str())
Beispiel #4
0
 def emitAnimationModeOn(self):
     self.widget().ToStartButton.setEnabled(False)
     self.widget().BackButton.setEnabled(False)
     self.widget().PlayButton.setEnabled(False)
     self.widget().StopButton.setEnabled(True)
     self.widget().ForwardButton.setEnabled(False)
     self.widget().ToEndButton.setEnabled(False)
     params = ObjectMgr().getParamsOfObject(0)
     params.animateOn = True
     ObjectMgr().setParams(0, params)
     msg = coGRAnimationOnMsg(True)
     covise.sendRendMsg(msg.c_str())
Beispiel #5
0
 def emitAnimationModeOff(self):
     self.widget().ToStartButton.setEnabled(True)
     self.widget().BackButton.setEnabled(True)
     self.widget().PlayButton.setEnabled(True)
     self.widget().StopButton.setEnabled(False)
     self.widget().ForwardButton.setEnabled(True)
     self.widget().ToEndButton.setEnabled(True)
     params = ObjectMgr().getParamsOfObject(0)
     params.animateOn = False
     # enhance timestep because renderer gets message in next frame
     params.actTimeStep = int (self.widget().timestepSlider.getValue()+1)
     self.widget().timestepSlider.setValue(params.actTimeStep)
     ObjectMgr().setParams(0, params)
     msg = coGRAnimationOnMsg( False)
     covise.sendRendMsg(msg.c_str())
Beispiel #6
0
 def emitAnimationModeOff(self):
     self.widget().ToStartButton.setEnabled(True)
     self.widget().BackButton.setEnabled(True)
     self.widget().PlayButton.setEnabled(True)
     self.widget().StopButton.setEnabled(False)
     self.widget().ForwardButton.setEnabled(True)
     self.widget().ToEndButton.setEnabled(True)
     params = ObjectMgr().getParamsOfObject(0)
     params.animateOn = False
     # enhance timestep because renderer gets message in next frame
     params.actTimeStep = int(self.widget().timestepSlider.getValue() + 1)
     self.widget().timestepSlider.setValue(params.actTimeStep)
     ObjectMgr().setParams(0, params)
     msg = coGRAnimationOnMsg(False)
     covise.sendRendMsg(msg.c_str())