BioGTK  5.7.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions
BioGTK.Play Class Reference
Inheritance diagram for BioGTK.Play:

Static Public Member Functions

static Play Create ()
 

Protected Member Functions

 Play (Builder builder, IntPtr handle)
 
void SetupHandlers ()
 Sets up the handlers.
 

Detailed Description

Definition at line 12 of file Play.cs.

Constructor & Destructor Documentation

◆ Play()

BioGTK.Play.Play ( Builder builder,
IntPtr handle )
protected

Definition at line 51 of file Play.cs.

51 : base(handle)
52 {
53 _builder = builder;
54 builder.Autoconnect(this);
56
57 startZ.Adjustment.Upper = ImageView.SelectedImage.SizeZ - 1;
58 startC.Adjustment.Upper = ImageView.SelectedImage.SizeC - 1;
59 startT.Adjustment.Upper = ImageView.SelectedImage.SizeT - 1;
60 endZ.Adjustment.Upper = ImageView.SelectedImage.SizeZ - 1;
61 endC.Adjustment.Upper = ImageView.SelectedImage.SizeC - 1;
62 endT.Adjustment.Upper = ImageView.SelectedImage.SizeT - 1;
63 fpsZ.Adjustment.Upper = 60;
64 fpsC.Adjustment.Upper = 60;
65 fpsT.Adjustment.Upper = 60;
66 startZ.Adjustment.StepIncrement = 1;
67 startC.Adjustment.StepIncrement = 1;
68 startT.Adjustment.StepIncrement = 1;
69 endZ.Adjustment.StepIncrement = 1;
70 endC.Adjustment.StepIncrement = 1;
71 endT.Adjustment.StepIncrement = 1;
72 fpsZ.Adjustment.StepIncrement = 1;
73 fpsC.Adjustment.StepIncrement = 1;
74 fpsT.Adjustment.StepIncrement = 1;
75 fpsZ.Value = 1;
76 fpsC.Value = 1;
77 fpsT.Value = 1;
78 startZ.Value = ImageView.startz;
79 startC.Value = ImageView.startc;
80 startT.Value = ImageView.startt;
81 endZ.Value = ImageView.endz;
82 endC.Value = ImageView.endc;
83 endT.Value = ImageView.endt;
84 App.ApplyStyles(this);
85 }
void SetupHandlers()
Sets up the handlers.
Definition Play.cs:92

Member Function Documentation

◆ Create()

static Play BioGTK.Play.Create ( )
static

The function creates a new instance of the Play class using a Builder object and a Glade file.

Returns
The method is returning an instance of the Play class.

Definition at line 45 of file Play.cs.

46 {
47 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Play.glade", FileMode.Open));
48 return new Play(builder, builder.GetObject("play").Handle);
49 }

◆ SetupHandlers()

void BioGTK.Play.SetupHandlers ( )
protected

Sets up the handlers.

Definition at line 92 of file Play.cs.

93 {
94 startZ.Changed += StartZ_Changed;
95 startC.Changed += StartC_Changed;
96 startT.Changed += StartT_Changed;
97 endZ.Changed += EndZ_Changed;
98 endC.Changed += EndC_Changed;
99 endT.Changed += EndT_Changed;
100 fpsZ.Changed += FpsZ_Changed;
101 fpsC.Changed += FpsC_Changed;
102 fpsT.Changed += FpsT_Changed;
103 this.FocusActivated += Play_FocusActivated;
104 }

The documentation for this class was generated from the following file: