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

Public Types

enum  ToolType { color , annotation , select , function }
 
enum  Type {
  pencil , brush , bucket , eraser ,
  move , point , line , rect ,
  select , ellipse , polyline , polygon ,
  text , delete , freeform , rectSel ,
  pointSel , pan , magic , script ,
  dropper
}
 

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< AForge.Point > Points
 
ToolType toolType
 
string script
 
Type type
 
ColorS tolerance
 

Properties

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

Detailed Description

Definition at line 41 of file Tools.cs.

Member Enumeration Documentation

◆ ToolType

enum BioImager.Tools.Tool.ToolType

Definition at line 43 of file Tools.cs.

44 {
45 color,
46 annotation,
47 select,
48 function
49 }

◆ Type

enum BioImager.Tools.Tool.Type

Definition at line 50 of file Tools.cs.

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

Constructor & Destructor Documentation

◆ Tool() [1/5]

BioImager.Tools.Tool.Tool ( )

Definition at line 100 of file Tools.cs.

101 {
102 tolerance = new ColorS(0, 0, 0);
103 }

◆ Tool() [2/5]

BioImager.Tools.Tool.Tool ( Type t)

Definition at line 104 of file Tools.cs.

105 {
106 type = t;
107 tolerance = new ColorS(0, 0, 0);
108 }

◆ Tool() [3/5]

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

Definition at line 109 of file Tools.cs.

110 {
111 type = t;
112 tolerance = new ColorS(0, 0, 0);
113 }

◆ Tool() [4/5]

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

Definition at line 114 of file Tools.cs.

115 {
116 type = t;
117 rect = r;
118 tolerance = new ColorS(0, 0, 0);
119 }

◆ Tool() [5/5]

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

Definition at line 120 of file Tools.cs.

121 {
122 type = t;
123 script = sc;
124 tolerance = new ColorS(0, 0, 0);
125 }

Member Function Documentation

◆ Init()

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

Definition at line 75 of file Tools.cs.

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

◆ ToString()

override string BioImager.Tools.Tool.ToString ( )

Definition at line 126 of file Tools.cs.

127 {
128 return type.ToString();
129 }

Member Data Documentation

◆ Points

List<AForge.Point> BioImager.Tools.Tool.Points

Definition at line 85 of file Tools.cs.

◆ script

string BioImager.Tools.Tool.script

Definition at line 97 of file Tools.cs.

◆ tolerance

ColorS BioImager.Tools.Tool.tolerance

Definition at line 99 of file Tools.cs.

◆ toolType

ToolType BioImager.Tools.Tool.toolType

Definition at line 86 of file Tools.cs.

◆ type

Type BioImager.Tools.Tool.type

Definition at line 98 of file Tools.cs.

Property Documentation

◆ Rectangle

RectangleD BioImager.Tools.Tool.Rectangle
getset

Definition at line 88 of file Tools.cs.

89 {
90 get { return rect; }
91 set { rect = value; }
92 }

◆ RectangleF

AForge.RectangleF BioImager.Tools.Tool.RectangleF
get

Definition at line 93 of file Tools.cs.

94 {
95 get { return new AForge.RectangleF((float)rect.X, (float)rect.Y, (float)rect.W, (float)rect.H); }
96 }

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