BioGTK  6.0.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions
BioGTK.Tolerance Class Reference
Inheritance diagram for BioGTK.Tolerance:

Static Public Member Functions

static Tolerance Create ()
 

Protected Member Functions

 Tolerance (Builder builder, IntPtr handle)
 
void SetupHandlers ()
 It sets up the event handlers for the sliders and text boxes.
 

Properties

ColorS ColorS [get]
 

Detailed Description

Definition at line 14 of file Tolerance.cs.

Constructor & Destructor Documentation

◆ Tolerance()

BioGTK.Tolerance.Tolerance ( Builder builder,
IntPtr handle )
protected

Definition at line 59 of file Tolerance.cs.

59 : base(handle)
60 {
61 _builder = builder;
62 builder.Autoconnect(this);
64 rBar.Adjustment.Upper = ushort.MaxValue;
65 gBar.Adjustment.Upper = ushort.MaxValue;
66 bBar.Adjustment.Upper = ushort.MaxValue;
67 rBox.Adjustment.Upper = ushort.MaxValue;
68 rBox.Adjustment.StepIncrement = 1;
69 rBox.Adjustment.PageIncrement = 10;
70 gBox.Adjustment.Upper = ushort.MaxValue;
71 gBox.Adjustment.StepIncrement = 1;
72 gBox.Adjustment.PageIncrement = 10;
73 bBox.Adjustment.Upper = ushort.MaxValue;
74 bBox.Adjustment.StepIncrement = 1;
75 bBox.Adjustment.PageIncrement = 10;
76 App.ApplyStyles(this);
77 }
void SetupHandlers()
It sets up the event handlers for the sliders and text boxes.
Definition Tolerance.cs:83

Member Function Documentation

◆ Create()

static Tolerance BioGTK.Tolerance.Create ( )
static

It creates a new instance of the ColorTool class, which is a GTK# widget that allows the user to select a color

Parameters
ColorSThe color to be displayed in the color tool.
Returns
A new instance of the ColorTool class.

Definition at line 51 of file Tolerance.cs.

52 {
53 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Tolerance.glade", FileMode.Open));
54 return new Tolerance(builder, builder.GetObject("tolerance").Handle);
55 }

◆ SetupHandlers()

void BioGTK.Tolerance.SetupHandlers ( )
protected

It sets up the event handlers for the sliders and text boxes.

Definition at line 83 of file Tolerance.cs.

84 {
85 rBar.ChangeValue += ChangeValue;
86 gBar.ChangeValue += ChangeValue;
87 bBar.ChangeValue += ChangeValue;
88 rBox.ChangeValue += Box_ChangeValue;
89 gBox.ChangeValue += Box_ChangeValue;
90 bBox.ChangeValue += Box_ChangeValue;
91 cancelBut.Clicked += CancelBut_Clicked;
92 okBut.Clicked += OkBut_Clicked;
93 }

Property Documentation

◆ ColorS

ColorS BioGTK.Tolerance.ColorS
get

Definition at line 136 of file Tolerance.cs.

137 {
138 get
139 {
140 return new ColorS((ushort)rBox.Value, (ushort)gBox.Value, (ushort)bBox.Value);
141 }
142 }

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