casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Slots | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes
casa::QtDataManager Class Reference

#include <QtDataManager.qo.h>

List of all members.

Classes

class  tab_state
struct  validation_msg

Public Types

typedef std::list< std::pair
< QGroupBox *, QLineEdit * > > 
infofield_list_t

Public Slots

void updateDisplayDatas (QtDisplayData *qdd=0, Bool autoRegister=True)

Signals

void tableReadErrorSignal (String msg)

Public Member Functions

 QtDataManager (QtDisplayPanelGui *panel=0, const char *name=0, QWidget *parent=0)
 ~QtDataManager ()
void updateDirectory (const std::string &)
void showTab (std::string)

Protected Types

enum  DATATYPE {
  UNKNOWN,
  IMAGE,
  MEASUREMENT_SET,
  SKY_CATALOG,
  RESTORE,
  DIRECTORY,
  QUALIMG,
  CASAREGION,
  DS9REGION
}
enum  DISPLAYTYPE {
  RASTER,
  CONTOUR,
  VECTOR,
  MARKER,
  SKY_CAT,
  NEWPANEL,
  OLDPANEL
}

Protected Slots

void handle_region_update (viewer::Region *, std::string)
void createButtonClicked ()
void clickItem (QTreeWidgetItem *item)
void expandItem (QTreeWidgetItem *item)
void changeItemSelection ()
void returnPressed ()
void buildDirTree (std::string newdir="")
void lelGotFocus_ ()
void load_regions_clicked ()
void restoreToOld_ ()
 Restore viewer state to existing panel.
void restoreToNew_ ()
 Create new display panel, restore viewer state to it.
void restoreTo_ (QtDisplayPanel *dp)
 Restore viewer state to given panel.
void showDDCreateError_ (String)
void leaveopenButtonClicked (bool checked)
void showlelButtonClicked (bool checked)
void showSliceButtonClicked (bool checked)
void changeTabContext (int)
void img_output_target_changed (const QString &s="")
void img_output_target_changed (bool)
void region_ds9_csys_disable (bool)
void region_output_target_changed (const QString &s="")
void region_output_target_changed (bool)
void img_do_output ()
void region_do_output ()
void region_item_state_change (QTreeWidgetItem *, int)
void region_selection_change (viewer::Region *rgn, bool selected)

Protected Member Functions

void showDisplayButtons (int, const QString &name=QString((const char *) 0))
void hideDisplayButtons ()
QColor getDirColor (int)
QStringList analyseFITSImage (QString path)
Bool isQualImg (const QString &extexpr)
std::string guimethod_to_iamethod (const QString &)

Protected Attributes

QHash< int, QString > dataType_
QHash< QString, int > uiDataType_
QHash< QString, int > displayType_
QHash< QString, int > uiDisplayType_
QVector< int > exportTypes_
viewer::ImageProperties image_properties
infofield_list_t load_ifields

Private Types

typedef std::map< QString,
QtDisplayData * > 
display_data_map_t
typedef std::map
< QTreeWidgetItem
*, viewer::Region * > 
treeitem_map_t
typedef std::map
< viewer::Region
*, QTreeWidgetItem * > 
region_map_t
typedef std::map< int, tab_statetab_info_map_t

Private Member Functions

validation_msg output_validation (const QString &, const QString &, validation_msg::output_format_t) const
void update_regrid_options ()
void update_slice_options (int ddtp, const QString &name)
void fill_image_info (const std::string &)
void init_tab_info ()
void load_tab_notify (const std::string &value, tab_state &)
void update_dd_list (tab_state &ts)
void image_tab_notify (const std::string &value, tab_state &)
void image_tab_error (const std::string &value, tab_state &)
void update_region_list (tab_state &ts)
void region_tab_notify (const std::string &value, tab_state &)
void region_tab_error (const std::string &value, tab_state &)
bool export_to_fits (ImageInterface< Float > *img, std::string outFile)
bool export_to_casa (ImageInterface< Float > *img, String outFile)
void getSpectralCoordFlags (const ImageInterface< Float > *img, Bool &preferVelocity, Bool &opticalVelocity, Bool &preferWavelength, Bool &preferAirWavelength)

Private Attributes

