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

#include <QtRegionState.qo.h>

Inheritance diagram for casa::viewer::QtRegionState:
casa::viewer::QtPointState casa::viewer::QtPVLineState casa::viewer::QtSliceCutState

Public Slots

void stackChange (QWidget *)
 

Signals

void regionChange (viewer::Region *, std::string)
 
void refreshCanvas ()
 
void statisticsVisible (bool)
 
void collectStatistics ()
 
void updateHistogram ()
 
void positionVisible (bool)
 
void translateX (const QString &, const QString &, const QString &)
 
void translateY (const QString &, const QString &, const QString &)
 
void resizeX (const QString &, const QString &, const QString &)
 
void resizeY (const QString &, const QString &, const QString &)
 
void zRange (int z_min, int z_max)
 
void outputRegions (const QString &what, const QString &name, const QString &type, const QString &csys)
 
void loadRegions (const QString &path, const QString &type)
 

Public Member Functions

void init ()
 initializing the display depends upon having signals & slots connected which cannot happen until after the ctor of QtRegionState... More...
 
 QtRegionState (const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0)
 
 ~QtRegionState ()
 
bool statisticsIsVisible ()
 
Regionregion ()
 
void setRegion (Region *r)
 
void updateCoord ()
 
void updateStatistics ()
 
void updateStatistics (std::list< std::shared_ptr< RegionInfo > > *stats)
 
void updateFrameInformation (int count)
 
void reloadStatistics ()
 
void updateCenters (std::list< std::shared_ptr< RegionInfo > > *centers)
 
void setCenterBackground (QString background)
 
void clearStatistics ()
 
void addHistogram (QWidget *histogram)
 
void updateStackOrder (int firstImage)
 
int getStackIndex () const
 
std::string lineColor () const
 
std::string centerColor () const
 
int lineWidth () const
 
region::LineStyle lineStyle () const
 
int markerScale () const
 
void setMarkerScale (int v)
 
std::string textColor () const
 
std::string textFont () const
 
int textFontSize () const
 
int textFontStyle () const
 
std::string textValue () const
 
region::TextPosition textPosition () const
 
void textPositionDelta (int &x, int &y) const
 
void setTextValue (const std::string &l)
 
void setTextPosition (region::TextPosition)
 
void setTextDelta (const std::vector< int > &)
 
void setTextFont (const std::string &f)
 
void setTextFontSize (int s)
 
void setTextFontStyle (int s)
 
void setTextColor (const std::string &)
 
void setLineColor (const std::string &)
 
void setLineStyle (region::LineStyle)
 
void setLineWidth (unsigned int)
 
void setAnnotation (bool)
 
void disableAnnotation (bool)
 
int zMin () const
 
int zMax () const
 
int numFrames () const
 
bool isAnnotation () const
 
void reset (const QString &name, Region *r)
 reset the widget to its original state... More...
 
void getCoordinatesAndUnits (region::Coord &c, region::Units &xu, region::Units &yu, std::string &bounding_units) const
 
void setCoordinatesAndUnits (region::Coord c, region::Units x_units, region::Units y_units, const std::string &bounding_units)
 
void updatePosition (const QString &x, const QString &y, const QString &angle, const QString &bounding_width, const QString &bounding_height)
 
void noOutputNotify ()
 may be called after "outputRegions" signal to notify the user that no regions were selected for output... More...
 
void mark (bool set=true)
 functions added with the introduction of RegionToolManager and the unified selection and manipulation of the various region types... More...
 
bool marked () const
 
bool markCenter () const
 
bool skyComponent () const
 
bool mark_toggle ()
 
void nowVisible ()
 
QPushButton * getFitButton ()
 
void emitRefresh ()
 
std::string mode () const
 return the current information mode of the region state, e.g. More...
 
virtual QString HISTOGRAM_MODE () const
 
virtual QString STATISTICS_MODE () const
 
virtual QString FILE_MODE () const
 
virtual QString FIT_MODE () const
 
virtual QString PROPERTIES_MODE () const
 

Public Attributes

const std::string LINE_COLOR_CHANGE
 

Protected Types

typedef std::list
< QtRegionStats * > 
freestat_list
 

Protected Slots

void state_change (int)
 updates canvas with any line changes More...
 
void state_change_region_mark (int)
 
void color_state_change (int)
 
void state_change (bool)
 
void state_change (const QString &)
 
void states_change (int)
 
void states_val_change (int)
 
void coordsys_change (const QString &text)
 
void translate_x ()
 
void translate_y ()
 
