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.OMERO Class Reference
Inheritance diagram for BioGTK.OMERO:

Classes

class  Image
 

Public Member Functions

void InitItems ()
 
void UpdateROIs ()
 
void UpdateItems (string filt)
 

Static Public Member Functions

static OMERO Create ()
 
static void StartUpload ()
 
static void UpdateProgress ()
 

Public Attributes

List< Imageimages = new List<Image>()
 

Static Public Attributes

static Progress prog
 
static int IconWidth = 50
 
static int IconHeight = 50
 
static string dataset = ""
 
static long id
 
static List< string > files = new List<string>()
 
static bool uploading = false
 

Protected Member Functions

 OMERO (Builder builder, IntPtr handle)
 

Detailed Description

Definition at line 21 of file OMERO.cs.

Constructor & Destructor Documentation

◆ OMERO()

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

Definition at line 70 of file OMERO.cs.

70 : base(handle)
71 {
72 _builder = builder;
73 builder.Autoconnect(this);
74 InitItems();
75 this.SizeAllocated += OMERO_SizeAllocated;
76 searchBox.Changed += SearchBox_Changed;
77 comboBox.Changed += ComboBox_Changed;
78 uploadMenu.ButtonPressEvent += UploadMenu_ButtonPressEvent;
79 view.ItemActivated += View_ItemActivated;
80 // Enable drag-and-drop for this window
81 Gtk.Drag.DestSet(this, DestDefaults.All, new TargetEntry[]
82 {
83 new TargetEntry("text/uri-list", TargetFlags.OtherApp, 0)
84 }, Gdk.DragAction.Copy);
85 this.DragDataReceived += View_DragDataReceived;
86 App.ApplyStyles(this);
87 }

Member Function Documentation

◆ Create()

static OMERO BioGTK.OMERO.Create ( )
static

It creates a new Search object, which is a Gtk.Window, and returns it

Returns
A new instance of the Search class.

Definition at line 63 of file OMERO.cs.

64 {
65 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/omero.glade", FileMode.Open));
66 return new OMERO(builder, builder.GetObject("omeroViewer").Handle);
67 }

◆ InitItems()

void BioGTK.OMERO.InitItems ( )

Definition at line 273 of file OMERO.cs.

274 {
275 var comStore = new ListStore(typeof(string));
276 List<DatasetData> dbs = BioLib.OMERO.GetDatasetsData();
277 foreach (var im in dbs)
278 {
279 comStore.AppendValues(im.getName() + " " + im.getId());
280 }
281 comboBox.Model = comStore;
282
283 }

◆ StartUpload()

static void BioGTK.OMERO.StartUpload ( )
static

Definition at line 116 of file OMERO.cs.

117 {
118 foreach (var f in files)
119 {
120 prog = Progress.Create("Uploading", "Uploading image.",f);
121 prog.Show();
122 uploading = true;
123 Thread th = new Thread(UpdateProgress);
124 th.Start();
125 fi = f;
126 Thread ths = new Thread(Upload);
127 ths.Start();
128 }
129 }

◆ UpdateItems()

void BioGTK.OMERO.UpdateItems ( string filt)

Definition at line 289 of file OMERO.cs.

290 {
291 var listStore = new ListStore(typeof(Gdk.Pixbuf), typeof(string));
292 view.PixbufColumn = 0;
293 view.TextColumn = 1;
294 foreach (var im in images)
295 {
296 if(im.name.Contains(filt) || filt == "")
297 listStore.AppendValues(im.pixbuf, im.name);
298 }
299 view.Model = listStore;
300 }

◆ UpdateProgress()

static void BioGTK.OMERO.UpdateProgress ( )
static

Definition at line 136 of file OMERO.cs.

137 {
138 do
139 {
140 OMERO.prog.ProgressValue = BioLib.OMERO.progress;
141 Thread.Sleep(250);
142 } while (OMERO.uploading);
143 OMERO.prog.Hide();
144 }

◆ UpdateROIs()

void BioGTK.OMERO.UpdateROIs ( )

Definition at line 284 of file OMERO.cs.

285 {
286 var ro = BioLib.OMERO.gateway.getROIService(BioLib.OMERO.sc);
287
288 }

Member Data Documentation

◆ dataset

string BioGTK.OMERO.dataset = ""
static

Definition at line 34 of file OMERO.cs.

◆ files

List<string> BioGTK.OMERO.files = new List<string>()
static

Definition at line 36 of file OMERO.cs.

◆ IconHeight

int BioGTK.OMERO.IconHeight = 50
static

Definition at line 33 of file OMERO.cs.

◆ IconWidth

int BioGTK.OMERO.IconWidth = 50
static

Definition at line 32 of file OMERO.cs.

◆ id

long BioGTK.OMERO.id
static

Definition at line 35 of file OMERO.cs.

◆ images

List<Image> BioGTK.OMERO.images = new List<Image>()

Definition at line 38 of file OMERO.cs.

◆ prog

Progress BioGTK.OMERO.prog
static

Definition at line 29 of file OMERO.cs.

◆ uploading

bool BioGTK.OMERO.uploading = false
static

Definition at line 37 of file OMERO.cs.


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