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 Member Functions | Private Types | Private Attributes | List of all members
casa::grpcImageViewer Class Reference

#include <grpcViewerAdaptor.qo.h>

Inheritance diagram for casa::grpcImageViewer:

Classes

class  data_desc
 
class  panel_desc
 

Public Slots

void handle_destroyed_panel (QObject *)
 

Signals

void exit_now ()
 
void new_op ()
 

Public Member Functions

 grpcImageViewer (QtViewer *)
 Constructor which takes the application. More...
 
::grpc::Status panel (::grpc::ServerContext *context, const ::rpc::img::NewPanel *req,::rpc::img::Id *reply)
 
::grpc::Status hide (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status show (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status freeze (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status unfreeze (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status close (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status release (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status axes (::grpc::ServerContext *context, const ::rpc::img::Axes *req,::google::protobuf::Empty *)
 
::grpc::Status popup (::grpc::ServerContext *context, const ::rpc::img::PopUp *req,::google::protobuf::Empty *)
 
::grpc::Status load (::grpc::ServerContext *context, const ::rpc::img::NewData *req,::rpc::img::Id *reply)
 
::grpc::Status reload (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status unload (::grpc::ServerContext *context, const ::rpc::img::Id *req,::google::protobuf::Empty *)
 
::grpc::Status restore (::grpc::ServerContext *context, const ::rpc::img::Restore *req,::rpc::img::Id *reply)
 
::grpc::Status colormap (::grpc::ServerContext *context, const ::rpc::img::ColorMap *req,::google::protobuf::Empty *)
 
::grpc::Status colorwedge (::grpc::ServerContext *context, const ::rpc::img::Toggle *req,::google::protobuf::Empty *)
 
::grpc::Status datarange (::grpc::ServerContext *context, const ::rpc::img::DataRange *req,::google::protobuf::Empty *)
 
::grpc::Status contourlevels (::grpc::ServerContext *context, const ::rpc::img::ContourLevels *req,::google::protobuf::Empty *)
 
::grpc::Status contourthickness (::grpc::ServerContext *context, const ::rpc::img::ContourThickness *req,::google::protobuf::Empty *)
 
::grpc::Status contourcolor (::grpc::ServerContext *context, const ::rpc::img::ContourColor *req,::google::protobuf::Empty *)
 
::grpc::Status channel (::grpc::ServerContext *context, const ::rpc::img::SetChannel *req,::google::protobuf::Empty *)
 
::grpc::Status zoomlevel (::grpc::ServerContext *context, const ::rpc::img::SetZoomLevel *req,::google::protobuf::Empty *)
 
::grpc::Status zoombox (::grpc::ServerContext *context, const ::rpc::img::SetZoomBox *req,::google::protobuf::Empty *)
 
::grpc::Status output (::grpc::ServerContext *context, const ::rpc::img::Output *req,::google::protobuf::Empty *)
 
::grpc::Status fileinfo (::grpc::ServerContext *context, const ::rpc::img::Path *req,::rpc::img::FileInfo *reply)
 
::grpc::Status keyinfo (::grpc::ServerContext *context, const ::rpc::img::Id *req,::rpc::img::KeyInfo *reply)
 
::grpc::Status cwd (::grpc::ServerContext *context, const ::rpc::img::Path *req,::rpc::img::Path *reply)
 if path is null string, return current path if path is not null (and represents a valid dir), cd to new path && return new path More...
 
::grpc::Status done (::grpc::ServerContext *, const ::google::protobuf::Empty *,::google::protobuf::Empty *)
 duplicates the shutdown::now rpc call... More...
 
int get_id (QtDisplayPanelGui *)
 
int get_id (QtDisplayPanelGui *, QtDisplayData *, const std::string &path, const std::string &type)
 
QtDisplayDatafinddata (int key)
 
QtDisplayPanelGuifindpanel (int key)
 
void erase_panel (int panel)
 
void erase_data (int)
 
bool load_data (QtDisplayPanelGui *, int)
 
bool unload_data (QtDisplayPanelGui *, int, bool=true)
 
bool printraster (QtDisplayPanel *panel, const QString &type, const QString &file, double scale)
 
bool printps (QtDisplayPanel *panel, const QString &type, const QString &file, int dpi, const QString &orientation, const QString &media)
 
void adjusteps (const char *from, const char *to, const QSize &wcmax, const QRect &viewport)
 

Protected Member Functions

void qtGO (std::function< void()>)
 

Private Types

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

Private Attributes

std::recursive_mutex managed_panels_mutex
 
panelmap managed_panels
 
std::recursive_mutex managed_datas_mutex
 
datamap managed_datas
 
QtViewerviewer_
 

Detailed Description

Definition at line 58 of file grpcViewerAdaptor.qo.h.

Member Typedef Documentation

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

Definition at line 282 of file grpcViewerAdaptor.qo.h.

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

Definition at line 278 of file grpcViewerAdaptor.qo.h.

Constructor & Destructor Documentation

casa::grpcImageViewer::grpcImageViewer ( QtViewer )

Constructor which takes the application.

Member Function Documentation

void casa::grpcImageViewer::adjusteps ( const char *  from,
const char *  to,
const QSize &  wcmax,
const QRect &  viewport 
)
::grpc::Status casa::grpcImageViewer::axes ( ::grpc::ServerContext *  context,
const ::rpc::img::Axes *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::channel ( ::grpc::ServerContext *  context,
const ::rpc::img::SetChannel *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::close ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::colormap ( ::grpc::ServerContext *  context,
const ::rpc::img::ColorMap *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::colorwedge ( ::grpc::ServerContext *  context,
const ::rpc::img::Toggle *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::contourcolor ( ::grpc::ServerContext *  context,
const ::rpc::img::ContourColor *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::contourlevels ( ::grpc::ServerContext *  context,
const ::rpc::img::ContourLevels *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::contourthickness ( ::grpc::ServerContext *  context,
const ::rpc::img::ContourThickness *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::cwd ( ::grpc::ServerContext *  context,
const ::rpc::img::Path *  req,
::rpc::img::Path *  reply 
)

if path is null string, return current path if path is not null (and represents a valid dir), cd to new path && return new path

::grpc::Status casa::grpcImageViewer::datarange ( ::grpc::ServerContext *  context,
const ::rpc::img::DataRange *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::done ( ::grpc::ServerContext *  ,
const ::google::protobuf::Empty *  ,
::google::protobuf::Empty *   
)

duplicates the shutdown::now rpc call...

duplicates grpcShutdown::now(...)

void casa::grpcImageViewer::erase_data ( int  )
void casa::grpcImageViewer::erase_panel ( int  panel)
void casa::grpcImageViewer::exit_now ( )
signal
::grpc::Status casa::grpcImageViewer::fileinfo ( ::grpc::ServerContext *  context,
const ::rpc::img::Path *  req,
::rpc::img::FileInfo *  reply 
)
QtDisplayData* casa::grpcImageViewer::finddata ( int  key)
QtDisplayPanelGui* casa::grpcImageViewer::findpanel ( int  key)
::grpc::Status casa::grpcImageViewer::freeze ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
int casa::grpcImageViewer::get_id ( QtDisplayPanelGui )
int casa::grpcImageViewer::get_id ( QtDisplayPanelGui ,
QtDisplayData ,
const std::string &  path,
const std::string &  type 
)
void casa::grpcImageViewer::handle_destroyed_panel ( QObject *  )
slot
::grpc::Status casa::grpcImageViewer::hide ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::keyinfo ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::rpc::img::KeyInfo *  reply 
)
::grpc::Status casa::grpcImageViewer::load ( ::grpc::ServerContext *  context,
const ::rpc::img::NewData *  req,
::rpc::img::Id *  reply 
)
bool casa::grpcImageViewer::load_data ( QtDisplayPanelGui ,
int   
)
void casa::grpcImageViewer::new_op ( )
signal
::grpc::Status casa::grpcImageViewer::output ( ::grpc::ServerContext *  context,
const ::rpc::img::Output *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::panel ( ::grpc::ServerContext *  context,
const ::rpc::img::NewPanel *  req,
::rpc::img::Id *  reply 
)
::grpc::Status casa::grpcImageViewer::popup ( ::grpc::ServerContext *  context,
const ::rpc::img::PopUp *  req,
::google::protobuf::Empty *   
)
bool casa::grpcImageViewer::printps ( QtDisplayPanel panel,
const QString &  type,
const QString &  file,
int  dpi,
const QString &  orientation,
const QString &  media 
)
bool casa::grpcImageViewer::printraster ( QtDisplayPanel panel,
const QString &  type,
const QString &  file,
double  scale 
)
void casa::grpcImageViewer::qtGO ( std::function< void()>  )
protected
::grpc::Status casa::grpcImageViewer::release ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::reload ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::restore ( ::grpc::ServerContext *  context,
const ::rpc::img::Restore *  req,
::rpc::img::Id *  reply 
)
::grpc::Status casa::grpcImageViewer::show ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::unfreeze ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::unload ( ::grpc::ServerContext *  context,
const ::rpc::img::Id *  req,
::google::protobuf::Empty *   
)
bool casa::grpcImageViewer::unload_data ( QtDisplayPanelGui ,
int  ,
bool  = true 
)
::grpc::Status casa::grpcImageViewer::zoombox ( ::grpc::ServerContext *  context,
const ::rpc::img::SetZoomBox *  req,
::google::protobuf::Empty *   
)
::grpc::Status casa::grpcImageViewer::zoomlevel ( ::grpc::ServerContext *  context,
const ::rpc::img::SetZoomLevel *  req,
::google::protobuf::Empty *   
)

Member Data Documentation

datamap casa::grpcImageViewer::managed_datas
private

Definition at line 284 of file grpcViewerAdaptor.qo.h.

std::recursive_mutex casa::grpcImageViewer::managed_datas_mutex
private

Definition at line 283 of file grpcViewerAdaptor.qo.h.

panelmap casa::grpcImageViewer::managed_panels
private

Definition at line 280 of file grpcViewerAdaptor.qo.h.

std::recursive_mutex casa::grpcImageViewer::managed_panels_mutex
private

Definition at line 279 of file grpcViewerAdaptor.qo.h.

QtViewer* casa::grpcImageViewer::viewer_
private

Definition at line 286 of file grpcViewerAdaptor.qo.h.


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