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
Bio.MagicSelect Class Reference
Inheritance diagram for Bio.MagicSelect:

Static Public Member Functions

static MagicSelect Create (int index)
 

Protected Member Functions

 MagicSelect (Builder builder, IntPtr handle, int index)
 

Properties

bool Numeric [get]
 
int Threshold [get]
 
int Min [get]
 
int Max [get]
 
int Index [get]
 

Detailed Description

Definition at line 9 of file MagicSelect.cs.

Constructor & Destructor Documentation

◆ MagicSelect()

Bio.MagicSelect.MagicSelect ( Builder builder,
IntPtr handle,
int index )
protected

Definition at line 49 of file MagicSelect.cs.

49 : base(handle)
50 {
51 _builder = builder;
52 builder.Autoconnect(this);
53 var ths = new ListStore(typeof(string));
54 // Add items to the ListStore
55 ths.AppendValues("Min");
56 ths.AppendValues("Median");
57 ths.AppendValues("Median - Min");
58 // Set the model for the ComboBox
59 thBox.Model = ths;
60 // Set the text column to display
61 var renderer = new CellRendererText();
62 thBox.PackStart(renderer, false);
63 thBox.AddAttribute(renderer, "text", 0);
64 thBox.Active = index;
65 App.ApplyStyles(this);
66 }

Member Function Documentation

◆ Create()

static MagicSelect Bio.MagicSelect.Create ( int index)
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 41 of file MagicSelect.cs.

42 {
43 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Magic.glade", FileMode.Open));
44 return new MagicSelect(builder, builder.GetObject("magicSelect").Handle, index);
45 }

Property Documentation

◆ Index

int Bio.MagicSelect.Index
get

Definition at line 97 of file MagicSelect.cs.

98 {
99 get
100 {
101 return thBox.Active;
102 }
103 }

◆ Max

int Bio.MagicSelect.Max
get

Definition at line 93 of file MagicSelect.cs.

94 {
95 get { return (int)maxBox.Value; }
96 }

◆ Min

int Bio.MagicSelect.Min
get

Definition at line 89 of file MagicSelect.cs.

90 {
91 get { return (int)minBox.Value; }
92 }

◆ Numeric

bool Bio.MagicSelect.Numeric
get

Definition at line 73 of file MagicSelect.cs.

74 {
75 get
76 {
77 return numericBox.Active;
78 }
79 }

◆ Threshold

int Bio.MagicSelect.Threshold
get

Definition at line 81 of file MagicSelect.cs.

82 {
83 get
84 {
85 return (int)numBox.Value;
86 }
87 }

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