#include <QtRegionState.qo.h>
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. | |
QtRegionState (const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0) | |
~QtRegionState () | |
bool | statisticsIsVisible () |
Region * | region () |
void | setRegion (Region *r) |
void | updateCoord () |
void | updateStatistics () |
void | updateStatistics (std::list< SHARED_PTR< RegionInfo > > *stats) |
void | updateFrameInformation (int count) |
void | reloadStatistics () |
void | updateCenters (std::list< 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. | |
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. | |
void | mark (bool set=true) |
functions added with the introduction of RegionToolManager and the unified selection and manipulation of the various region types. | |
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. | |
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 | |
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) | |
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. | |
QString | last_line_color |
Region * | region_ |
Static Protected Attributes | |
static freestat_list * | freestats |
static freestat_list * | freecenters |
Private Member Functions | |
void | initRegionState () |
void | statisticsUpdate (QtRegionStats *regionStats, SHARED_PTR< casa::viewer::RegionInfo > regionInfo) |
Private Attributes | |
unsigned int | setting_combo_box |
int | pre_dd_change_statistics_count |
HistogramTab * | histogramTab |
Friends | |
class | Region |
Definition at line 46 of file QtRegionState.qo.h.
typedef std::list<QtRegionStats*> casa::viewer::QtRegionState::freestat_list [protected] |
Definition at line 240 of file QtRegionState.qo.h.
casa::viewer::QtRegionState::QtRegionState | ( | const QString & | name, | |
QtMouseToolNames::PointRegionSymbols | sym = QtMouseToolNames::SYM_UNKNOWN , |
|||
Region * | region = 0 , |
|||
QWidget * | parent = 0 | |||
) |
casa::viewer::QtRegionState::~QtRegionState | ( | ) |
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 | ) | [protected, slot] |
std::string casa::viewer::QtRegionState::centerColor | ( | ) | const |
Referenced by casa::viewer::Region::centerColor().
void casa::viewer::QtRegionState::clearRegion | ( | ) | [inline, protected] |
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 | ) | [protected, slot] |
void casa::viewer::QtRegionState::coordsys_change | ( | const QString & | text | ) | [protected, slot] |
QString casa::viewer::QtRegionState::default_extension | ( | const QString & | ) | [protected, slot] |
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 [inline, virtual] |
Definition at line 171 of file QtRegionState.qo.h.
void casa::viewer::QtRegionState::filetab_change | ( | int | ) | [protected, slot] |
virtual QString casa::viewer::QtRegionState::FIT_MODE | ( | ) | const [inline, virtual] |
Definition at line 174 of file QtRegionState.qo.h.
void casa::viewer::QtRegionState::frame_max_change | ( | int | ) | [protected, slot] |
void casa::viewer::QtRegionState::frame_min_change | ( | int | ) | [protected, slot] |
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 [inline, virtual] |
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 & | ) | [protected, slot] |
keeps text color in sync with line color (if they were the same before)
std::string casa::viewer::QtRegionState::lineColor | ( | ) | const |
Referenced by casa::viewer::Region::lineColor().
region::LineStyle casa::viewer::QtRegionState::lineStyle | ( | ) | const |
Referenced by casa::viewer::Region::lineStyle().
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 | ) | [protected, slot] |
void casa::viewer::QtRegionState::load_regions | ( | bool | ) | [protected, slot] |
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 [inline, virtual] |
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 | ( | ) | [protected, slot] |
void casa::viewer::QtRegionState::resize_y | ( | ) | [protected, slot] |
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 | ) | [protected, slot] |
void casa::viewer::QtRegionState::save_region | ( | bool | ) | [protected, slot] |
void casa::viewer::QtRegionState::set_point_region_marker | ( | int | ) | [protected, slot] |
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 | ) |
Referenced by casa::viewer::Region::setMarkerScale().
void casa::viewer::QtRegionState::setRegion | ( | Region * | r | ) |
Referenced by casa::viewer::Point::Point().
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 | ( | const QString & | ) | [protected, slot] |
void casa::viewer::QtRegionState::state_change | ( | bool | ) | [protected, slot] |
void casa::viewer::QtRegionState::state_change | ( | int | ) | [protected, slot] |
updates canvas with any line changes
void casa::viewer::QtRegionState::state_change_region_mark | ( | int | ) | [protected, slot] |
void casa::viewer::QtRegionState::states_change | ( | int | ) | [protected, slot] |
void casa::viewer::QtRegionState::states_val_change | ( | int | ) | [protected, slot] |
virtual QString casa::viewer::QtRegionState::STATISTICS_MODE | ( | ) | const [inline, virtual] |
Reimplemented in casa::viewer::QtPVLineState, and casa::viewer::QtSliceCutState.
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, | |
SHARED_PTR< casa::viewer::RegionInfo > | regionInfo | |||
) | [private] |
void casa::viewer::QtRegionState::statisticsVisible | ( | bool | ) | [signal] |
std::string casa::viewer::QtRegionState::textColor | ( | ) | const |
Referenced by casa::viewer::Region::textColor().
std::string casa::viewer::QtRegionState::textFont | ( | ) | const |
Referenced by casa::viewer::Region::textFont().
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 |
Referenced by casa::viewer::Region::textFontStyle().
region::TextPosition casa::viewer::QtRegionState::textPosition | ( | ) | const |
Referenced by casa::viewer::Region::textPosition().
void casa::viewer::QtRegionState::textPositionDelta | ( | int & | x, | |
int & | y | |||
) | const |
Referenced by casa::viewer::Region::textPositionDelta().
std::string casa::viewer::QtRegionState::textValue | ( | ) | const |
Referenced by casa::viewer::Region::textValue().
void casa::viewer::QtRegionState::translate_x | ( | ) | [protected, slot] |
void casa::viewer::QtRegionState::translate_y | ( | ) | [protected, slot] |
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 & | ) | [protected, slot] |
void casa::viewer::QtRegionState::update_load_type | ( | const QString & | ) | [protected, slot] |
void casa::viewer::QtRegionState::update_save_type | ( | const QString & | ) | [protected, slot] |
void casa::viewer::QtRegionState::updateCenters | ( | std::list< 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 | ( | std::list< SHARED_PTR< RegionInfo > > * | stats | ) |
void casa::viewer::QtRegionState::updateStatistics | ( | ) |
int casa::viewer::QtRegionState::zMax | ( | ) | const |
int casa::viewer::QtRegionState::zMin | ( | ) | const |
void casa::viewer::QtRegionState::zRange | ( | int | z_min, | |
int | z_max | |||
) | [signal] |
friend class Region [friend] |
Definition at line 248 of file QtRegionState.qo.h.
freestat_list* casa::viewer::QtRegionState::freecenters [static, protected] |
Definition at line 242 of file QtRegionState.qo.h.
freestat_list* casa::viewer::QtRegionState::freestats [static, protected] |
Definition at line 241 of file QtRegionState.qo.h.
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.
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.