28 #ifndef DBUS_VIEWERPROXY_H_
29 #define DBUS_VIEWERPROXY_H_
33 #include <casadbus/viewer/ViewerProxy.proxy.h>
40 private edu::nrao::casa::viewer_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 "view_server"; }
55 dbus::variant contourlevels(
const std::vector<double> &levels,
double baselevel=2147483648.0,
double unitlevel=2147483648.0,
int panel_or_data=0 )
56 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::contourlevels( levels, baselevel, unitlevel, panel_or_data ) ); }
60 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::colormap( map, panel_or_data ) ); }
62 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::colorwedge( show, panel_or_data ) ); }
65 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::load( path, displaytype,
panel, scaling ) ); }
67 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::reload(panel_or_data) ); }
69 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::unload(data) ); }
86 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::cwd( new_path ) ); }
89 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::freeze( panel ) ); }
91 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::unfreeze( panel ) ); }
97 dbus::variant zoom(
const std::vector<double> &blc,
const std::vector<double> &trc,
const std::string &coordinates=
"pixel",
int panel=0 )
98 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::zoom( blc, trc, coordinates,
panel ) ); }
101 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::release( panel ) ); }
112 bool output(
const std::string &device,
const std::string &devicetype =
"file",
int panel = 0,
113 double scale = 1.0,
int dpi = 300,
const std::string &format =
"jpg",
114 const std::string &orientation =
"portrait",
const std::string &media =
"letter" )
115 {
return edu::nrao::casa::viewer_proxy::output( device, devicetype,
panel, scale,
116 dpi, format, orientation, media ); }
119 {
return dbus::toVariant( edu::nrao::casa::viewer_proxy::fileinfo( path ) ); }
121 {
return edu::nrao::casa::viewer_proxy::keyinfo(key); }
123 bool done( ) {
return edu::nrao::casa::viewer_proxy::done( ); }
std::vector< std::string > keyinfo(int key)
dbus::variant reload(int panel_or_data)
dbus::variant colorwedge(bool show, int panel_or_data=0)
dbus::variant zoom(const std::vector< double > &blc, const std::vector< double > &trc, const std::string &coordinates="pixel", int panel=0)
dbus::variant setoptions(const dbus::variant &input, int panel)
ViewerProxy(const std::string &name=dbusName())
dbus::variant fileinfo(const std::string &path)
dbus::variant start_interact(const dbus::variant &input, int panel)
virtual Type type()
Return the type enum.
static std::list< std::string > execArgs(const std::list< std::string > &args)
dbus::variant colormap(const std::string &map, int panel_or_data=0)
dbus::variant axes(const std::string &x="", const std::string &y="", const std::string &z="", int panel=0)
dbus::variant unload(int data)
dbus::variant restore(const std::string &path, int panel=0)
dbus::variant close(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
dbus::variant unfreeze(int panel)
dbus::variant load(const std::string &path, const std::string &displaytype="raster", int panel=0, double scaling=0)
void show(const variant &v)
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
dbus::variant popup(const std::string &what, int panel=0)
dbus::variant zoom(int level, int panel=0)
dbus::variant release(int panel)
dbus::variant freeze(int panel)
std::string path(const std::string &name)
DBus::Variant fromVariant(const variant &src)
dbus::variant show(int panel=0)
variant toVariant(const DBus::Variant &src)
dbus::variant contourlevels(const std::vector< double > &levels, double baselevel=2147483648.0, double unitlevel=2147483648.0, int panel_or_data=0)
dbus::variant panel(const std::string &type="viewer", bool hidden=false)
dbus::variant cwd(const std::string &new_path="")
dbus::variant channel(int num=-1, int panel=0)
bool output(const std::string &device, const std::string &devicetype="file", int panel=0, double scale=1.0, int dpi=300, const std::string &format="jpg", const std::string &orientation="portrait", const std::string &media="letter")
device: file name or printer name devicetype: "file", "printer", or "ghostscript" format: "jpg"...
dbus::variant datarange(const std::vector< double > &range, int data=0)
dbus::variant hide(int panel=0)
static std::string dbusName()