Pymecavideo 8.0
Étude cinématique à l'aide de vidéos
etatsGraph.py
1# -*- coding: utf-8 -*-
2
3"""
4 etatsGraph, a module for pymecavideo:
5 a program to track moving points in a video frameset
6
7 Copyright (C) 2023 Georges Khaznadar <georgesk@debian.org>
8
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21"""
22
23from PyQt6.QtCore import Qt, QObject, pyqtSignal, QTimer
24
25import os
26
27from vecteur import vecteur
28from etats import Etats_Base
29
30class Etats(Etats_Base):
31 """
32 Une classe qui permet de définir les états pour le ccordWidget
33 debut, A, AB, B, C, D, E : voir le fichier etats_pymecavideo.html
34 """
35
36 def __init__(self):
37 Etats_Base.__init__(self)
38 return
39
40 def changeEtat(self, etat):
41 self.etat = etat
42 if etat == "debut":
43 pass
44 if etat == "A":
45 # désactive le grapheur si existant
46 if self.graphW:
47 plotItem = self.graphWidget.getPlotItem()
48 plotItem.clear()
49 plotItem.setTitle('')
50 plotItem.hideAxis('bottom')
51 plotItem.hideAxis('left')
52 if etat == "AB":
53 pass
54 if etat == "B":
55 pass
56 if etat == "C":
57 pass
58 if etat == "D":
59 pass
60 if etat == "E":
61 pass
62 return
Une classe qui permet de définir les états pour le ccordWidget debut, A, AB, B, C,...
Definition: etatsGraph.py:34
def changeEtat(self, etat)
Mise en place d'un état de l'interface utilisateur, voir la documentation dans le fichier etat_pymeca...
Definition: etatsGraph.py:40
Une classe qui permet de définir les états pour le pointageWidget debut, A, AB, B,...
Definition: etats.py:30