casa
$Rev:20696$
|
#include <LFPlotServerProxy.h>
Public Member Functions | |
FlagPlotServerProxy (char *&dbusname) | |
void | exiting () |
void | closing (const int32_t &, const bool &) |
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) |
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::variant | raster (const std::vector< double > &matrix, int sizex, int sizey, const std::string &colormap="Greyscale 1", int panel=0) |
void | draw (std::vector< double > x, std::vector< double > y, std::string color="blue") |
void | button (const int32_t &, const std::string &name) |
signals... | |
void | check (const int32_t &, const std::string &name, const int32_t &state) |
void | radio (const int32_t &panel, const std::string &name, const bool &state) |
void | linetext (const int32_t &panel, const std::string &name, const std::string &text) |
void | slidevalue (const int32_t &panel, const std::string &name, const int32_t &value) |
std::string | eventloop () |
Private Attributes | |
int | p |
int | l |
std::vector< double > | xvals |
std::vector< double > | yvals |
std::string | returnvalue |
Definition at line 39 of file LFPlotServerProxy.h.
casa::FlagPlotServerProxy::FlagPlotServerProxy | ( | char *& | dbusname | ) | [inline] |
Definition at line 41 of file LFPlotServerProxy.h.
void casa::FlagPlotServerProxy::button | ( | const int32_t & | panel, |
const std::string & | name | ||
) | [inline] |
signals...
std::cout << "button: " << name << "/" << panel << std::endl;
std::cout << returnvalue << std::endl;
Reimplemented from casa::PlotServerProxy.
Definition at line 92 of file LFPlotServerProxy.h.
References casa::DBusSession::dispatcher(), casa::DBusSession::instance(), casa::dbus::Dispatcher::leave(), casa::name(), and returnvalue.
void casa::FlagPlotServerProxy::check | ( | const int32_t & | , |
const std::string & | name, | ||
const int32_t & | state | ||
) | [inline] |
std::cout << "check: " << name << "/" << panel << " <" << state << ">" << std::endl;
Reimplemented from casa::PlotServerProxy.
Definition at line 99 of file LFPlotServerProxy.h.
References casa::DBusSession::dispatcher(), casa::DBusSession::instance(), casa::dbus::Dispatcher::leave(), and returnvalue.
void casa::FlagPlotServerProxy::closing | ( | const int32_t & | , |
const bool & | |||
) | [inline] |
std::cout << "closing panel: " << panel << " (" << gone << ")..." << std::endl;
Reimplemented from casa::PlotServerProxy.
Definition at line 46 of file LFPlotServerProxy.h.
References casa::DBusSession::dispatcher(), casa::DBusSession::instance(), casa::dbus::Dispatcher::leave(), and returnvalue.
void casa::FlagPlotServerProxy::draw | ( | std::vector< double > | x, |
std::vector< double > | y, | ||
std::string | color = "blue" |
||
) | [inline] |
Definition at line 83 of file LFPlotServerProxy.h.
References casa::color(), casa::dbus::variant::getInt(), casa::dbus::variant::INT, l, line(), p, casa::dbus::variant::type(), xvals, and yvals.
std::string casa::FlagPlotServerProxy::eventloop | ( | ) | [inline] |
Definition at line 120 of file LFPlotServerProxy.h.
References casa::DBusSession::dispatcher(), casa::dbus::Dispatcher::enter(), casa::DBusSession::instance(), and returnvalue.
void casa::FlagPlotServerProxy::exiting | ( | ) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 42 of file LFPlotServerProxy.h.
References casa::DBusSession::dispatcher(), casa::DBusSession::instance(), casa::dbus::Dispatcher::leave(), and returnvalue.
dbus::variant casa::FlagPlotServerProxy::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 |
||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 65 of file LFPlotServerProxy.h.
References casa::color(), casa::dbus::variant::getInt(), casa::dbus::variant::INT, l, panel(), and casa::dbus::variant::type().
Referenced by draw().
void casa::FlagPlotServerProxy::linetext | ( | const int32_t & | panel, |
const std::string & | name, | ||
const std::string & | text | ||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 111 of file LFPlotServerProxy.h.
dbus::variant casa::FlagPlotServerProxy::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 |
||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 52 of file LFPlotServerProxy.h.
References casa::dbus::variant::getInt(), casa::dbus::variant::INT, p, and casa::dbus::variant::type().
void casa::FlagPlotServerProxy::radio | ( | const int32_t & | panel, |
const std::string & | name, | ||
const bool & | state | ||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 107 of file LFPlotServerProxy.h.
dbus::variant casa::FlagPlotServerProxy::raster | ( | const std::vector< double > & | matrix, |
int | sizex, | ||
int | sizey, | ||
const std::string & | colormap = "Greyscale 1" , |
||
int | panel = 0 |
||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 74 of file LFPlotServerProxy.h.
References casa::dbus::variant::getInt(), casa::dbus::variant::INT, l, panel(), and casa::dbus::variant::type().
void casa::FlagPlotServerProxy::slidevalue | ( | const int32_t & | panel, |
const std::string & | name, | ||
const int32_t & | value | ||
) | [inline] |
Reimplemented from casa::PlotServerProxy.
Definition at line 115 of file LFPlotServerProxy.h.
int casa::FlagPlotServerProxy::l [private] |
Definition at line 129 of file LFPlotServerProxy.h.
int casa::FlagPlotServerProxy::p [private] |
Definition at line 128 of file LFPlotServerProxy.h.
std::string casa::FlagPlotServerProxy::returnvalue [private] |
Definition at line 133 of file LFPlotServerProxy.h.
Referenced by button(), check(), closing(), eventloop(), and exiting().
std::vector<double> casa::FlagPlotServerProxy::xvals [private] |
Definition at line 130 of file LFPlotServerProxy.h.
Referenced by draw().
std::vector<double> casa::FlagPlotServerProxy::yvals [private] |
Definition at line 131 of file LFPlotServerProxy.h.
Referenced by draw().