casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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
casa::viewer::QtRegionState Class Reference

#include <QtRegionState.qo.h>

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

List of all members.

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 ()
Regionregion ()
void setRegion (Region *r)
void updateCoord ()
void updateStatistics ()
void updateStatistics (std::list< std::tr1::shared_ptr< RegionInfo > > *stats)
void reloadStatistics ()
void updateCenters (std::list< std::tr1::shared_ptr< RegionInfo > > *centers)
void setCenterBackground (QString background)
void clearStatistics ()
void addHistogram (QWidget *histogram)
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

Protected Attributes

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

Static Protected Attributes

static freestat_listfreestats
static freestat_listfreecenters

Private Member Functions

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

Private Attributes

unsigned int setting_combo_box
int pre_dd_change_statistics_count

Detailed Description

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


Member Typedef Documentation

Definition at line 203 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 
)

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  ) [protected, slot]
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]

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

References refreshCanvas().

virtual QString casa::viewer::QtRegionState::FILE_MODE ( ) const [inline, virtual]

Definition at line 140 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 141 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 130 of file QtRegionState.qo.h.

virtual QString casa::viewer::QtRegionState::HISTOGRAM_MODE ( ) const [inline, virtual]

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

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

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)

Definition at line 71 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::markCenter ( ) const [inline]

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

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

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

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

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

Definition at line 74 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.

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

void casa::viewer::QtRegionState::outputRegions ( const QString &  what,
const QString &  name,
const QString &  type,
const QString &  csys 
) [signal]
virtual QString casa::viewer::QtRegionState::PROPERTIES_MODE ( ) const [inline, virtual]

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

Referenced by emitRefresh().

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

References region_.

void casa::viewer::QtRegionState::regionChange ( viewer::Region ,
std::string   
) [signal]
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::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::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::setTextValue ( const std::string &  l)

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

void casa::viewer::QtRegionState::stackChange ( QWidget *  ) [slot]
void casa::viewer::QtRegionState::state_change ( int  ) [protected, slot]

updates canvas with any line changes

void casa::viewer::QtRegionState::state_change ( bool  ) [protected, slot]
void casa::viewer::QtRegionState::state_change ( const QString &  ) [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::QtSliceCutState, and casa::viewer::QtPVLineState.

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

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

void casa::viewer::QtRegionState::statisticsUpdate ( QtRegionStats regionStats,
std::tr1::shared_ptr< casa::viewer::RegionInfo regionInfo 
) [private]

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

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

void casa::viewer::QtRegionState::textPositionDelta ( int &  x,
int &  y 
) const
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< std::tr1::shared_ptr< RegionInfo > > *  centers)
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::updateStatistics ( std::list< std::tr1::shared_ptr< RegionInfo > > *  stats)
void casa::viewer::QtRegionState::zRange ( int  z_min,
int  z_max 
) [signal]

Member Data Documentation

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

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

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

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

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

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

Referenced by region().

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

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

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


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