BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
BioImager.ROIManager Class Reference
Inheritance diagram for BioImager.ROIManager:

Public Member Functions

void UpdateAnnotationList ()
 
void UpdateOverlay ()
 
void updateROI (int index, ROI an)
 
void UpdatePointBox ()
 

Public Attributes

ROI anno = new ROI()
 
bool autoUpdate = true
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Detailed Description

Definition at line 3 of file ROIManager.Designer.cs.

Constructor & Destructor Documentation

◆ ROIManager()

BioImager.ROIManager.ROIManager ( )

Definition at line 17 of file ROIManager.cs.

18 {
19 InitializeComponent();
20 foreach (ROI.Type item in Enum.GetValues(typeof(ROI.Type)))
21 {
22 typeBox.Items.Add(item);
23 }
24 }

Member Function Documentation

◆ Dispose()

override void BioImager.ROIManager.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 14 of file ROIManager.Designer.cs.

15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }

◆ UpdateAnnotationList()

void BioImager.ROIManager.UpdateAnnotationList ( )

Definition at line 26 of file ROIManager.cs.

27 {
28 if (ImageView.SelectedImage == null)
29 return;
30 roiView.Items.Clear();
31 foreach (ROI an in ImageView.SelectedImage.Annotations)
32 {
33 ListViewItem it = new ListViewItem();
34 it.Tag = an;
35 it.Text = an.ToString();
36 roiView.Items.Add(it);
37 }
38 }

◆ UpdateOverlay()

void BioImager.ROIManager.UpdateOverlay ( )

Definition at line 39 of file ROIManager.cs.

40 {
41 if(App.viewer != null)
42 App.viewer.UpdateOverlay();
43 }

◆ UpdatePointBox()

void BioImager.ROIManager.UpdatePointBox ( )

Definition at line 256 of file ROIManager.cs.

257 {
258 if (anno == null)
259 return;
260 PointD d = anno.GetPoint((int)pointIndexBox.Value);
261 pointXBox.Value = (int)d.X;
262 pointYBox.Value = (int)d.Y;
263 }

◆ updateROI()

void BioImager.ROIManager.updateROI ( int index,
ROI an )

Definition at line 44 of file ROIManager.cs.

45 {
46 if (ImageView.SelectedImage == null)
47 return;
48 ImageView.SelectedImage.Annotations[index] = an;
49 UpdateOverlay();
50 }

Member Data Documentation

◆ anno

ROI BioImager.ROIManager.anno = new ROI()

Definition at line 25 of file ROIManager.cs.

◆ autoUpdate

bool BioImager.ROIManager.autoUpdate = true

Definition at line 255 of file ROIManager.cs.


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