void resize_x ()
 
void resize_y ()
 
void category_change (int)
 
void filetab_change (int)
 
void line_color_change (const QString &)
 keeps text color in sync with line color (if they were the same before) More...
 
QString default_extension (const QString &)
 
void update_default_file_extension (const QString &)
 
void update_save_type (const QString &)
 
void save_region (bool)
 
void update_load_type (const QString &)
 
void load_regions (bool)
 
void frame_min_change (int)
 
void frame_max_change (int)
 
void save_browser (bool)
 
void load_browser (bool)
 
void set_point_region_marker (int)
 

Protected Member Functions

std::string bounding_index_to_string (int index) const
 
void clearRegion ()
 

Protected Attributes

int selected_statistics
 keep track of which set of statistics where selected when refreshing all... More...
 
QString last_line_color
 
Regionregion_
 

Static Protected Attributes

static freestat_listfreestats
 
static freestat_listfreecenters
 

Private Member Functions

void initRegionState ()
 
void statisticsUpdate (QtRegionStats *regionStats, std::shared_ptr< casa::viewer::RegionInfo > regionInfo)
 

Private Attributes

unsigned int setting_combo_box
 
int pre_dd_change_statistics_count
 
HistogramTabhistogramTab
 

Friends

class Region
 

Detailed Description

Definition at line 46 of file QtRegionState.qo.h.

Member Typedef Documentation

Definition at line 240 of file QtRegionState.qo.h.

Constructor & Destructor Documentation

casa::viewer::QtRegionState::QtRegionState ( const QString &  name,
QtMouseToolNames::PointRegionSymbols  sym = QtMouseToolNames::SYM_UNKNOWN,
Region region = 0,
QWidget *  parent = 0 
)
casa::viewer::QtRegionState::~QtRegionState ( )

Member Function Documentation

void casa::viewer::QtRegionState::addHistogram ( QWidget *  histogram)
std::string casa::viewer::QtRegionState::bounding_index_to_string ( int  index) const
protected
void casa::viewer::QtRegionState::category_change ( int  )
protectedslot
std::string casa::viewer::QtRegionState::centerColor ( ) const
void casa::viewer::QtRegionState::clearRegion ( )
inlineprotected

Definition at line 249 of file QtRegionState.qo.h.

References region_.

void casa::viewer::QtRegionState::clearStatistics ( )
void casa::viewer::QtRegionState::collectStatistics ( )
signal
void casa::viewer::QtRegionState::color_state_change ( int  )
protectedslot
void casa::viewer::QtRegionState::coordsys_change ( const QString &  text)
protectedslot
QString casa::viewer::QtRegionState::default_extension ( const QString &  )
protectedslot
void casa::viewer::QtRegionState::disableAnnotation ( bool  )
void casa::viewer::QtRegionState::emitRefresh ( )
inline

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

References refreshCanvas().

virtual QString casa::viewer::QtRegionState::FILE_MODE ( ) const
inlinevirtual

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

void casa::viewer::QtRegionState::filetab_change ( int  )
protectedslot
virtual QString casa::viewer::QtRegionState::FIT_MODE ( ) const
inlinevirtual

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

void casa::viewer::QtRegionState::frame_max_change ( int  )
protectedslot
void casa::viewer::QtRegionState::frame_min_change ( int  )
protectedslot
void casa::viewer::QtRegionState::getCoordinatesAndUnits ( region::Coord c,
region::Units xu,
region::Units yu,
std::string &  bounding_units 
) const
QPushButton* casa::viewer::QtRegionState::getFitButton ( )
inline

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

int casa::viewer::QtRegionState::getStackIndex ( ) const
virtual QString casa::viewer::QtRegionState::HISTOGRAM_MODE ( ) const
inlinevirtual

Definition at line 165 of file QtRegionState.qo.h.

void casa::viewer::QtRegionState::init ( )

initializing the display depends upon having signals & slots connected which cannot happen until after the ctor of QtRegionState...

void casa::viewer::QtRegionState::initRegionState ( )
private
bool casa::viewer::QtRegionState::isAnnotation ( ) const
void casa::viewer::QtRegionState::line_color_change ( const QString &  )
protectedslot

keeps text color in sync with line color (if they were the same before)

std::string casa::viewer::QtRegionState::lineColor ( ) const
region::LineStyle casa::viewer::QtRegionState::lineStyle ( ) const
int casa::viewer::QtRegionState::lineWidth ( ) const
inline

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

Referenced by casa::viewer::Region::lineWidth().

