28 #ifndef QTDBUSPLOTSVRADAPTOR_QO_H_
29 #define QTDBUSPLOTSVRADAPTOR_QO_H_
33 #include <QVariantMap>
36 #include <qwt_plot_spectrogram.h>
47 Q_CLASSINFO(
"D-Bus Interface",
"edu.nrao.casa.plotserver")
60 QDBusVariant
panel(
const QString &title,
const QString &xlabel=
"",
const QString &ylabel=
"",
const QString &window_title=
"",
61 const QList<int> &
size=QList<int>( ),
const QString &legend=
"bottom",
const QString &zoom=
"bottom",
62 int with_panel=0,
bool new_row=
false,
bool hidden=
false );
66 QDBusVariant
line(
const QList<double> &x,
const QList<double> &y,
const QString &
color=
"black",
67 const QString &label=
"",
int panel=0 );
68 QDBusVariant
scatter(
const QList<double> &x,
const QList<double> &y,
const QString &
color=
"black",
69 const QString &label=
"",
const QString &symbol=
"",
int symbol_size=-1,
int dot_size=-1,
int panel=0 );
70 QDBusVariant
histogram(
const QList<double> &values,
int bins=0,
const QString &
color=
"blue",
const QString &label=
"",
int panel=0 );
71 QDBusVariant
raster(
const QList<double> &matrix,
int sizex,
int sizey,
const QString &colormap=
"Rainbow 2",
int panel=0 );
74 QDBusVariant
setlabel(
const QString &xlabel=
"",
const QString &ylabel=
"",
const QString &title=
"",
int panel_id=0 );
83 QDBusVariant
loaddock(
const QString &file_or_xml,
const QString &loc=
"top",
const QStringList &dockable=QStringList( ),
int panel=0 );
109 inline QDBusVariant
error(
const QString &message ) {
110 QMap<QString,QVariant> err;
111 err[
"*error*"] = message;
112 return QDBusVariant(QVariant(err));
172 void release( panelmap::iterator & );
std::map< int, data_desc * > datamap
const std::list< int > & data() const
virtual bool connectToDBus(const QString &dbus_name="")=0
Connects to the DBus server using the name provided (if non-null).
QDBusVariant show(int panel)
QDBusVariant erase(int data=0)
QtDBusPlotSvrAdaptor(QtPlotServer *)
std::map< int, QDockWidget * > dockmap
void radio(int panel, QString name, bool value)
bool connectToDBus(const QString &dbus_name="")
Connects to the DBus server using the name provided (if non-null).
void linetext(int panel, QString name, const QString &value)
QDBusVariant panel(const QString &title, const QString &xlabel="", const QString &ylabel="", const QString &window_title="", const QList< int > &size=QList< int >(), const QString &legend="bottom", const QString &zoom="bottom", int with_panel=0, bool new_row=false, bool hidden=false)
void release_everything()
QDBusVariant close(int panel=0)
std::map< int, panel_desc * > panelmap
void check(int panel, QString name, int value)
const QtPlotSvrPanel * panel() const
QDBusVariant release(int panel=0)
QDBusVariant histogram(const QList< double > &values, int bins=0, const QString &color="blue", const QString &label="", int panel=0)
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
QDBusVariant hide(int panel)
data_desc & operator=(const data_desc &)
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
QDBusVariant loaddock(const QString &file_or_xml, const QString &loc="top", const QStringList &dockable=QStringList(), int panel=0)
static const QString & name()
name used to initialize connection to dbus
QDBusVariant scatter(const QList< double > &x, const QList< double > &y, const QString &color="black", const QString &label="", const QString &symbol="", int symbol_size=-1, int dot_size=-1, int panel=0)
int get_id(QtPlotSvrPanel *panel)
void slidevalue(int panel, QString name, int value)
void emit_slidevalue(QtPlotSvrPanel *, QString name, int)
data_desc(int index, QtPlotSvrPanel *panel, QwtPlotItem *data)
QString dbusName() const
name used to initialize connection to dbus
QDBusVariant raster(const QList< double > &matrix, int sizex, int sizey, const QString &colormap="Rainbow 2", int panel=0)
QDBusVariant line(const QList< double > &x, const QList< double > &y, const QString &color="black", const QString &label="", int panel=0)
std::list< int > & data()
QDBusVariant setlabel(const QString &xlabel="", const QString &ylabel="", const QString &title="", int panel_id=0)
const QtPlotSvrPanel * panel() const
void emit_check(QtPlotSvrPanel *, QString name, int)
void emit_radio(QtPlotSvrPanel *, QString name, bool)
panel_desc(QtPlotSvrPanel *p)
const QwtPlotItem * data() const
QtPlotSvrPanel *& panel()
QtPlotSvrPanel *& panel()
void emit_closing(QtPlotSvrPanel *, bool gone)
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 closing(int panel, bool gone)
void emit_button(QtPlotSvrPanel *, QString name)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void button(int panel, QString name)
QDBusVariant error(const QString &message)
void emit_linetext(QtPlotSvrPanel *, QString name, const QString &value)