display_data_map_t display_datas
treeitem_map_t treeitem_to_region
region_map_t region_to_treeitem
QWidget * parent_
QtDisplayPanelGuipanel_
Ui::QtDataMgrMsSelect * ms_selection
QString last_image_extension_tweak_string
 avoid setting the export type more than once
QString last_region_extension_tweak_string
Casarcrc
 connection to rc file
tab_info_map_t tab_info
viewer::SlicerGenslice_gen

Detailed Description

Definition at line 68 of file QtDataManager.qo.h.


Member Typedef Documentation

typedef std::map<QString,QtDisplayData*> casa::QtDataManager::display_data_map_t [private]

Definition at line 167 of file QtDataManager.qo.h.

typedef std::list<std::pair<QGroupBox*,QLineEdit*> > casa::QtDataManager::infofield_list_t

Definition at line 74 of file QtDataManager.qo.h.

typedef std::map<viewer::Region*,QTreeWidgetItem*> casa::QtDataManager::region_map_t [private]

Definition at line 172 of file QtDataManager.qo.h.

typedef std::map<int,tab_state> casa::QtDataManager::tab_info_map_t [private]

Definition at line 264 of file QtDataManager.qo.h.

typedef std::map<QTreeWidgetItem*,viewer::Region*> casa::QtDataManager::treeitem_map_t [private]

Definition at line 170 of file QtDataManager.qo.h.


Member Enumeration Documentation

Enumerator:
UNKNOWN 
IMAGE 
MEASUREMENT_SET 
SKY_CATALOG 
RESTORE 
DIRECTORY 
QUALIMG 
CASAREGION 
DS9REGION 

Definition at line 101 of file QtDataManager.qo.h.

Enumerator:
RASTER 
CONTOUR 
VECTOR 
MARKER 
SKY_CAT 
NEWPANEL 
OLDPANEL 

Definition at line 103 of file QtDataManager.qo.h.


Constructor & Destructor Documentation

casa::QtDataManager::QtDataManager ( QtDisplayPanelGui panel = 0,
const char *  name = 0,
QWidget *  parent = 0 
)

Member Function Documentation

QStringList casa::QtDataManager::analyseFITSImage ( QString  path) [protected]
void casa::QtDataManager::buildDirTree ( std::string  newdir = "") [protected, slot]
void casa::QtDataManager::changeItemSelection ( ) [protected, slot]
void casa::QtDataManager::changeTabContext ( int  ) [protected, slot]
void casa::QtDataManager::clickItem ( QTreeWidgetItem *  item) [protected, slot]
void casa::QtDataManager::createButtonClicked ( ) [protected, slot]
void casa::QtDataManager::expandItem ( QTreeWidgetItem *  item) [protected, slot]
bool casa::QtDataManager::export_to_casa ( ImageInterface< Float > *  img,
String  outFile 
) [private]
bool casa::QtDataManager::export_to_fits ( ImageInterface< Float > *  img,
std::string  outFile 
) [private]
void casa::QtDataManager::fill_image_info ( const std::string &  ) [private]
QColor casa::QtDataManager::getDirColor ( int  ) [protected]
void casa::QtDataManager::getSpectralCoordFlags ( const ImageInterface< Float > *  img,
Bool preferVelocity,
Bool opticalVelocity,
Bool preferWavelength,
Bool preferAirWavelength 
) [private]
std::string casa::QtDataManager::guimethod_to_iamethod ( const QString &  ) [protected]
void casa::QtDataManager::handle_region_update ( viewer::Region ,
std::string   
) [protected, slot]
void casa::QtDataManager::image_tab_error ( const std::string &  value,
tab_state  
) [private]
void casa::QtDataManager::image_tab_notify ( const std::string &  value,
tab_state  
) [private]
void casa::QtDataManager::img_do_output ( ) [protected, slot]
void casa::QtDataManager::img_output_target_changed ( const QString &  s = "") [protected, slot]
void casa::QtDataManager::img_output_target_changed ( bool  ) [inline, protected, slot]

Definition at line 153 of file QtDataManager.qo.h.

References img_output_target_changed().

Referenced by img_output_target_changed().

