BioGTK  6.5.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioGTK.PlateTool Class Reference
Inheritance diagram for BioGTK.PlateTool:

Static Public Member Functions

static PlateTool Create ()
 

Protected Member Functions

 PlateTool (Builder builder, IntPtr handle)
 

Detailed Description

Definition at line 14 of file Plate.cs.

Constructor & Destructor Documentation

◆ PlateTool()

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

Definition at line 63 of file Plate.cs.

63 : base(handle)
64 {
65 _builder = builder;
66 builder.Autoconnect(this);
67
68 Title = BuildTitle();
69 SetDefaultSize(1200, 900);
70
71 pictureBox.CanFocus = true;
72 pictureBox.Drawn += PictureBox_Drawn;
73 pictureBox.ButtonPressEvent += PictureBox_ButtonPressEvent;
74 pictureBox.KeyPressEvent += PictureBox_KeyPressEvent;
75 pictureBox.ScrollEvent += PictureBox_ScrollEvent;
76 pictureBox.AddEvents((int)(EventMask.ButtonPressMask
77 | EventMask.ButtonReleaseMask
78 | EventMask.KeyPressMask
79 | EventMask.PointerMotionMask
80 | EventMask.ScrollMask));
81
82 App.ApplyStyles(this);
83 RebuildPlateLayout();
84 }

Member Function Documentation

◆ Create()

static PlateTool BioGTK.PlateTool.Create ( )
static

Definition at line 41 of file Plate.cs.

42 {
43 if (ImageView.SelectedImage?.Plate == null || ImageView.SelectedImage.Type != BioImage.ImageType.well)
44 {
45 var dialog = new MessageDialog(
46 null,
47 DialogFlags.Modal,
48 MessageType.Info,
49 ButtonsType.Ok,
50 "The current image does not contain a well plate.");
51 dialog.Run();
52 dialog.Destroy();
53 return null;
54 }
55
56 string gladePath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Environment.ProcessPath) ?? string.Empty, "Glade", "Plate.glade");
57 Builder builder = new Builder(new FileStream(gladePath, FileMode.Open, FileAccess.Read, FileShare.Read));
58 PlateTool v = new PlateTool(builder, builder.GetObject("plate").Handle);
59 v.ShowAll();
60 return v;
61 }

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