Beispiel #1
0
 def pause(self):
     logging.debug("--------------pause-------------")
     self._timer.stop()
     buttleData = ButtleDataSingleton().get()
     if buttleData.getVideoIsPlaying():
         buttleData.setVideoIsPlaying(False)
         # close processGraph and delete it
         buttleData.getProcessGraph().endSequence()
         buttleData.setProcessGraph(None)
     self.framePlayerChanged.emit()
Beispiel #2
0
 def pause(self):
     logging.debug("--------------pause-------------")
     self._timer.stop()
     buttleData = ButtleDataSingleton().get()
     if buttleData.getVideoIsPlaying():
         buttleData.setVideoIsPlaying(False)
         # close processGraph and delete it
         buttleData.getProcessGraph().endSequence()
         buttleData.setProcessGraph(None)
     self.framePlayerChanged.emit()
Beispiel #3
0
 def stop(self):
     logging.debug("--------------stop-------------")
     self._timer.stop()
     buttleData = ButtleDataSingleton().get()
     # if a video is reading, we need to close the processGraph
     if buttleData.getVideoIsPlaying():
         buttleData.setVideoIsPlaying(False)
         # close processGraph and delete it
         buttleData.getProcessGraph().endSequence()
         buttleData.setProcessGraph(None)
         # return to the beginning of the video
     self._frame = 0
     self.framePlayerChanged.emit()
Beispiel #4
0
 def stop(self):
     logging.debug("--------------stop-------------")
     self._timer.stop()
     buttleData = ButtleDataSingleton().get()
     # if a video is reading, we need to close the processGraph
     if buttleData.getVideoIsPlaying():
         buttleData.setVideoIsPlaying(False)
         # close processGraph and delete it
         buttleData.getProcessGraph().endSequence()
         buttleData.setProcessGraph(None)
         # return to the beginning of the video
     self._frame = 0
     self.framePlayerChanged.emit()
Beispiel #5
0
    def launchProcessGraph(self):
        buttleData = ButtleDataSingleton().get()
        #Get the name of the currentNode of the viewer
        node = buttleData.getCurrentViewerNodeName()
        # initialization of the process graph
        graph = buttleData.getGraph().getGraphTuttle()

        # timeRange between the frames of beginning and end (first frame, last frame, step)
        timeRange = tuttle.TimeRange(self._frame, self._nbFrames, 1)
        self._processOptions = tuttle.ComputeOptions(self._frame, self._nbFrames, 1)
        processGraph = tuttle.ProcessGraph(self._processOptions, graph, [node])
        processGraph.setup()
        processGraph.beginSequence(timeRange)
        # communicate processGraph to buttleData
        buttleData.setProcessGraph(processGraph)
        
        buttleData.setVideoIsPlaying(True)
Beispiel #6
0
    def launchProcessGraph(self):
        buttleData = ButtleDataSingleton().get()
        #Get the name of the currentNode of the viewer
        node = buttleData.getCurrentViewerNodeName()
        # initialization of the process graph
        graph = buttleData.getGraph().getGraphTuttle()

        # timeRange between the frames of beginning and end (first frame, last frame, step)
        timeRange = tuttle.TimeRange(self._frame, self._nbFrames, 1)
        self._processOptions = tuttle.ComputeOptions(self._frame,
                                                     self._nbFrames, 1)
        processGraph = tuttle.ProcessGraph(self._processOptions, graph, [node])
        processGraph.setup()
        processGraph.beginSequence(timeRange)
        # communicate processGraph to buttleData
        buttleData.setProcessGraph(processGraph)

        buttleData.setVideoIsPlaying(True)