void casa::viewer::QtRegionState::load_browser ( bool  )
protectedslot
void casa::viewer::QtRegionState::load_regions ( bool  )
protectedslot
void casa::viewer::QtRegionState::loadRegions ( const QString &  path,
const QString &  type 
)
signal
void casa::viewer::QtRegionState::mark ( bool  set = true)

functions added with the introduction of RegionToolManager and the unified selection and manipulation of the various region types...

bool casa::viewer::QtRegionState::mark_toggle ( )
bool casa::viewer::QtRegionState::markCenter ( ) const
inline

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

Referenced by casa::viewer::Region::markCenter().

bool casa::viewer::QtRegionState::marked ( ) const
inline

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

Referenced by casa::viewer::Region::marked().

int casa::viewer::QtRegionState::markerScale ( ) const
inline

Definition at line 87 of file QtRegionState.qo.h.

Referenced by casa::viewer::Region::markerScale().

std::string casa::viewer::QtRegionState::mode ( ) const

return the current information mode of the region state, e.g.

position, statistics, etc.

void casa::viewer::QtRegionState::noOutputNotify ( )

may be called after "outputRegions" signal to notify the user that no regions were selected for output...

void casa::viewer::QtRegionState::nowVisible ( )
int casa::viewer::QtRegionState::numFrames ( ) const
void casa::viewer::QtRegionState::outputRegions ( const QString &  what,
const QString &  name,
const QString &  type,
const QString &  csys 
)
signal
void casa::viewer::QtRegionState::positionVisible ( bool  )
signal
virtual QString casa::viewer::QtRegionState::PROPERTIES_MODE ( ) const
inlinevirtual

Definition at line 177 of file QtRegionState.qo.h.

void casa::viewer::QtRegionState::refreshCanvas ( )
signal

Referenced by emitRefresh().

Region* casa::viewer::QtRegionState::region ( )
inline

Definition at line 63 of file QtRegionState.qo.h.

References region_.

void casa::viewer::QtRegionState::regionChange ( viewer::Region ,
std::string   
)
signal
void casa::viewer::QtRegionState::reloadStatistics ( )
void casa::viewer::QtRegionState::reset ( const QString &  name,
Region r 
)

reset the widget to its original state...

void casa::viewer::QtRegionState::resize_x ( )
protectedslot
void casa::viewer::QtRegionState::resize_y ( )
protectedslot
void casa::viewer::QtRegionState::resizeX ( const QString &  ,
const QString &  ,
const QString &   
)
signal
void casa::viewer::QtRegionState::resizeY ( const QString &  ,
const QString &  ,
const QString &   
)
signal
void casa::viewer::QtRegionState::save_browser ( bool  )
protectedslot
void casa::viewer::QtRegionState::save_region ( bool  )
protectedslot
void casa::viewer::QtRegionState::set_point_region_marker ( int  )
protectedslot
void casa::viewer::QtRegionState::setAnnotation ( bool  )
void casa::viewer::QtRegionState::setCenterBackground ( QString  background)
void casa::viewer::QtRegionState::setCoordinatesAndUnits ( region::Coord  c,
region::Units  x_units,
region::Units  y_units,
const std::string &  bounding_units 
)
void casa::viewer::QtRegionState::setLineColor ( const std::string &  )
void casa::viewer::QtRegionState::setLineStyle ( region::LineStyle  )
void casa::viewer::QtRegionState::setLineWidth ( unsigned  int)
void casa::viewer::QtRegionState::setMarkerScale ( int  v)
void casa::viewer::QtRegionState::setRegion ( Region r)
void casa::viewer::QtRegionState::setTextColor ( const std::string &  )
void casa::viewer::QtRegionState::setTextDelta ( const std::vector< int > &  )
void casa::viewer::QtRegionState::setTextFont ( const std::string &  f)
void casa::viewer::QtRegionState::setTextFontSize ( int  s)
void casa::viewer::QtRegionState::setTextFontStyle ( int  s)
void casa::viewer::QtRegionState::setTextPosition ( region::TextPosition  )
void casa::viewer::QtRegionState::setTextValue ( const std::string &  l)
bool casa::viewer::QtRegionState::skyComponent ( ) const
inline

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

Referenced by casa::viewer::Region::skyComponent().

void casa::viewer::QtRegionState::stackChange ( QWidget *  )
slot
void casa::viewer::QtRegionState::state_change ( int  )
protectedslot

updates canvas with any line changes

