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.Tools.Tool Class Reference

Public Types

enum  ToolType
 
enum  Type
 

Public Member Functions

 Tool (Type t)
 
 Tool (Type t, ColorS col)
 
 Tool (Type t, RectangleD r)
 
 Tool (Type t, string sc)
 
override string ToString ()
 

Static Public Member Functions

static void Init ()
 

Public Attributes

List< System.Drawing.Point > Points
 
ToolType toolType
 
string script
 
Type type
 
ColorS tolerance
 

Properties

RectangleD Rectangle [get, set]
 
AForge.RectangleF RectangleF [get]
 

Detailed Description

Definition at line 39 of file Tools.cs.

Member Enumeration Documentation

◆ ToolType

enum BioImager.Tools.Tool.ToolType

Definition at line 41 of file Tools.cs.

42 {
43 color,
44 annotation,
45 select,
46 function
47 }

◆ Type

enum BioImager.Tools.Tool.Type

Definition at line 48 of file Tools.cs.

49 {
50 pencil,
51 brush,
52 bucket,
53 eraser,
54 move,
55 point,
56 line,
57 rect,
58 ellipse,
59 polyline,
60 polygon,
61 text,
62 delete,
63 freeform,
64 rectSel,
65 pointSel,
66 pan,
67 magic,
68 script,
69 dropper
70 }

Constructor & Destructor Documentation

◆ Tool() [1/5]

BioImager.Tools.Tool.Tool ( )

Definition at line 97 of file Tools.cs.

98 {
99 tolerance = new ColorS(0, 0, 0);
100 }

◆ Tool() [2/5]

BioImager.Tools.Tool.Tool ( Type  t)

Definition at line 101 of file Tools.cs.

102 {
103 type = t;
104 tolerance = new ColorS(0, 0, 0);
105 }

◆ Tool() [3/5]

BioImager.Tools.Tool.Tool ( Type  t,
ColorS  col 
)

Definition at line 106 of file Tools.cs.

107 {
108 type = t;
109 tolerance = new ColorS(0, 0, 0);
110 }

◆ Tool() [4/5]

BioImager.Tools.Tool.Tool ( Type  t,
RectangleD  r 
)

Definition at line 111 of file Tools.cs.

112 {
113 type = t;
114 rect = r;
115 tolerance = new ColorS(0, 0, 0);
116 }

◆ Tool() [5/5]

BioImager.Tools.Tool.Tool ( Type  t,
string  sc 
)

Definition at line 117 of file Tools.cs.

118 {
119 type = t;
120 script = sc;
121 tolerance = new ColorS(0, 0, 0);
122 }

Member Function Documentation

◆ Init()

static void BioImager.Tools.Tool.Init ( )
static

Definition at line 72 of file Tools.cs.

73 {
74 if (tools.Count == 0)
75 {
76 foreach (Tool.Type tool in (Tool.Type[])Enum.GetValues(typeof(Tool.Type)))
77 {
78 tools.Add(tool.ToString(), new Tool(tool, new ColorS(0, 0, 0)));
79 }
80 }
81 }

◆ ToString()

override string BioImager.Tools.Tool.ToString ( )

Definition at line 123 of file Tools.cs.

124 {
125 return type.ToString();
126 }

Member Data Documentation

◆ Points

List<System.Drawing.Point> BioImager.Tools.Tool.Points

Definition at line 82 of file Tools.cs.

◆ script

string BioImager.Tools.Tool.script

Definition at line 94 of file Tools.cs.

◆ tolerance

ColorS BioImager.Tools.Tool.tolerance

Definition at line 96 of file Tools.cs.

◆ toolType

ToolType BioImager.Tools.Tool.toolType

Definition at line 83 of file Tools.cs.

◆ type

Type BioImager.Tools.Tool.type

Definition at line 95 of file Tools.cs.

Referenced by microscope.stages.linkam._CommsInfo.view_of_info().

Property Documentation

◆ Rectangle

RectangleD BioImager.Tools.Tool.Rectangle
getset

Definition at line 85 of file Tools.cs.

86 {
87 get { return rect; }
88 set { rect = value; }
89 }

◆ RectangleF

AForge.RectangleF BioImager.Tools.Tool.RectangleF
get

Definition at line 90 of file Tools.cs.

91 {
92 get { return new AForge.RectangleF((float)rect.X, (float)rect.Y, (float)rect.W, (float)rect.H); }
93 }

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