Bool casa::QtDataManager::isQualImg ( const QString &  extexpr) [protected]
void casa::QtDataManager::leaveopenButtonClicked ( bool  checked) [protected, slot]
void casa::QtDataManager::lelGotFocus_ ( ) [protected, slot]
void casa::QtDataManager::load_regions_clicked ( ) [protected, slot]
void casa::QtDataManager::load_tab_notify ( const std::string &  value,
tab_state  
) [private]
validation_msg casa::QtDataManager::output_validation ( const QString &  ,
const QString &  ,
validation_msg::output_format_t   
) const [private]
void casa::QtDataManager::region_do_output ( ) [protected, slot]
void casa::QtDataManager::region_ds9_csys_disable ( bool  ) [protected, slot]
void casa::QtDataManager::region_item_state_change ( QTreeWidgetItem *  ,
int   
) [protected, slot]
void casa::QtDataManager::region_output_target_changed ( const QString &  s = "") [protected, slot]
void casa::QtDataManager::region_output_target_changed ( bool  ) [inline, protected, slot]

Definition at line 157 of file QtDataManager.qo.h.

References region_output_target_changed().

Referenced by region_output_target_changed().

void casa::QtDataManager::region_selection_change ( viewer::Region rgn,
bool  selected 
) [protected, slot]
void casa::QtDataManager::region_tab_error ( const std::string &  value,
tab_state  
) [private]
void casa::QtDataManager::region_tab_notify ( const std::string &  value,
tab_state  
) [private]
void casa::QtDataManager::restoreTo_ ( QtDisplayPanel dp) [protected, slot]

Restore viewer state to given panel.

void casa::QtDataManager::restoreToNew_ ( ) [protected, slot]

Create new display panel, restore viewer state to it.

void casa::QtDataManager::restoreToOld_ ( ) [protected, slot]

Restore viewer state to existing panel.

Use the first empty panel, or if none, the first panel.

void casa::QtDataManager::returnPressed ( ) [protected, slot]
void casa::QtDataManager::showDDCreateError_ ( String  ) [protected, slot]
void casa::QtDataManager::showDisplayButtons ( int  ,
const QString &  name = QString((const char *) 0) 
) [protected]
void casa::QtDataManager::showlelButtonClicked ( bool  checked) [protected, slot]
void casa::QtDataManager::showSliceButtonClicked ( bool  checked) [protected, slot]
void casa::QtDataManager::showTab ( std::string  )
void casa::QtDataManager::update_slice_options ( int  ddtp,
const QString &  name 
) [private]
void casa::QtDataManager::updateDirectory ( const std::string &  )
void casa::QtDataManager::updateDisplayDatas ( QtDisplayData qdd = 0,
Bool  autoRegister = True 
) [slot]

Member Data Documentation

QHash<int, QString> casa::QtDataManager::dataType_ [protected]

Definition at line 106 of file QtDataManager.qo.h.

Definition at line 168 of file QtDataManager.qo.h.

QHash<QString, int> casa::QtDataManager::displayType_ [protected]

Definition at line 108 of file QtDataManager.qo.h.

QVector<int> casa::QtDataManager::exportTypes_ [protected]

Definition at line 110 of file QtDataManager.qo.h.

Definition at line 112 of file QtDataManager.qo.h.

avoid setting the export type more than once

Definition at line 258 of file QtDataManager.qo.h.

Definition at line 259 of file QtDataManager.qo.h.

Definition at line 113 of file QtDataManager.qo.h.

Ui::QtDataMgrMsSelect* casa::QtDataManager::ms_selection [private]

Definition at line 255 of file QtDataManager.qo.h.

Definition at line 254 of file QtDataManager.qo.h.

QWidget* casa::QtDataManager::parent_ [private]

Definition at line 253 of file QtDataManager.qo.h.

connection to rc file

Definition at line 262 of file QtDataManager.qo.h.

Definition at line 173 of file QtDataManager.qo.h.

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

Definition at line 265 of file QtDataManager.qo.h.

Definition at line 171 of file QtDataManager.qo.h.

QHash<QString, int> casa::QtDataManager::uiDataType_ [protected]

Definition at line 107 of file QtDataManager.qo.h.

QHash<QString, int> casa::QtDataManager::uiDisplayType_ [protected]

Definition at line 109 of file QtDataManager.qo.h.


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