It takes a list of images, and for each image, it takes a list of bitmaps, and for each bitmap, it adds a row to the treeview with the bitmap's coordinate, exposure, and delta
84 {
85 Gtk.TreeViewColumn coordCol = new Gtk.TreeViewColumn();
86 coordCol.Title = "Coordinate";
87 Gtk.CellRendererText coordCell = new Gtk.CellRendererText();
88 coordCol.PackStart(coordCell, true);
89
90 Gtk.TreeViewColumn expCol = new Gtk.TreeViewColumn();
91 expCol.Title = "Exposure";
92 Gtk.CellRendererText expCell = new Gtk.CellRendererText();
93 expCol.PackStart(expCell, true);
94
95 Gtk.TreeViewColumn deltaCol = new Gtk.TreeViewColumn();
96 deltaCol.Title = "Delta";
97 Gtk.CellRendererText deltaCell = new Gtk.CellRendererText();
98 deltaCol.PackStart(deltaCell, true);
99
100
101 tree.AppendColumn(coordCol);
102 tree.AppendColumn(expCol);
103 tree.AppendColumn(deltaCol);
104
105 coordCol.AddAttribute(coordCell, "text", 0);
106 expCol.AddAttribute(expCell, "text", 1);
107 deltaCol.AddAttribute(deltaCell, "text", 2);
108
109 Gtk.TreeStore store = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string));
110
111 foreach (BioImage b in Images.images)
112 {
113 Gtk.TreeIter iter = store.AppendValues(System.IO.Path.GetFileName(b.Filename));
114 foreach (AForge.Bitmap bit in b.Buffers)
115 {
116 store.AppendValues(iter, bit.Coordinate.ToString(), bit.Plane.Exposure, bit.Plane.Delta);
117 }
118 }
119 tree.Model = store;
120
121 }