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

#include <QtDataManager.qo.h>

Inheritance diagram for casa::QtDataManager:

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 (casacore::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)
 
void clearRegionMap ()
 

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. More...
 
void restoreToNew_ ()
 Create new display panel, restore viewer state to it. More...
 
void restoreTo_ (QtDisplayPanel *dp)
 Restore viewer state to given panel. More...
 
void showDDCreateError_ (casacore::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 showEvent (QShowEvent *event)
 
void enterEvent (QEvent *event)
 
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 Slots

void enable_disable_slice (const QString &)
 
void enable_disable_regrid (bool)
 

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 (casacore::ImageInterface< float > *img, std::string outFile)
 
bool export_to_casa (casacore::ImageInterface< float > *img, casacore::String outFile)
 
void getSpectralCoordFlags (const casacore::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 More...
 
QString last_region_extension_tweak_string
 
casacore::Casarcrc
 connection to rc file More...
 
tab_info_map_t tab_info
 
viewer::SlicerGenslice_gen
 
bool slice_available
 
bool regrid_available
 

Detailed Description

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

Member Enumeration Documentation

Enumerator
UNKNOWN 
IMAGE 
MEASUREMENT_SET 
SKY_CATALOG 
RESTORE 
DIRECTORY 
QUALIMG 
CASAREGION 
DS9REGION 

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

Enumerator
RASTER 
CONTOUR 
VECTOR 
MARKER 
SKY_CAT 
NEWPANEL 
OLDPANEL 

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

Constructor & Destructor Documentation

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

Member Function Documentation

QStringList casa::QtDataManager::analyseFITSImage ( QString  path)
protected
void casa::QtDataManager::buildDirTree ( std::string  newdir = "")
protectedslot
void casa::QtDataManager::changeItemSelection ( )
protectedslot
void casa::QtDataManager::changeTabContext ( int  )
protectedslot
void casa::QtDataManager::clearRegionMap ( )
void casa::QtDataManager::clickItem ( QTreeWidgetItem *  item)
protectedslot
void casa::QtDataManager::createButtonClicked ( )
protectedslot
void casa::QtDataManager::enable_disable_regrid ( bool  )
privateslot
void casa::QtDataManager::enable_disable_slice ( const QString &  )
privateslot
void casa::QtDataManager::enterEvent ( QEvent *  event)
protected
void casa::QtDataManager::expandItem ( QTreeWidgetItem *  item)
protectedslot
bool casa::QtDataManager::export_to_casa ( casacore::ImageInterface< float > *  img,
casacore::String  outFile 
)
private
bool casa::QtDataManager::export_to_fits ( casacore::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 casacore::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   
)
protectedslot
void casa::QtDataManager::hideDisplayButtons ( )
protected
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 ( )
protectedslot
void casa::QtDataManager::img_output_target_changed ( const QString &  s = "")
protectedslot
void casa::QtDataManager::img_output_target_changed ( bool  )
inlineprotectedslot

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

References img_output_target_changed().

void casa::QtDataManager::init_tab_info ( )
private
bool casa::QtDataManager::isQualImg ( const QString &  extexpr)
protected
void casa::QtDataManager::leaveopenButtonClicked ( bool  checked)
protectedslot
void casa::QtDataManager::lelGotFocus_ ( )
protectedslot
void casa::QtDataManager::load_regions_clicked ( )
protectedslot
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 ( )
protectedslot
void casa::QtDataManager::region_ds9_csys_disable ( bool  )
protectedslot
void casa::QtDataManager::region_item_state_change ( QTreeWidgetItem *  ,
int   
)
protectedslot
void casa::QtDataManager::region_output_target_changed ( const QString &  s = "")
protectedslot
void casa::QtDataManager::region_output_target_changed ( bool  )
inlineprotectedslot

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

References region_output_target_changed().

void casa::QtDataManager::region_selection_change ( viewer::Region rgn,
bool  selected 
)
protectedslot
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)
protectedslot

Restore viewer state to given panel.

void casa::QtDataManager::restoreToNew_ ( )
protectedslot

Create new display panel, restore viewer state to it.

void casa::QtDataManager::restoreToOld_ ( )
protectedslot

Restore viewer state to existing panel.

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

void casa::QtDataManager::returnPressed ( )
protectedslot
void casa::QtDataManager::showDDCreateError_ ( casacore::String  )
protectedslot
void casa::QtDataManager::showDisplayButtons ( int  ,
const QString &  name = QString((const char *) 0) 
)
protected
void casa::QtDataManager::showEvent ( QShowEvent *  event)
protected
void casa::QtDataManager::showlelButtonClicked ( bool  checked)
protectedslot
void casa::QtDataManager::showSliceButtonClicked ( bool  checked)
protectedslot
void casa::QtDataManager::showTab ( std::string  )
void casa::QtDataManager::tableReadErrorSignal ( casacore::String  msg)
signal
void casa::QtDataManager::update_dd_list ( tab_state ts)
private
void casa::QtDataManager::update_region_list ( tab_state ts)
private
void casa::QtDataManager::update_regrid_options ( )
private
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 139 of file QtDataManager.qo.h.

display_data_map_t casa::QtDataManager::display_datas
private

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

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

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

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

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

viewer::ImageProperties casa::QtDataManager::image_properties
protected

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

QString casa::QtDataManager::last_image_extension_tweak_string
private

avoid setting the export type more than once

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

QString casa::QtDataManager::last_region_extension_tweak_string
private

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

infofield_list_t casa::QtDataManager::load_ifields
protected

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

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

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

QtDisplayPanelGui* casa::QtDataManager::panel_
private

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

QWidget* casa::QtDataManager::parent_
private

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

casacore::Casarc& casa::QtDataManager::rc
private

connection to rc file

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

region_map_t casa::QtDataManager::region_to_treeitem
private

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

bool casa::QtDataManager::regrid_available
private

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

bool casa::QtDataManager::slice_available
private

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

viewer::SlicerGen* casa::QtDataManager::slice_gen
private

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

tab_info_map_t casa::QtDataManager::tab_info
private

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

treeitem_map_t casa::QtDataManager::treeitem_to_region
private

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

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

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

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

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


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