CEBL  2.1
PieInterface.cpp
Go to the documentation of this file.
1 /* PieInterface.cpp
2  * \author Jeshua Bratman
3  *
4  * Simple pie menu interface for CEBL.
5  */
6 
7 #include "PieInterface.hpp"
8 
10 {
12  packStart(pie_menu,true,true,2);
14  bar_growth = 0.1;
15  setNumClasses(2);
16 }
17 
19 {
20 
21 }
22 
24 {
25  num_classes = n;
27 }
28 
30 {
33 }
34 
36 {
37  if(c == -1)
39  else
41 }
42 
43 void PieInterface::setClassProportions(std::vector<double> proportions)
44 {
47 }
48 
49 
50 void PieInterface::setClassLabels(std::vector<std::string> labels)
51 {
52  pie_set_labels(pie_menu, labels);
53 }
54 
55 
56 void PieInterface::setBGColor(unsigned int red, unsigned int green, unsigned int blue)
57 {
58  bg_red=red;
59  bg_green=green;
60  bg_blue=blue;
62 }
63 
65 {
67  train_mode = true;
68 }
69 
71 {
73  train_mode = false;
74 }
75 
76 
77 //------------------------------------------------------------
78 
79 
80 std::map<std::string, CEBL::Param> PieInterface::getParamsList()
81 {
82  std::map<std::string,CEBL::Param> params;
83  return params;
84 }
85 void PieInterface::setParamsList( std::map<std::string, CEBL::Param> p)
86 {
87 
88 }
89 
90 
91