casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
casa::QtDBusViewerAdaptor Class Reference

#include <QtDBusViewerAdaptor.qo.h>

Inheritance diagram for casa::QtDBusViewerAdaptor:
casa::QtDBusApp

Classes

class  data_desc
 
class  panel_desc
 

Public Slots

QDBusVariant start_interact (const QDBusVariant &input, int panel)
 
QDBusVariant datarange (const QList< double > &range, int data=0)
 
QDBusVariant contourlevels (const QList< double > &levels, double baselevel=2147483648.0, double unitlevel=2147483648.0, int panel_or_data=0)
 
QDBusVariant contourcolor (const QString &color, int panel_or_data=0)
 
QDBusVariant contourthickness (double thickness, int panel_or_data=0)
 
QDBusVariant axes (const QString &x="", const QString &y="", const QString &z="", int panel=0)
 
QDBusVariant colormap (const QString &map, int panel_or_data=0)
 
QDBusVariant colorwedge (bool show=true, int panel_or_data=0)
 
QDBusVariant load (const QString &path, const QString &displaytype="raster", int panel=0, double scaling=0)
 
QDBusVariant reload (int panel_or_data)
 
QDBusVariant unload (int data)
 
QDBusVariant restore (const QString &path, int panel=0)
 
QDBusVariant panel (const QString &type="viewer", bool hidden=false)
 
QDBusVariant hide (int panel=0)
 
QDBusVariant show (int panel=0)
 
QDBusVariant close (int panel=0)
 
QDBusVariant popup (const QString &what, int panel=0)
 
QDBusVariant cwd (const QString &new_path="")
 
QDBusVariant freeze (int panel=0)
 
QDBusVariant unfreeze (int panel=0)
 
QDBusVariant channel (int num=-1, int panel=0)
 
QDBusVariant zoom (int level, int panel=0)
 
QDBusVariant zoom (const QList< double > &blc, const QList< double > &trc, const QString &coordinates="pixel", int panel=0)
 
QDBusVariant release (int panel)
 like "close()", but leaves the closing up to the user if the window is not hidden More...
 
QDBusVariant setoptions (const QDBusVariant &input, int panel)
 To change certain things so the panel. More...
 
