visiannot.visiannot.components.TruncTemporalRangeWidget¶
Summary¶
Module defining TimeEditWidget
Classes¶
|
Widget for selecting truncated temporal range |
API¶
Class TruncTemporalRangeWidget¶
-
class
visiannot.visiannot.components.TruncTemporalRangeWidget.TruncTemporalRangeWidget(visi, widget_position, trunc_duration)[source]¶ Bases:
objectWidget for selecting truncated temporal range
- Parameters
Methods:
call_combo_trunc(ite_trunc, visi)Callback method for selecting a part of the video/signal defined by
trunc_durationvia the combo boxcombo_boxget_trunc_intervals(visi)Gets the strings associated to the truncated temporal ranges
set_trunc(visi)Sets duration of truncated temporal ranges and combo box items
Attributes:
(tuple or list)
(int) Number of frames correpsonding to duration of truncated temporal ranges
(int) Number of splits
(
ComboBox) Combo box for selecting a truncated temporal range-
call_combo_trunc(ite_trunc, visi)[source]¶ Callback method for selecting a part of the video/signal defined by
trunc_durationvia the combo boxcombo_boxConnected to the signal
currentIndexChangedofcombo_box.It sets the temporal range (
ViSiAnnoT.first_frameandViSiAnnoT.last_frame) with the selected value in the combo box. The current frameViSiAnnoT.frame_idis set to the newViSiAnnoT.first_frame. Then it calls the methodViSiAnnoT.update_signal_plot().- Parameters
ite_trunc (int) – index of the selected value in the combo box
combo_box
-
get_trunc_intervals(visi)[source]¶ Gets the strings associated to the truncated temporal ranges
- Parameters
visi – associated instance of
ViSiAnnoT- Returns
list of strings
- Return type
list
-
set_trunc(visi)[source]¶ Sets duration of truncated temporal ranges and combo box items
It sets the attributes
nframes_trunc,combo_box- Parameters
visi – associated instance of
ViSiAnnoT
-
nb_trunc¶ (int) Number of splits
-
nframes_trunc¶ (int) Number of frames correpsonding to duration of truncated temporal ranges
-
trunc_duration¶ (tuple or list)