Pymecavideo 8.0
Étude cinématique à l'aide de vidéos
etatsTraj.py
1# -*- coding: utf-8 -*-
2
3"""
4 etatsTraj, 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 """
42 actions à faire en cas de changement d'état
43 @param etat : debut, A, AB, B, C, D, E
44 """
45 self.etat = etat
46 if etat =="debut":
47 for obj in self.button_video, self.widget_chronophoto:
48 obj.setEnabled(False)
49 # initialisation de self.trajW
50 self.trajW.chrono = False
51 # on cache certains widgets
52 for obj in self.radioButtonNearMouse, \
53 self.radioButtonSpeedEveryWhere:
54 obj.hide()
55 elif etat =="A":
56 self.spinBox_chrono.setMaximum(self.pointage.image_max)
57 elif etat =="AB":
58 pass
59 elif etat =="B":
60 pass
61 elif etat =="C":
62 pass
63 elif etat =="D":
64 self.comboBox_referentiel.setEnabled(True)
65 self.comboBox_referentiel.clear()
66 self.comboBox_referentiel.insertItem(-1, "camera")
67 for obj in self.pointage.suivis:
68 self.comboBox_referentiel.insertItem(
69 -1, self.tr("objet N° {0}").format(str(obj)))
70 pass
71 elif etat =="E":
72 pass
73 return
Une classe qui permet de définir les états pour le ccordWidget debut, A, AB, B, C,...
Definition: etatsTraj.py:34
def changeEtat(self, etat)
actions à faire en cas de changement d'état
Definition: etatsTraj.py:44
Une classe qui permet de définir les états pour le pointageWidget debut, A, AB, B,...
Definition: etats.py:30