void casa::viewer::QtRegionState::state_change ( bool  )
protectedslot
void casa::viewer::QtRegionState::state_change ( const QString &  )
protectedslot
void casa::viewer::QtRegionState::state_change_region_mark ( int  )
protectedslot
void casa::viewer::QtRegionState::states_change ( int  )
protectedslot
void casa::viewer::QtRegionState::states_val_change ( int  )
protectedslot
virtual QString casa::viewer::QtRegionState::STATISTICS_MODE ( ) const
inlinevirtual

Reimplemented in casa::viewer::QtSliceCutState, and casa::viewer::QtPVLineState.

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

bool casa::viewer::QtRegionState::statisticsIsVisible ( )
inline

Definition at line 59 of file QtRegionState.qo.h.

void casa::viewer::QtRegionState::statisticsUpdate ( QtRegionStats regionStats,
std::shared_ptr< casa::viewer::RegionInfo regionInfo 
)
private
void casa::viewer::QtRegionState::statisticsVisible ( bool  )
signal
std::string casa::viewer::QtRegionState::textColor ( ) const
std::string casa::viewer::QtRegionState::textFont ( ) const
int casa::viewer::QtRegionState::textFontSize ( ) const
inline

Definition at line 94 of file QtRegionState.qo.h.

Referenced by casa::viewer::Region::textFontSize().

int casa::viewer::QtRegionState::textFontStyle ( ) const
region::TextPosition casa::viewer::QtRegionState::textPosition ( ) const
void casa::viewer::QtRegionState::textPositionDelta ( int &  x,
int &  y 
) const
std::string casa::viewer::QtRegionState::textValue ( ) const
void casa::viewer::QtRegionState::translate_x ( )
protectedslot
void casa::viewer::QtRegionState::translate_y ( )
protectedslot
void casa::viewer::QtRegionState::translateX ( const QString &  ,
const QString &  ,
const QString &   
)
signal
void casa::viewer::QtRegionState::translateY ( const QString &  ,
const QString &  ,
const QString &   
)
signal
void casa::viewer::QtRegionState::update_default_file_extension ( const QString &  )
protectedslot
void casa::viewer::QtRegionState::update_load_type ( const QString &  )
protectedslot
void casa::viewer::QtRegionState::update_save_type ( const QString &  )
protectedslot
void casa::viewer::QtRegionState::updateCenters ( std::list< std::shared_ptr< RegionInfo > > *  centers)
void casa::viewer::QtRegionState::updateCoord ( )
void casa::viewer::QtRegionState::updateFrameInformation ( int  count)
void casa::viewer::QtRegionState::updateHistogram ( )
signal
void casa::viewer::QtRegionState::updatePosition ( const QString &  x,
const QString &  y,
const QString &  angle,
const QString &  bounding_width,
const QString &  bounding_height 
)
void casa::viewer::QtRegionState::updateStackOrder ( int  firstImage)
void casa::viewer::QtRegionState::updateStatistics ( )
void casa::viewer::QtRegionState::updateStatistics ( std::list< std::shared_ptr< RegionInfo > > *  stats)
int casa::viewer::QtRegionState::zMax ( ) const
int casa::viewer::QtRegionState::zMin ( ) const
void casa::viewer::QtRegionState::zRange ( int  z_min,
int  z_max 
)
signal

Friends And Related Function Documentation

friend class Region
friend

Definition at line 248 of file QtRegionState.qo.h.

Member Data Documentation

freestat_list* casa::viewer::QtRegionState::freecenters
staticprotected

Definition at line 242 of file QtRegionState.qo.h.

freestat_list* casa::viewer::QtRegionState::freestats
staticprotected

Definition at line 241 of file QtRegionState.qo.h.

HistogramTab* casa::viewer::QtRegionState::histogramTab
private

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

QString casa::viewer::QtRegionState::last_line_color
protected

Definition at line 243 of file QtRegionState.qo.h.

const std::string casa::viewer::QtRegionState::LINE_COLOR_CHANGE

Definition at line 163 of file QtRegionState.qo.h.

int casa::viewer::QtRegionState::pre_dd_change_statistics_count
private

Definition at line 257 of file QtRegionState.qo.h.

Region* casa::viewer::QtRegionState::region_
protected

Definition at line 244 of file QtRegionState.qo.h.

Referenced by clearRegion(), and region().

int casa::viewer::QtRegionState::selected_statistics
protected

keep track of which set of statistics where selected when refreshing all...

Definition at line 239 of file QtRegionState.qo.h.

unsigned int casa::viewer::QtRegionState::setting_combo_box
private

Definition at line 256 of file QtRegionState.qo.h.


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