29 #ifndef REGION_QTREGIONSTATE_H_
30 #define REGION_QTREGIONSTATE_H_
34 #include <display/region/QtRegionState.ui.h>
60 return categories->tabText(categories->currentIndex( )) ==
"stats";
73 void updateCenters( std::list<std::shared_ptr<RegionInfo> > *centers );
83 return line_width->value( );
88 return marker_scale->value( );
95 return font_size->value( );
129 void updatePosition(
const QString &x,
const QString &y,
const QString &angle,
130 const QString &bounding_width,
const QString &bounding_height );
140 void mark(
bool set=
true );
142 return region_mark->isChecked( );
145 return (markcenter_chk->checkState()==Qt::Checked);
148 return (skycomp_chk->checkState()==Qt::Checked);
162 std::string
mode( )
const;
188 void translateX(
const QString &,
const QString &,
const QString & );
189 void translateY(
const QString &,
const QString &,
const QString & );
190 void resizeX(
const QString &,
const QString &,
const QString & );
191 void resizeY(
const QString &,
const QString &,
const QString & );
193 void zRange(
int z_min,
int z_max );
195 void outputRegions(
const QString &what,
const QString &name,
const QString &
type,
const QString &csys );
281 return "Spatial Profile";
void updateStackOrder(int firstImage)
void noOutputNotify()
may be called after "outputRegions" signal to notify the user that no regions were selected for outpu...
virtual QString STATISTICS_MODE() const
virtual QString FIT_MODE() const
void addHistogram(QWidget *histogram)
std::string centerColor() const
QString STATISTICS_MODE() const
void setMarkerScale(int v)
region::LineStyle lineStyle() const
int selected_statistics
keep track of which set of statistics where selected when refreshing all...
void translateX(const QString &, const QString &, const QString &)
int textFontStyle() const
void stackChange(QWidget *)
void color_state_change(int)
bool statisticsIsVisible()
virtual Type type()
Return the type enum.
void setTextFont(const std::string &f)
std::string textFont() const
void disableAnnotation(bool)
void update_default_file_extension(const QString &)
void setLineStyle(region::LineStyle)
const std::string LINE_COLOR_CHANGE
void setTextColor(const std::string &)
void loadRegions(const QString &path, const QString &type)
QtPVLineState(const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0)
void regionChange(viewer::Region *, std::string)
void setCoordinatesAndUnits(region::Coord c, region::Units x_units, region::Units y_units, const std::string &bounding_units)
void statisticsUpdate(QtRegionStats *regionStats, std::shared_ptr< casa::viewer::RegionInfo > regionInfo)
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
QtRegionState(const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0)
void init()
initializing the display depends upon having signals & slots connected which cannot happen until afte...
virtual QString FILE_MODE() const
void setLineColor(const std::string &)
void positionVisible(bool)
bool skyComponent() const
void outputRegions(const QString &what, const QString &name, const QString &type, const QString &csys)
void state_change(int)
updates canvas with any line changes
void mark(bool set=true)
functions added with the introduction of RegionToolManager and the unified selection and manipulation...
void getCoordinatesAndUnits(region::Coord &c, region::Units &xu, region::Units &yu, std::string &bounding_units) const
void updateCenters(std::list< std::shared_ptr< RegionInfo > > *centers)
void setTextFontStyle(int s)
void statisticsVisible(bool)
QString STATISTICS_MODE() const
void frame_min_change(int)
static freestat_list * freestats
unsigned int setting_combo_box
std::string textColor() const
void translateY(const QString &, const QString &, const QString &)
void setTextDelta(const std::vector< int > &)
void updatePosition(const QString &x, const QString &y, const QString &angle, const QString &bounding_width, const QString &bounding_height)
All regions are specified in "linear coordinates", not "pixel coordinates".
std::string lineColor() const
virtual QString HISTOGRAM_MODE() const
void resizeY(const QString &, const QString &, const QString &)
void setCenterBackground(QString background)
std::list< QtRegionStats * > freestat_list
void states_val_change(int)
QPushButton * getFitButton()
std::string path(const std::string &name)
std::string textValue() const
void coordsys_change(const QString &text)
region::TextPosition textPosition() const
void textPositionDelta(int &x, int &y) const
void reset(const QString &name, Region *r)
reset the widget to its original state...
void category_change(int)
void setTextFontSize(int s)
bool isAnnotation() const
std::string bounding_index_to_string(int index) const
void resizeX(const QString &, const QString &, const QString &)
QtPointState(const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0)
virtual QString PROPERTIES_MODE() const
static freestat_list * freecenters
LineStyle
LSDoubleDashed is only used to preserve state (it is a Display::LineStyle option) ...
std::string mode() const
return the current information mode of the region state, e.g.
int pre_dd_change_statistics_count
void setRegion(Region *r)
Manages a stack widget that displays histograms for a single region but multiple images.
QString default_extension(const QString &)
const Double c
Fundamental physical constants (SI units):
void setTextPosition(region::TextPosition)
void line_color_change(const QString &)
keeps text color in sync with line color (if they were the same before)
void zRange(int z_min, int z_max)
void updateFrameInformation(int count)
int getStackIndex() const
QtSliceCutState(const QString &name, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN, Region *region=0, QWidget *parent=0)
void setLineWidth(unsigned int)
void setTextValue(const std::string &l)
void state_change_region_mark(int)
HistogramTab * histogramTab
void update_load_type(const QString &)
void update_save_type(const QString &)
void set_point_region_marker(int)
void frame_max_change(int)