28 #ifndef DBUS_PLOTSERVERPROXY_H_
29 #define DBUS_PLOTSERVERPROXY_H_
33 #include <casadbus/plotserver/PlotServerProxy.proxy.h>
40 private edu::nrao::casa::plotserver_proxy,
41 public DBus::IntrospectableProxy,
42 public DBus::ObjectProxy {
46 static std::list<std::string>
execArgs(
const std::list<std::string> &args );
47 static std::string
dbusName( ) {
return "plot_server"; }
51 dbus::variant panel(
const std::string& title,
const std::string &xlabel=
"",
const std::string &ylabel=
"",
52 const std::string &window_title=
"",
const std::vector<int> &
size=std::vector<int>( ),
53 const std::string& legend=
"bottom",
const std::string &zoom=
"bottom",
54 const int32_t& with_panel=0,
const bool& new_row=
false,
const bool& hidden=
false )
55 {
return dbus::toVariant( edu::nrao::casa::plotserver_proxy::panel(title,xlabel,ylabel,window_title,
size,
56 legend,zoom,with_panel,new_row,hidden) ); }
58 {
return edu::nrao::casa::plotserver_proxy::colors( ); }
60 {
return edu::nrao::casa::plotserver_proxy::colormaps( ); }
62 {
return edu::nrao::casa::plotserver_proxy::symbols( ); }
63 dbus::variant line(
const std::vector< double >& x,
const std::vector< double >& y,
const std::string&
color=
"black",
64 const std::string& label=
"",
const int32_t&
panel=0 )
67 const std::string& label=
"",
const std::string& symbol=
"",
const int32_t& symbol_size=-1,
68 const int32_t& dot_size=-1,
const int32_t&
panel=0)
70 symbol_size, dot_size,
panel)); }
72 const std::string& label=
"",
const int panel=0 )
74 dbus::variant raster(
const std::vector<double> &matrix,
int sizex,
int sizey,
const std::string &colormap=
"Rainbow 2",
int panel=0 )
75 {
return dbus::toVariant(edu::nrao::casa::plotserver_proxy::raster( matrix, sizex, sizey, colormap,
panel )); }
78 {
return dbus::toVariant(edu::nrao::casa::plotserver_proxy::erase(data_or_panel)); }
81 {
return dbus::toVariant(edu::nrao::casa::plotserver_proxy::setlabel(xlabel,ylabel,title,
panel)); }
93 void done() { edu::nrao::casa::plotserver_proxy::done( ); }
95 dbus::variant loaddock(
const std::string &file_or_xml,
const std::string &loc=
"top",
const std::vector<std::string> &dockable=std::vector<std::string>( ),
const int32_t&
panel=0 )
96 {
return dbus::toVariant(edu::nrao::casa::plotserver_proxy::loaddock(file_or_xml, loc, dockable,
panel)); }
102 void button(
const int32_t& ,
const std::string& ) { }
103 void check(
const int32_t& ,
const std::string& ,
const int32_t& ) { }
104 void radio(
const int32_t& ,
const std::string& ,
const bool& ) { }
105 void linetext(
const int32_t& ,
const std::string& ,
const std::string& ) { }
106 void slidevalue(
const int32_t& ,
const std::string& ,
const int32_t& ) { }
108 void closing(
const int32_t& ,
const bool& ) { }
dbus::variant erase(const int32_t &data_or_panel=0)
void slidevalue(const int32_t &, const std::string &, const int32_t &)
dbus::variant show(const int32_t &panel=0)
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< std::string > colors()
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 &, const std::string &, const std::string &)
dbus::variant release(const int32_t &panel=0)
void check(const int32_t &, const std::string &, const int32_t &)
static std::list< std::string > execArgs(const std::list< std::string > &args)
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 show(const variant &v)
dbus::variant hide(const int32_t &panel=0)
void closing(const int32_t &, const bool &)
variant toVariant(const DBus::Variant &src)
dbus::variant histogram(const std::vector< double > &values, int bins=0, const std::string &color="blue", const std::string &label="", const int panel=0)
dbus::variant loaddock(const std::string &file_or_xml, const std::string &loc="top", const std::vector< std::string > &dockable=std::vector< std::string >(), const int32_t &panel=0)
static std::string dbusName()
std::vector< std::string > colormaps()
std::vector< std::string > symbols()
dbus::variant close(const int32_t &panel=0)
PlotServerProxy(const std::string &name=dbusName())
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
void button(const int32_t &, const std::string &)
signals...
void radio(const int32_t &, const std::string &, const bool &)
dbus::variant scatter(const std::vector< double > &x, const std::vector< double > &y, const std::string &color="black", const std::string &label="", const std::string &symbol="", const int32_t &symbol_size=-1, const int32_t &dot_size=-1, const int32_t &panel=0)
dbus::variant setlabel(const std::string &xlabel="", const std::string &ylabel="", const std::string &title="", int panel=0)