BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
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. More...
 

Detailed Description

Definition at line 13 of file ROIManager.cs.

Constructor & Destructor Documentation

◆ ROIManager()

BioImager.ROIManager.ROIManager ( )

Definition at line 15 of file ROIManager.cs.

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

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 24 of file ROIManager.cs.

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

◆ UpdateOverlay()

void BioImager.ROIManager.UpdateOverlay ( )

Definition at line 37 of file ROIManager.cs.

38 {
39 if(App.viewer != null)
40 App.viewer.UpdateOverlay();
41 }

◆ UpdatePointBox()

void BioImager.ROIManager.UpdatePointBox ( )

Definition at line 253 of file ROIManager.cs.

254 {
255 if (anno == null)
256 return;
257 PointD d = anno.GetPoint((int)pointIndexBox.Value);
258 pointXBox.Value = (int)d.X;
259 pointYBox.Value = (int)d.Y;
260 }
PointD GetPoint(int i)
Definition: Bio.cs:907

◆ updateROI()

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

Definition at line 42 of file ROIManager.cs.

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

Member Data Documentation

◆ anno

ROI BioImager.ROIManager.anno = new ROI()

Definition at line 23 of file ROIManager.cs.

◆ autoUpdate

bool BioImager.ROIManager.autoUpdate = true

Definition at line 252 of file ROIManager.cs.


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