28 #ifndef DBUS_LFPLOTSERVERPROXY_H
29 #define DBUS_LFPLOTSERVERPROXY_H
47 void closing(
const int32_t& ,
const bool &) {
53 dbus::variant panel(
const std::string& title,
const std::string &xlabel=
"",
const std::string &ylabel=
"",
54 const std::string &window_title=
"",
const std::vector<int> &
size=std::vector<int>( ),
55 const std::string& legend=
"bottom",
const std::string &zoom=
"bottom",
56 const int32_t& with_panel=0,
const bool& new_row=
false,
const bool& hidden=
false )
59 legend,zoom,with_panel,new_row,hidden );
66 dbus::variant line(
const std::vector< double >& x,
const std::vector< double >& y,
const std::string&
color=
"black",
67 const std::string& label=
"",
const int32_t&
panel=0 ) {
75 dbus::variant raster(
const std::vector<double> &matrix,
int sizex,
int sizey,
const std::string& colormap=
"Greyscale 1",
int panel=0 )
84 void draw( std::vector<double> x, std::vector<double> y, std::string
color=
"blue" ) {
100 void check(
const int32_t& ,
const std::string&
name,
const int32_t& state) {
102 std::stringstream rval;
103 rval << name <<
":"<< state;
109 std::cout <<
"radio: " << name <<
"/" << panel <<
" <" << state <<
">" << std::endl;
113 std::cout <<
"line: " << name <<
"/" << panel <<
" <" << text <<
">" << std::endl;
117 std::cout <<
"slider: " << name <<
"/" << panel <<
" <" << value <<
">" << std::endl;
void enter()
pure virtual functions from Dispatcher
static DBusSession & instance()
dbus::variant panel(const std::string &title, const std::string &xlabel="", const std::string &ylabel="", const std::string &window_title="", const std::vector< int > &size=std::vector< int >(), const std::string &legend="bottom", const std::string &zoom="bottom", const int32_t &with_panel=0, const bool &new_row=false, const bool &hidden=false)
void closing(const int32_t &, const bool &)
void slidevalue(const int32_t &panel, const std::string &name, const int32_t &value)
dbus::variant line(const std::vector< double > &x, const std::vector< double > &y, const std::string &color="black", const std::string &label="", const int32_t &panel=0)
dbus::Dispatcher & dispatcher()
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void button(const int32_t &, const std::string &name)
void draw(std::vector< double > x, std::vector< double > y, std::string color="blue")
void radio(const int32_t &panel, const std::string &name, const bool &state)
FlagPlotServerProxy(char *&dbusname)
dbus::variant panel(const std::string &title, const std::string &xlabel="", const std::string &ylabel="", const std::string &window_title="", const std::vector< int > &size=std::vector< int >(), const std::string &legend="bottom", const std::string &zoom="bottom", const int32_t &with_panel=0, const bool &new_row=false, const bool &hidden=false)
std::vector< double > xvals
dbus::variant raster(const std::vector< double > &matrix, int sizex, int sizey, const std::string &colormap="Greyscale 1", int panel=0)
dbus::variant line(const std::vector< double > &x, const std::vector< double > &y, const std::string &color="black", const std::string &label="", const int32_t &panel=0)
void linetext(const int32_t &panel, const std::string &name, const std::string &text)
std::vector< double > yvals
void check(const int32_t &, const std::string &name, const int32_t &state)
dbus::variant raster(const std::vector< double > &matrix, int sizex, int sizey, const std::string &colormap="Rainbow 2", int panel=0)
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.