bool output (const QString &device, const QString &devicetype="file", int panel=0, double scale=1.0, int dpi=300, const QString &format="jpg", const QString &orientation="portrait", const QString &media="letter")
 device: file name or printer name devicetype: "file", "printer", or "ghostscript" format: "jpg", "pdf", "eps", "ps", "png", "xbm", "xpm", "ppm" [only used with devicetype == "file"] [extension on device, e.g. More...
 
QDBusVariant fileinfo (const QString &path)
 
QStringList keyinfo (int)
 
bool done ()
 

Signals

void interact (QDBusVariant)
 
void exiting (QDBusVariant)
 

Public Member Functions

QString dbusName () const
 
bool connectToDBus (const QString &dbus_name="")
 Connects to the DBus server using the name provided (if non-null). More...
 
 QtDBusViewerAdaptor (QtViewer *)
 Constructor which takes the application. More...
 
 ~QtDBusViewerAdaptor ()
 Destructor. More...
 
- Public Member Functions inherited from casa::QtDBusApp
QString dbusServiceName (const QString &name, const pid_t pid)
 
QString dbusObjectName (const QString &name, const pid_t pid)
 
const QString & dbusServiceName (const QString &name="")
 
const QString & dbusObjectName (const QString &name="")
 
 QtDBusApp ()
 
virtual ~QtDBusApp ()
 

Protected Slots

void handle_interact (QVariant)
 
void handle_destroyed_panel (QObject *)
 

Protected Member Functions

QtDisplayPanelGuicreate_panel ()
 
void load_data (QtDisplayPanelGui *panel, int index)
 
void unload_data (QtDisplayPanelGui *panel, int index, bool erase=true)
 
QtDisplayPanelGuierase_panel (int panel)
 
void erase_data (int)
 
- Protected Member Functions inherited from casa::QtDBusApp
bool connectToDBus (QObject *object, const QString &dbus_name="")
 

Private Types

typedef std::map< int,
panel_desc * > 
panelmap
 
typedef std::map< int,
data_desc * > 
datamap
 

Private Member Functions

QDBusVariant error (const QString &message)
 
bool printps (QtDisplayPanel *panel, const QString &type, const QString &file, int dpi, const QString &orientation, const QString &media)
 
bool printraster (QtDisplayPanel *panel, const QString &type, const QString &file, double scale)
 
void adjusteps (const char *from, const char *to, const QSize &wcmax, const QRect &viewport)
 
int get_id (QtDisplayPanelGui *, QtDisplayData *, const QString &path, const QString &type)
 
int get_id (QtDisplayPanelGui *)
 
QtDisplayPanelGuifindpanel (int key, bool create=true)
 
QtDisplayDatafinddata (int key)
 

Private Attributes

QtViewerviewer_
 
datamap managed_datas
 
panelmap managed_panels
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::QtDBusApp
static QDBusConnection connection ()
 
static QString serviceOwner (const QString &service)
 
static QString serviceOwner (const std::string &service)
 
static bool serviceIsAvailable (const QString &service)
 
static bool serviceIsAvailable (const std::string &service)
 
static QString generateServiceName (const QString &name, const pid_t pid)
 

Detailed Description

Definition at line 44 of file QtDBusViewerAdaptor.qo.h.

Member Typedef Documentation

typedef std::map<int,data_desc*> casa::QtDBusViewerAdaptor::datamap
private

Definition at line 222 of file QtDBusViewerAdaptor.qo.h.

typedef std::map<int,panel_desc*> casa::QtDBusViewerAdaptor::panelmap
private

Definition at line 221 of file QtDBusViewerAdaptor.qo.h.

Constructor & Destructor Documentation

casa::QtDBusViewerAdaptor::QtDBusViewerAdaptor ( QtViewer )

Constructor which takes the application.

casa::QtDBusViewerAdaptor::~QtDBusViewerAdaptor ( )

Destructor.

Member Function Documentation

void casa::QtDBusViewerAdaptor::adjusteps ( const char *  from,
const char *  to,
const QSize &  wcmax,
const QRect &  viewport 
)
private
QDBusVariant casa::QtDBusViewerAdaptor::axes ( const QString &  x = "",
const QString &  y = "",
const QString &  z = "",
int  panel = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::channel ( int  num = -1,
int  panel = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::close ( int  panel = 0)
slot
QDBusVariant casa::QtDBusViewerAdaptor::colormap ( const QString &  map,
int  panel_or_data = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::colorwedge ( bool  show = true,
int  panel_or_data = 0 
)
slot
bool casa::QtDBusViewerAdaptor::connectToDBus ( const QString &  dbus_name = "")
inlinevirtual

Connects to the DBus server using the name provided (if non-null).

Otherwise, the dbusName() method with the current process ID is used. Returns a boolean which indicates whether the connection succeeded or not.

Implements casa::QtDBusApp.

Definition at line 53 of file QtDBusViewerAdaptor.qo.h.

References casa::QtDBusApp::connectToDBus().

QDBusVariant casa::QtDBusViewerAdaptor::contourcolor ( const QString &  color,
int  panel_or_data = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::contourlevels ( const QList< double > &  levels,
double  baselevel = 2147483648.0,
double  unitlevel = 2147483648.0,
int  panel_or_data = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::contourthickness ( double  thickness,
int  panel_or_data = 0 
)
slot
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::create_panel ( )
protected
QDBusVariant casa::QtDBusViewerAdaptor::cwd ( const QString &  new_path = "")
slot
QDBusVariant casa::QtDBusViewerAdaptor::datarange ( const QList< double > &  range,
int  data = 0 
)
slot
QString casa::QtDBusViewerAdaptor::dbusName ( ) const
inlinevirtual

Implements casa::QtDBusApp.

Definition at line 50 of file QtDBusViewerAdaptor.qo.h.

References casa::QtViewer::name().

bool casa::QtDBusViewerAdaptor::done ( )
slot
void casa::QtDBusViewerAdaptor::erase_data ( int  )
protected
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::erase_panel ( int  panel)
protected
QDBusVariant casa::QtDBusViewerAdaptor::error ( const QString &  message)
inlineprivate

Definition at line 130 of file QtDBusViewerAdaptor.qo.h.

void casa::QtDBusViewerAdaptor::exiting ( QDBusVariant  )
signal
QDBusVariant casa::QtDBusViewerAdaptor::fileinfo ( const QString &  path)
slot
QtDisplayData* casa::QtDBusViewerAdaptor::finddata ( int  key)
private
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::findpanel ( int  key,
bool  create = true 
)
private
QDBusVariant casa::QtDBusViewerAdaptor::freeze ( int  panel = 0)
slot
int casa::QtDBusViewerAdaptor::get_id ( QtDisplayPanelGui ,
QtDisplayData ,
const QString &  path,
const QString &  type 
)
private
int casa::QtDBusViewerAdaptor::get_id ( QtDisplayPanelGui )
private
void casa::QtDBusViewerAdaptor::handle_destroyed_panel ( QObject *  )
protectedslot
void casa::QtDBusViewerAdaptor::handle_interact ( QVariant  )
protectedslot
QDBusVariant casa::QtDBusViewerAdaptor::hide ( int  panel = 0)
slot
void casa::QtDBusViewerAdaptor::interact ( QDBusVariant  )
signal
QStringList casa::QtDBusViewerAdaptor::keyinfo ( int  )
slot
QDBusVariant casa::QtDBusViewerAdaptor::load ( const QString &  path,
const QString &  displaytype = "raster",
int  panel = 0,
double  scaling = 0 
)
slot
void casa::QtDBusViewerAdaptor::load_data ( QtDisplayPanelGui panel,
int  index 
)
protected
bool casa::QtDBusViewerAdaptor::output ( const QString &  device,
const QString &  devicetype = "file",
int  panel = 0,
double  scale = 1.0,
int  dpi = 300,
const QString &  format = "jpg",
const QString &  orientation = "portrait",
const QString &  media = "letter" 
)
slot

device: file name or printer name devicetype: "file", "printer", or "ghostscript" format: "jpg", "pdf", "eps", "ps", "png", "xbm", "xpm", "ppm" [only used with devicetype == "file"] [extension on device, e.g.

"outfile.pdf" overrides "format"] scale: size scale factor for raster output (e.g. jpg etc.) dpi: resolution of PS or EPS images orientation: "portrait", "landscape" media: "letter" or "a4"

QDBusVariant casa::QtDBusViewerAdaptor::panel ( const QString &  type = "viewer",
bool  hidden = false 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::popup ( const QString &  what,
int  panel = 0 
)
slot
bool casa::QtDBusViewerAdaptor::printps ( QtDisplayPanel panel,
const QString &  type,
const QString &  file,
int  dpi,
const QString &  orientation,
const QString &  media 
)
private
bool casa::QtDBusViewerAdaptor::printraster ( QtDisplayPanel panel,
const QString &  type,
const QString &  file,
double  scale 
)
private
QDBusVariant casa::QtDBusViewerAdaptor::release ( int  panel)
slot

like "close()", but leaves the closing up to the user if the window is not hidden

QDBusVariant casa::QtDBusViewerAdaptor::reload ( int  panel_or_data)
slot
QDBusVariant casa::QtDBusViewerAdaptor::restore ( const QString &  path,
int  panel = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::setoptions ( const QDBusVariant &  input,
int  panel 
)
slot

To change certain things so the panel.

QDBusVariant casa::QtDBusViewerAdaptor::show ( int  panel = 0)
slot
QDBusVariant casa::QtDBusViewerAdaptor::start_interact ( const QDBusVariant &  input,
int  panel 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::unfreeze ( int  panel = 0)
slot
QDBusVariant casa::QtDBusViewerAdaptor::unload ( int  data)
slot
void casa::QtDBusViewerAdaptor::unload_data ( QtDisplayPanelGui panel,
int  index,
bool  erase = true 
)
protected
QDBusVariant casa::QtDBusViewerAdaptor::zoom ( int  level,
int  panel = 0 
)
slot
QDBusVariant casa::QtDBusViewerAdaptor::zoom ( const QList< double > &  blc,
const QList< double > &  trc,
const QString &  coordinates = "pixel",
int  panel = 0 
)
slot

Member Data Documentation

datamap casa::QtDBusViewerAdaptor::managed_datas
private

Definition at line 223 of file QtDBusViewerAdaptor.qo.h.

panelmap casa::QtDBusViewerAdaptor::managed_panels
private

Definition at line 224 of file QtDBusViewerAdaptor.qo.h.

QtViewer* casa::QtDBusViewerAdaptor::viewer_
private

Definition at line 214 of file QtDBusViewerAdaptor.qo.h.


The documentation for this class was generated from the following file: