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

#include <QtRegionDock.qo.h>

List of all members.

Public Slots

void updateRegionState (QtDisplayData *)

Signals

void deleteRegion (QtRegionState *)
 triggers deletion elsewhere of Region containing this QtRegionState which then causes the removal of this QtRegionState...
void regionChange (viewer::Region *, std::string)
 notice sent after QtRegionState is removed from QStackWidget, and after Region has already been deleted...
void deleteAllRegions ()
void regionSelected (int id)
void saveRegions (std::list< QtRegionState * >, RegionTextList &)
void saveRegions (std::list< QtRegionState * >, ds9writer &)
void loadRegions (const QString &path, const QString &type)
void region_stack_change (QWidget *)

Public Member Functions

 QtRegionDock (QtDisplayPanelGui *, QWidget *parent=0)
 ~QtRegionDock ()
void addRegion (Region *, QtRegionState *, int index=-1)
int indexOf (QtRegionState *) const
void removeRegion (QtRegionState *)
void selectRegion (QtRegionState *, bool scroll=true)
void status (const std::string &msg, const std::string &type="info")
QtDisplayPanelGuipanel ()
std::pair< int, int > & tabState ()
std::map< std::string, int > & coordState ()
QString & saveDir ()
QString & loadDir ()
int & colorIndex ()
void selectedCountUpdateNeeded ()
 called to signal that selected region state needs to be updated...
size_t selectedRegionCount ()
 retrieve the selected region state...
const region::region_list_typeselectedRegionSet ()
size_t markedRegionCount ()
const region::region_list_typemarkedRegionSet ()
const region::region_list_typeweaklySelectedRegionSet ()
void clearWeaklySelectedRegionSet ()
bool isWeaklySelectedRegion (const Region *) const
void addWeaklySelectedRegion (Region *)
void removeWeaklySelectedRegion (Region *)
void dismiss ()
std::list< Region * > regions () const
std::string outputRegions (std::list< viewer::QtRegionState * > regions, std::string file, std::string format, std::string ds9_csys="pixel")
 zero length string indicates OK!
void updateRegionStats ()
void emitCreate (Region *)
int numFrames () const
void deleteRegions (const region::region_list_type &)
void revokeRegion (Region *r)

Protected Member Functions

void enterEvent (QEvent *)
void leaveEvent (QEvent *)
void closeEvent (QCloseEvent *event)

Private Types

typedef std::list< Region * > region_list_t
typedef std::map
< QtRegionState *, Region * > 
region_map_t

Private Slots

void stack_changed (int)
void change_stack (int)
void delete_current_region (bool)
void delete_all_regions (bool)
void output_region_event (const QString &what, const QString &where, const QString &type, const QString &csys)
void handle_visibility (bool)
void emit_region_stack_change (int)

Private Member Functions

void update_region_statistics ()

Private Attributes

QtDisplayPanelGuidpg
QtDisplayDatacurrent_dd
std::pair< int, int > current_tab_state
std::map< std::string, int > current_coord_state
int current_color_index
QString current_save_dir
QString current_load_dir
bool dismissed
bool mouse_in_dock
region_list_t region_list
region_map_t region_map
region::region_list_type selected_region_set_
 maintain a count of selected regions, information which is used to determine the corner treatment when drawing regions...
region::region_list_type weakly_selected_region_set_
region::region_list_type marked_region_set_

Detailed Description

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


Member Typedef Documentation

typedef std::list<Region*> casa::viewer::QtRegionDock::region_list_t [private]

Definition at line 147 of file QtRegionDock.qo.h.

Definition at line 149 of file QtRegionDock.qo.h.


Constructor & Destructor Documentation

casa::viewer::QtRegionDock::QtRegionDock ( QtDisplayPanelGui ,
QWidget *  parent = 0 
)

Member Function Documentation

void casa::viewer::QtRegionDock::addRegion ( Region ,
QtRegionState ,
int  index = -1 
)
void casa::viewer::QtRegionDock::change_stack ( int  ) [private, slot]
void casa::viewer::QtRegionDock::closeEvent ( QCloseEvent *  event) [protected]

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

References current_color_index.

std::map<std::string,int>& casa::viewer::QtRegionDock::coordState ( ) [inline]

Definition at line 71 of file QtRegionDock.qo.h.

References current_coord_state.

void casa::viewer::QtRegionDock::delete_all_regions ( bool  ) [private, slot]
void casa::viewer::QtRegionDock::delete_current_region ( bool  ) [private, slot]

