casa
$Rev:20696$
|
#include <QtRegionDock.qo.h>
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") |
QtDisplayPanelGui * | panel () |
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_type & | selectedRegionSet () |
size_t | markedRegionCount () |
const region::region_list_type & | markedRegionSet () |
const region::region_list_type & | weaklySelectedRegionSet () |
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 | |
QtDisplayPanelGui * | dpg |
QtDisplayData * | current_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_ |
Definition at line 50 of file QtRegionDock.qo.h.
typedef std::list<Region*> casa::viewer::QtRegionDock::region_list_t [private] |
Definition at line 147 of file QtRegionDock.qo.h.
typedef std::map<QtRegionState*,Region*> casa::viewer::QtRegionDock::region_map_t [private] |
Definition at line 149 of file QtRegionDock.qo.h.
casa::viewer::QtRegionDock::QtRegionDock | ( | QtDisplayPanelGui * | , |
QWidget * | parent = 0 |
||
) |
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] |
int& casa::viewer::QtRegionDock::colorIndex | ( | ) | [inline] |
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] |
void casa::viewer::QtRegionDock::deleteAllRegions | ( | ) | [signal] |
void casa::viewer::QtRegionDock::deleteRegion | ( | QtRegionState * | ) | [signal] |
triggers deletion elsewhere of Region containing this QtRegionState which then causes the removal of this QtRegionState...
void casa::viewer::QtRegionDock::deleteRegions | ( | const region::region_list_type & | ) |
void casa::viewer::QtRegionDock::dismiss | ( | ) |
void casa::viewer::QtRegionDock::emit_region_stack_change | ( | int | ) | [private, slot] |
void casa::viewer::QtRegionDock::emitCreate | ( | Region * | ) |
void casa::viewer::QtRegionDock::enterEvent | ( | QEvent * | ) | [protected] |
void casa::viewer::QtRegionDock::handle_visibility | ( | bool | ) | [private, slot] |
int casa::viewer::QtRegionDock::indexOf | ( | QtRegionState * | ) | const |
bool casa::viewer::QtRegionDock::isWeaklySelectedRegion | ( | const Region * | ) | const |
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] |
size_t casa::viewer::QtRegionDock::markedRegionCount | ( | ) | [inline] |
Definition at line 81 of file QtRegionDock.qo.h.
References marked_region_set_.
const region::region_list_type& casa::viewer::QtRegionDock::markedRegionSet | ( | ) | [inline] |
Definition at line 82 of file QtRegionDock.qo.h.
References marked_region_set_.
int casa::viewer::QtRegionDock::numFrames | ( | ) | const |
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!
QtDisplayPanelGui* casa::viewer::QtRegionDock::panel | ( | ) | [inline] |
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] |
void casa::viewer::QtRegionDock::revokeRegion | ( | Region * | r | ) |
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...
size_t casa::viewer::QtRegionDock::selectedRegionCount | ( | ) | [inline] |
retrieve the selected region state...
Definition at line 79 of file QtRegionDock.qo.h.
References selected_region_set_.
const region::region_list_type& casa::viewer::QtRegionDock::selectedRegionSet | ( | ) | [inline] |
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.
void casa::viewer::QtRegionDock::update_region_statistics | ( | ) | [private] |
void casa::viewer::QtRegionDock::updateRegionState | ( | QtDisplayData * | ) | [slot] |
const region::region_list_type& casa::viewer::QtRegionDock::weaklySelectedRegionSet | ( | ) | [inline] |
Definition at line 83 of file QtRegionDock.qo.h.
References weakly_selected_region_set_.
int casa::viewer::QtRegionDock::current_color_index [private] |
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.
QString casa::viewer::QtRegionDock::current_load_dir [private] |
Definition at line 143 of file QtRegionDock.qo.h.
Referenced by loadDir().
QString casa::viewer::QtRegionDock::current_save_dir [private] |
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().
bool casa::viewer::QtRegionDock::dismissed [private] |
Definition at line 144 of file QtRegionDock.qo.h.
QtDisplayPanelGui* casa::viewer::QtRegionDock::dpg [private] |
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().
bool casa::viewer::QtRegionDock::mouse_in_dock [private] |
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().