|
enum | ToolType { color
, annotation
, select
, function
} |
|
enum | Type {
pointSel
, pan
, move
, point
,
line
, rect
, ellipse
, polygon
,
text
, delete
, freeform
, select
,
magic
, brush
, bucket
, eraser
,
dropper
, switchColors
, color1
, color2
,
script
} |
|
|
static void | Init () |
| It adds all the tools to the tools list.
|
|
◆ ToolType
Enumerator |
---|
color | |
annotation | |
select | |
function | |
◆ Type
Enumerator |
---|
pointSel | |
pan | |
move | |
point | |
line | |
rect | |
ellipse | |
polygon | |
text | |
delete | |
freeform | |
select | |
magic | |
brush | |
bucket | |
eraser | |
dropper | |
switchColors | |
color1 | |
color2 | |
script | |
93 {
99 rect,
103 delete,
115 }
◆ Tool() [1/5]
BioGTK.Tools.Tool.Tool |
( |
| ) |
|
|
inline |
◆ Tool() [2/5]
BioGTK.Tools.Tool.Tool |
( |
Type |
t | ) |
|
|
inline |
◆ Tool() [3/5]
BioGTK.Tools.Tool.Tool |
( |
Type |
t, |
|
|
ColorS |
col |
|
) |
| |
|
inline |
◆ Tool() [4/5]
188 {
190 rect = r;
192 }
◆ Tool() [5/5]
BioGTK.Tools.Tool.Tool |
( |
Type |
t, |
|
|
string |
sc |
|
) |
| |
|
inline |
◆ Init()
static void BioGTK.Tools.Tool.Init |
( |
| ) |
|
|
inlinestatic |
It adds all the tools to the tools list.
119 {
120 int w = 33;
121 int h = 33;
122 string s = System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/";
124 if (
tools.Count == 0)
125 {
126 int x = 0; int y = 0;
127 foreach (
Tool.Type t in (
Tool.Type[])Enum.GetValues(typeof(
Tool.Type)))
128 {
130 if(t !=
Type.color1 && t !=
Type.color2)
131 {
132 Tool tool =
new Tool(t,
new ColorS(0, 0, 0));
133 tool.bounds =
new Rectangle(x * w, y * h, w, h);
134 tool.image = new Pixbuf(s + "Images/" + tool.type.ToString() + ".png");
135 tools.Add(tool.ToString(), tool);
136 }
137 else
138 {
139 Tool tool =
new Tool(t,
new ColorS(0, 0, 0));
140 tool.bounds =
new Rectangle(x * w, y * h, w, h);
141 tools.Add(tool.ToString(), tool);
142 }
143 x++;
144 if(x > Tools.gridW-1)
145 {
146 x = 0;
147 y++;
148 }
149 }
150 }
151 DrawColor =
new ColorS(ushort.MaxValue, ushort.MaxValue, ushort.MaxValue);
152 }
◆ ToString()
override string BioGTK.Tools.Tool.ToString |
( |
| ) |
|
|
inline |
200 {
201 return type.ToString();
202 }
◆ bounds
◆ color
ColorS BioGTK.Tools.Tool.color |
◆ image
Pixbuf BioGTK.Tools.Tool.image |
◆ Points
List<AForge.Point> BioGTK.Tools.Tool.Points |
◆ script
string BioGTK.Tools.Tool.script |
◆ selected
bool BioGTK.Tools.Tool.selected |
◆ tolerance
ColorS BioGTK.Tools.Tool.tolerance |
◆ toolType
◆ type
Type BioGTK.Tools.Tool.type |
◆ Rectangle
160 {
161 get { return rect; }
162 set { rect = value; }
163 }
◆ RectangleF
RectangleF BioGTK.Tools.Tool.RectangleF |
|
get |
165 {
166 get {
return new RectangleF((
float)rect.
X, (
float)rect.
Y, (
float)rect.
W, (
float)rect.
H); }
167 }
double W
Definition Bio.cs:316
double X
Definition Bio.cs:314
double Y
Definition Bio.cs:315
double H
Definition Bio.cs:317
The documentation for this class was generated from the following file: