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

#include <QtRegionDock.qo.h>

Inheritance diagram for casa::viewer::QtRegionDock:
casa::InActiveDock

Public Slots

void updateRegionState (QtDisplayData *)
 
void delete_all_regions (bool)
 

Signals

void deleteRegion (QtRegionState *)
 triggers deletion elsewhere of Region containing this QtRegionState which then causes the removal of this QtRegionState... More...
 
void regionChange (viewer::Region *, std::string)
 notice sent after QtRegionState is removed from QStackWidget, and* after Region has already been deleted... More...
 
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 *)
 
void showHistogramTool ()
 

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 updateFrameCount (int count)
 
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... More...
 
size_t selectedRegionCount ()
 retrieve the selected region state... More...
 
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! More...
 
void updateRegionStats ()
 
void updateStackOrder (int topIndex)
 Allows the images displayed in the region dock to remain in sync with the images selected in the animator. More...
 
void emitCreate (Region *)
 
int numFrames () const
 
void deleteRegions (const region::region_list_type &)
 
void revokeRegion (Region *r)
 
- Public Member Functions inherited from casa::InActiveDock
 InActiveDock (QWidget *parent=NULL)
 
virtual ~InActiveDock ()
 

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 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... More...
 
region::region_list_type weakly_selected_region_set_
 
region::region_list_type marked_region_set_
 

Detailed Description

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

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

Member Function Documentation

void casa::viewer::QtRegionDock::addRegion ( Region ,
QtRegionState ,
int  index = -1 
)
void casa::viewer::QtRegionDock::addWeaklySelectedRegion ( Region )
void casa::viewer::QtRegionDock::change_stack ( int  )
privateslot
void casa::viewer::QtRegionDock::clearWeaklySelectedRegionSet ( )
void casa::viewer::QtRegionDock::closeEvent ( QCloseEvent *  event)
protected
int& casa::viewer::QtRegionDock::colorIndex ( )
inline

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

References current_color_index.

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

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

References current_coord_state.

void casa::viewer::QtRegionDock::delete_all_regions ( bool  )
slot
void casa::viewer::QtRegionDock::delete_current_region ( bool  )
privateslot
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  )
privateslot
void casa::viewer::QtRegionDock::emitCreate ( Region )
void casa::viewer::QtRegionDock::enterEvent ( QEvent *  )
protected
void casa::viewer::QtRegionDock::handle_visibility ( bool  )
privateslot
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 82 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 98 of file QtRegionDock.qo.h.

References marked_region_set_.

const region::region_list_type& casa::viewer::QtRegionDock::markedRegionSet ( )
inline

Definition at line 101 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 
)
privateslot
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 65 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 114 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::removeRegion ( QtRegionState )
void casa::viewer::QtRegionDock::removeWeaklySelectedRegion ( Region )
void casa::viewer::QtRegionDock::revokeRegion ( Region r)
QString& casa::viewer::QtRegionDock::saveDir ( )
inline

Definition at line 79 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
void casa::viewer::QtRegionDock::selectedCountUpdateNeeded ( )

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 92 of file QtRegionDock.qo.h.

References selected_region_set_.

const region::region_list_type& casa::viewer::QtRegionDock::selectedRegionSet ( )
inline

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

References selected_region_set_.

void casa::viewer::QtRegionDock::selectRegion ( QtRegionState ,
bool  scroll = true 
)
void casa::viewer::QtRegionDock::showHistogramTool ( )
signal
void casa::viewer::QtRegionDock::stack_changed ( int  )
privateslot
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 73 of file QtRegionDock.qo.h.

References current_tab_state.

void casa::viewer::QtRegionDock::update_region_statistics ( )
private
void casa::viewer::QtRegionDock::updateFrameCount ( int  count)
void casa::viewer::QtRegionDock::updateRegionState ( QtDisplayData )
slot
void casa::viewer::QtRegionDock::updateRegionStats ( )
void casa::viewer::QtRegionDock::updateStackOrder ( int  topIndex)

Allows the images displayed in the region dock to remain in sync with the images selected in the animator.

const region::region_list_type& casa::viewer::QtRegionDock::weaklySelectedRegionSet ( )
inline

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

References weakly_selected_region_set_.

Member Data Documentation

int casa::viewer::QtRegionDock::current_color_index
private

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

Referenced by colorIndex().

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

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

Referenced by coordState().

QtDisplayData* casa::viewer::QtRegionDock::current_dd
private

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

QString casa::viewer::QtRegionDock::current_load_dir
private

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

Referenced by loadDir().

QString casa::viewer::QtRegionDock::current_save_dir
private

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

Referenced by saveDir().

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

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

Referenced by tabState().

bool casa::viewer::QtRegionDock::dismissed
private

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

QtDisplayPanelGui* casa::viewer::QtRegionDock::dpg
private

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

Referenced by panel().

region::region_list_type casa::viewer::QtRegionDock::marked_region_set_
private

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

Referenced by markedRegionCount(), and markedRegionSet().

bool casa::viewer::QtRegionDock::mouse_in_dock
private

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

region_list_t casa::viewer::QtRegionDock::region_list
private

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

Referenced by regions().

region_map_t casa::viewer::QtRegionDock::region_map
private

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

region::region_list_type casa::viewer::QtRegionDock::selected_region_set_
private

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

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

Referenced by selectedRegionCount(), and selectedRegionSet().

region::region_list_type casa::viewer::QtRegionDock::weakly_selected_region_set_
private

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

Referenced by weaklySelectedRegionSet().


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