triggers deletion elsewhere of Region containing this QtRegionState which then causes the removal of this QtRegionState...

void casa::viewer::QtRegionDock::enterEvent ( QEvent *  ) [protected]
void casa::viewer::QtRegionDock::handle_visibility ( bool  ) [private, slot]
void casa::viewer::QtRegionDock::leaveEvent ( QEvent *  ) [protected]
QString& casa::viewer::QtRegionDock::loadDir ( ) [inline]

Definition at line 73 of file QtRegionDock.qo.h.

References current_load_dir.

void casa::viewer::QtRegionDock::loadRegions ( const QString &  path,
const QString &  type 
) [signal]

Definition at line 81 of file QtRegionDock.qo.h.

References marked_region_set_.

Definition at line 82 of file QtRegionDock.qo.h.

References marked_region_set_.

void casa::viewer::QtRegionDock::output_region_event ( const QString &  what,
const QString &  where,
const QString &  type,
const QString &  csys 
) [private, slot]
std::string casa::viewer::QtRegionDock::outputRegions ( std::list< viewer::QtRegionState * >  regions,
std::string  file,
std::string  format,
std::string  ds9_csys = "pixel" 
)

zero length string indicates OK!

Definition at line 64 of file QtRegionDock.qo.h.

References dpg.

void casa::viewer::QtRegionDock::region_stack_change ( QWidget *  ) [signal]
void casa::viewer::QtRegionDock::regionChange ( viewer::Region ,
std::string   
) [signal]

notice sent after QtRegionState is removed from QStackWidget, and after Region has already been deleted...

also sent when a region is created (see std::string arg)...

std::list<Region*> casa::viewer::QtRegionDock::regions ( ) const [inline]

Definition at line 91 of file QtRegionDock.qo.h.

References region_list.

Referenced by casa::QtDisplayPanelGui::regions().

void casa::viewer::QtRegionDock::regionSelected ( int  id) [signal]
QString& casa::viewer::QtRegionDock::saveDir ( ) [inline]

Definition at line 72 of file QtRegionDock.qo.h.

References current_save_dir.

void casa::viewer::QtRegionDock::saveRegions ( std::list< QtRegionState * >  ,
RegionTextList  
) [signal]
void casa::viewer::QtRegionDock::saveRegions ( std::list< QtRegionState * >  ,
ds9writer  
) [signal]

called to signal that selected region state needs to be updated...

retrieve the selected region state...

Definition at line 79 of file QtRegionDock.qo.h.

References selected_region_set_.

Definition at line 80 of file QtRegionDock.qo.h.

References selected_region_set_.

void casa::viewer::QtRegionDock::selectRegion ( QtRegionState ,
bool  scroll = true 
)
void casa::viewer::QtRegionDock::stack_changed ( int  ) [private, slot]
void casa::viewer::QtRegionDock::status ( const std::string &  msg,
const std::string &  type = "info" 
)
std::pair<int,int>& casa::viewer::QtRegionDock::tabState ( ) [inline]

Definition at line 70 of file QtRegionDock.qo.h.

References current_tab_state.

Definition at line 83 of file QtRegionDock.qo.h.

References weakly_selected_region_set_.


Member Data Documentation

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

Referenced by colorIndex().

std::map<std::string,int> casa::viewer::QtRegionDock::current_coord_state [private]

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

Referenced by coordState().

Definition at line 138 of file QtRegionDock.qo.h.

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

Referenced by loadDir().

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

Referenced by saveDir().

std::pair<int,int> casa::viewer::QtRegionDock::current_tab_state [private]

Definition at line 139 of file QtRegionDock.qo.h.

Referenced by tabState().

Definition at line 144 of file QtRegionDock.qo.h.

Definition at line 137 of file QtRegionDock.qo.h.

Referenced by panel().

Definition at line 156 of file QtRegionDock.qo.h.

Referenced by markedRegionCount(), and markedRegionSet().

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

Definition at line 148 of file QtRegionDock.qo.h.

Referenced by regions().

Definition at line 150 of file QtRegionDock.qo.h.

maintain a count of selected regions, information which is used to determine the corner treatment when drawing regions...

Definition at line 154 of file QtRegionDock.qo.h.

Referenced by selectedRegionCount(), and selectedRegionSet().

Definition at line 155 of file QtRegionDock.qo.h.

Referenced by weaklySelectedRegionSet().


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