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

All regions are specified in "linear coordinates", not "pixel coordinates". More...

#include <Region.qo.h>

Inheritance diagram for casa::viewer::Region:
casa::viewer::dtorNotifier casa::viewer::Polygon casa::viewer::Polyline casa::viewer::PVLine casa::viewer::Rectangle casa::viewer::Ellipse casa::viewer::Point

Signals

void selectionChanged (viewer::Region *, bool)
 
void regionCreated (int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
 
void regionUpdate (int, viewer::region::RegionChanges, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y)
 
void regionChange (viewer::Region *, std::string)
 
void regionUpdateResponse (int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
 generated by emitUpdate()... More...
 
void showHistogramTool ()
 

Public Member Functions

const std::string name () const
 user specified name More...
 
std::string lineColor () const
 
std::string centerColor () const
 
int lineWidth () const
 
region::LineStyle lineStyle () const
 
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
 
virtual void setLabel (const std::string &l)
 
virtual void setLabelPosition (region::TextPosition)
 
virtual void setLabelDelta (const std::vector< int > &)
 
virtual void setFont (const std::string &font="", int font_size=-1, int font_style=0, const std::string &font_color="")
 
virtual void setLine (const std::string &line_color="", region::LineStyle line_style=region::SolidLine, unsigned int line_width=1)
 
virtual void setAnnotation (bool)
 
void getCoordinatesAndUnits (region::Coord &c, region::Units &x_units, region::Units &y_units, std::string &width_height_units) const
 
void getPositionString (std::string &x, std::string &y, std::string &angle, double &bounding_width, double &bounding_height, region::Coord coord=region::DefaultCoord, region::Units x_units=region::DefaultUnits, region::Units y_units=region::DefaultUnits, const std::string &bounding_units="rad") const
 
bool translateX (const std::string &, const std::string &, const std::string &)
 
bool translateY (const std::string &, const std::string &, const std::string &)
 
bool resizeX (const std::string &, const std::string &, const std::string &)
 
bool resizeY (const std::string &, const std::string &, const std::string &)
 
int numFrames () const
 
void zRange (int &x, int &y) const
 
int zIndex () const
 
bool regionVisible () const
 
bool worldBoundingRectangle (double &, double &, const std::string &) const
 
virtual ~Region ()
 
 Region ()
 
 Region (const std::string &name, WorldCanvas *wc, QtRegionDock *, bool hold_signals_=false, QtRegionState *supplied_state=0, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN)
 
virtual bool degenerate () const
 is this region degenerate? More...
 
void setDrawingEnv ()
 
void resetDrawingEnv ()
 
void setTextEnv ()
 
void resetTextEnv ()
 
void pushDrawingEnv (region::LineStyle ls, int thickness=-1)
 
void popDrawingEnv ()
 
void setDrawCenter (bool draw_center)
 
bool getDrawCenter ()
 
void refresh ()
 duplicate of MultiWCTool::refresh() More...
 
virtual region::PointInfo checkPoint (double x, double y) const =0
 
void invalidateCenterInfo ()
 indicates that the center info is no longer valid More...
 
bool selected () const
 
virtual bool weaklySelected () const
 is this region weakly or temporarily selected? More...
 
virtual void weaklySelect (bool scroll_dock=true)
 
virtual void weaklyUnselect ()
 weaklyUnselectLimited() plus extra processing... More...
 
virtual void weaklyUnselectLimited ()
 just unmark this region (called from RegionToolManager); do not do the rest of the reorganization that weaklyUnselect() does... More...
 
virtual void selectedInCanvas ()
 indicates that the user has selected this rectangle... More...
 
virtual bool valid_translation (double dx, double dy, double width_delta, double height_delta)=0
 
virtual void mark (bool set=true)
 functions added with the introduction of RegionToolManager and the unified selection and manipulation of the various region types... More...
 
virtual bool marked () const
 
virtual bool mark_toggle ()
 returns the new state... More...
 
size_t selected_region_count ()
 
size_t marked_region_count ()
 
void clearMouseInRegion ()
 
virtual void status (const std::string &msg, const std::string &type="info")
 update status information... More...
 
virtual bool markCenter () const
 
virtual bool skyComponent () const
 
virtual void output (ds9writer &out) const =0
 
void holdSignals ()
 postpone signal processing (important for signals generated during construction)... More...
 
virtual void releaseSignals ()
 
virtual std::list
< std::shared_ptr< RegionInfo > > * 
statistics ()
 
int getId () const
 Histogram functionality. More...
 
casacore::ImageRegiongetImageRegion (DisplayData *dd) const
 
virtual region::RegionTypes type () const =0
 -----------------—==================== from old QtRegion ====================-----------------— More...
 
virtual void pixelCenter (double &, double &) const =0
 
QtRegionStatestate ()
 DISPLAY_PURE_VIRTUAL(Region::pixelCenter,);. More...
 
int markerScale () const
 how much to scale the symbol used to mark point regions... More...
 
void setMarkerScale (int v)
 
void updateStateInfo (bool region_modified, region::RegionChanges)
 indicates that region movement requires the update of state information... More...
 
void refresh_state_gui ()
 
void clearStatistics ()
 blank out the statistics for this region More...
 
void statisticsUpdateNeeded ()
 
int & colorIndex ()
 used to synchronize the default color for all of the RegionDock's RegionState objects... More...
 
std::pair< int, int > & tabState ()
 used to synchronize all of the RegionDock's RegionState tab configuration... More...
 
std::map< std::string, int > & coordState ()
 used to synchronize all of the RegionDock's RegionState coordinate configuration... More...
 
void selectedCountUpdateNeeded ()
 forward state update information to the dock wherere a count of selected regions, information is maintained. More...
 
QString getSaveDir ()
 used to synchronize all region directories per QtDisplayPanelGUI... More...
 
void putSaveDir (QString)
 
QString getLoadDir ()
 
void putLoadDir (QString)
 
virtual bool setMarker (QtMouseToolNames::PointRegionSymbols)
 
- Public Member Functions inherited from casa::viewer::dtorNotifier
 dtorNotifier ()
 
 ~dtorNotifier ()
 signals any dtorNotifiee's that are registered More...
 
void addNotifiee (dtorNotifiee *)
 
void removeNotifiee (dtorNotifiee *)
 

Static Public Member Functions

static bool refreshNeeded (int v)
 functions to query results from mouse functions... More...
 
static bool regionSelected (int v)
 
static bool handleSelected (int v)
 
static std::shared_ptr
< viewer::Region
creatingRegion ()
 called when creating regions to allow suppression of corner-handle drawing... More...
 
static void creatingRegionBegin (std::shared_ptr< viewer::Region > r)
 
static void creatingRegionEnd ()
 

Public Attributes

virtual void boundingRectangle(double
&, double &, double &, double
&) const DISPLAY_PURE_VIRTUAL(Region
void 
emitUpdate ()
 in "linear" coordinates... More...
 

Protected Types

typedef std::pair
< region::LineStyle, int > 
ls_ele
 

Protected Slots

void refresh_canvas_event ()
 
void refresh_statistics_event (bool)
 
void refresh_position_event (bool)
 
void translate_x (const QString &, const QString &, const QString &)
 
void translate_y (const QString &, const QString &, const QString &)
 
void resize_x (const QString &, const QString &, const QString &)
 
void resize_y (const QString &, const QString &, const QString &)
 
void updateCenterInfo ()
 
void adjustCorners (double, double, double, double)
 
void refresh_zrange_event (int, int)
 
void revoke_region ()
 revoke... More...
 
void revoke_region (QtRegionState *)
 revoke if our state matches parameter... More...
 
void reload_statistics_event ()
 
void output (std::list< QtRegionState * >, RegionTextList &)
 
void output (std::list< QtRegionState * >, ds9writer &)
 

Protected Member Functions

void fetch_details (region::RegionTypes &type, QList< int > &pixelx, QList< int > &pixely, QList< double > &worldx, QList< double > &worldy)
 
virtual void fetch_region_details (region::RegionTypes &type, std::vector< std::pair< int, int > > &pixel_pts, std::vector< std::pair< double, double > > &world_pts) const
 
void signal_region_change (region::RegionChanges)
 
void initHistogram ()
 -----------------—==================== from old QtRegion ====================-----------------— More...
 
virtual std::list
< std::shared_ptr< RegionInfo > > * 
generate_dds_statistics ()
 
virtual void generate_nonimage_statistics (DisplayData *, std::list< std::shared_ptr< RegionInfo > > *)
 hook to allow generate_dds_statistics() to generate statistics for rectangular measurement set regions... More...
 
virtual RegionInfonewInfoObject (casacore::ImageInterface< float > *, PrincipalAxesDD *)
 newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions to allow for specialized creation of the region info objects for display in "statistics"... More...
 
virtual ImageRegion_state get_image_selected_region (DisplayData *)
 
virtual std::list
< std::shared_ptr< RegionInfo > > * 
generate_dds_centers ()=0
 
double linear_average (double a, double b) const
 
RegionInfo::center_tgetLayerCenter (PrincipalAxesDD *padd, std::shared_ptr< casacore::ImageInterface< float > > image, casacore::ImageRegion &imgReg)
 
RegionInfo::stats_tgetLayerStats (PrincipalAxesDD *padd, casacore::ImageInterface< float > *image, casacore::ImageRegion &imgReg)
 
region::Units current_xunits () const
 
region::Units current_yunits () const
 
region::Coord current_region_coordsys () const
 
casacore::MDirection::Types current_casa_coordsys () const
 
virtual void drawRegion (bool)=0
 
virtual void drawText ()
 
virtual void drawCenter (double &x, double &y, double &deltx, double &delty)
 
virtual bool within_drawing_area ()
 

Static Protected Member Functions

static int getAxisIndex (casacore::ImageInterface< float > *image, std::string axtype)
 

Protected Attributes

QtRegionDockdock_
 
QtRegionStatemystate
 
HistogramTabhistogram
 
bool statistics_update_needed
 
bool position_visible
 
bool position_update_needed
 
int id_
 
bool statistics_visible
 
int hold_signals
 
std::map
< region::RegionChanges, bool > 
held_signals
 
virtual casacore::ImageRegion
*virtual get_image_region(DisplayData
*) const DISPLAY_PURE_VIRTUAL(Region
const std::set< Region * > 
get_selected_regions )()
 
virtual void virtual setCenter(double
&, double &, double &, double
&) DISPLAY_PURE_VIRTUAL(Region
void 
drawCenter (double &x, double &y)
 
region::LineStyle current_ls
 
std::list< ls_elels_stack
 
WorldCanvaswc_
 
int last_z_index
 
bool selected_
 
bool visible_
 
bool complete
 Should this region be considered complete? Set to true by derived classes... More...
 
bool mouse_in_region
 Derived classes set this to true and clear it when the mouse enters and exits this regions bounding box... More...
 

Static Protected Attributes

static const int SEXAGPREC
 
static std::shared_ptr< Regioncreating_region
 Holds a pointer to the region currently being created... More...
 

Private Slots

void update_histogram_event ()
 Called when the histogram stack needs to be changed due to the add/removal of an image. More...
 

Private Member Functions

void init ()
 common state-setup for constructors... More...
 
void updateHistogramRegion ()
 
void clearHistograms ()
 
void process_held_signals ()
 
void clear_signal_cache ()
 
void set_line_style (const ls_ele &)
 

Private Attributes

bool z_index_within_range
 
bool draw_center_
 
std::string name_
 

Detailed Description

All regions are specified in "linear coordinates", not "pixel coordinates".

This is necessary because "linear coordinates" scale with zooming whereas "pixel coordinates" do not. Unfortunately, this means that coordinate transformation is required each time the region is drawn.

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

Member Typedef Documentation

typedef std::pair<region::LineStyle,int> casa::viewer::Region::ls_ele
protected

Definition at line 545 of file Region.qo.h.

Constructor & Destructor Documentation

virtual casa::viewer::Region::~Region ( )
virtual
casa::viewer::Region::Region ( )
inline

Definition at line 234 of file Region.qo.h.

casa::viewer::Region::Region ( const std::string &  name,
WorldCanvas wc,
QtRegionDock ,
bool  hold_signals_ = false,
QtRegionState supplied_state = 0,
QtMouseToolNames::PointRegionSymbols  sym = QtMouseToolNames::SYM_UNKNOWN 
)

Member Function Documentation

void casa::viewer::Region::adjustCorners ( double  ,
double  ,
double  ,
double   
)
protectedslot
std::string casa::viewer::Region::centerColor ( ) const
inline

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

References casa::viewer::QtRegionState::centerColor(), and mystate.

virtual region::PointInfo casa::viewer::Region::checkPoint ( double  x,
double  y 
) const
pure virtual
void casa::viewer::Region::clear_signal_cache ( )
private
void casa::viewer::Region::clearHistograms ( )
private
void casa::viewer::Region::clearMouseInRegion ( )
inline

Definition at line 309 of file Region.qo.h.

References mouse_in_region.

void casa::viewer::Region::clearStatistics ( )

blank out the statistics for this region

int& casa::viewer::Region::colorIndex ( )

used to synchronize the default color for all of the RegionDock's RegionState objects...

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

used to synchronize all of the RegionDock's RegionState coordinate configuration...

static std::shared_ptr<viewer::Region> casa::viewer::Region::creatingRegion ( )
inlinestatic

called when creating regions to allow suppression of corner-handle drawing...

Definition at line 347 of file Region.qo.h.

References creating_region.

static void casa::viewer::Region::creatingRegionBegin ( std::shared_ptr< viewer::Region r)
inlinestatic

Definition at line 350 of file Region.qo.h.

References creating_region.

static void casa::viewer::Region::creatingRegionEnd ( )
inlinestatic

Definition at line 353 of file Region.qo.h.

References creating_region.

casacore::MDirection::Types casa::viewer::Region::current_casa_coordsys ( ) const
protected
region::Coord casa::viewer::Region::current_region_coordsys ( ) const
protected
region::Units casa::viewer::Region::current_xunits ( ) const
protected
region::Units casa::viewer::Region::current_yunits ( ) const
protected
virtual bool casa::viewer::Region::degenerate ( ) const
virtual

is this region degenerate?

Reimplemented in casa::viewer::Point.

virtual void casa::viewer::Region::drawCenter ( double &  x,
double &  y,
double &  deltx,
double &  delty 
)
protectedvirtual
virtual void casa::viewer::Region::drawRegion ( bool  )
protectedpure virtual
virtual void casa::viewer::Region::drawText ( )
protectedvirtual

Reimplemented in casa::viewer::Polyline.

void casa::viewer::Region::fetch_details ( region::RegionTypes type,
QList< int > &  pixelx,
QList< int > &  pixely,
QList< double > &  worldx,
QList< double > &  worldy 
)
protected
virtual void casa::viewer::Region::fetch_region_details ( region::RegionTypes type,
std::vector< std::pair< int, int > > &  pixel_pts,
std::vector< std::pair< double, double > > &  world_pts 
) const
inlineprotectedvirtual
virtual std::list<std::shared_ptr<RegionInfo> >* casa::viewer::Region::generate_dds_centers ( )
protectedpure virtual
virtual std::list<std::shared_ptr<RegionInfo> >* casa::viewer::Region::generate_dds_statistics ( )
protectedvirtual

Referenced by statistics().

virtual void casa::viewer::Region::generate_nonimage_statistics ( DisplayData ,
std::list< std::shared_ptr< RegionInfo > > *   
)
inlineprotectedvirtual

hook to allow generate_dds_statistics() to generate statistics for rectangular measurement set regions...

Definition at line 504 of file Region.qo.h.

virtual ImageRegion_state casa::viewer::Region::get_image_selected_region ( DisplayData )
protectedvirtual
static int casa::viewer::Region::getAxisIndex ( casacore::ImageInterface< float > *  image,
std::string  axtype 
)
staticprotected
void casa::viewer::Region::getCoordinatesAndUnits ( region::Coord c,
region::Units x_units,
region::Units y_units,
std::string &  width_height_units 
) const
bool casa::viewer::Region::getDrawCenter ( )
inline

Definition at line 253 of file Region.qo.h.

References draw_center_.

int casa::viewer::Region::getId ( ) const
inline

Histogram functionality.

Definition at line 358 of file Region.qo.h.

References id_.

casacore::ImageRegion* casa::viewer::Region::getImageRegion ( DisplayData dd) const
inline

Definition at line 361 of file Region.qo.h.

RegionInfo::center_t* casa::viewer::Region::getLayerCenter ( PrincipalAxesDD padd,
std::shared_ptr< casacore::ImageInterface< float > >  image,
casacore::ImageRegion imgReg 
)
protected
RegionInfo::stats_t* casa::viewer::Region::getLayerStats ( PrincipalAxesDD padd,
casacore::ImageInterface< float > *  image,
casacore::ImageRegion imgReg 
)
protected
QString casa::viewer::Region::getLoadDir ( )
void casa::viewer::Region::getPositionString ( std::string &  x,
std::string &  y,
std::string &  angle,
double &  bounding_width,
double &  bounding_height,
region::Coord  coord = region::DefaultCoord,
region::Units  x_units = region::DefaultUnits,
region::Units  y_units = region::DefaultUnits,
const std::string &  bounding_units = "rad" 
) const
QString casa::viewer::Region::getSaveDir ( )

used to synchronize all region directories per QtDisplayPanelGUI...

static bool casa::viewer::Region::handleSelected ( int  v)
inlinestatic

Definition at line 158 of file Region.qo.h.

References casa::viewer::region::MouseHandle.

void casa::viewer::Region::holdSignals ( )
inline

postpone signal processing (important for signals generated during construction)...

Definition at line 334 of file Region.qo.h.

References hold_signals.

void casa::viewer::Region::init ( )
private

common state-setup for constructors...

void casa::viewer::Region::initHistogram ( )
protected

-----------------—==================== from old QtRegion ====================-----------------—

Referenced by casa::viewer::Rectangle::Rectangle().

void casa::viewer::Region::invalidateCenterInfo ( )

indicates that the center info is no longer valid

double casa::viewer::Region::linear_average ( double  a,
double  b 
) const
inlineprotected

Definition at line 522 of file Region.qo.h.

std::string casa::viewer::Region::lineColor ( ) const
inline

Definition at line 167 of file Region.qo.h.

References casa::viewer::QtRegionState::lineColor(), and mystate.

region::LineStyle casa::viewer::Region::lineStyle ( ) const
inline

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

References casa::viewer::QtRegionState::lineStyle(), and mystate.

int casa::viewer::Region::lineWidth ( ) const
inline

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

References casa::viewer::QtRegionState::lineWidth(), and mystate.

virtual void casa::viewer::Region::mark ( bool  set = true)
virtual

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

virtual bool casa::viewer::Region::mark_toggle ( )
virtual

returns the new state...

virtual bool casa::viewer::Region::markCenter ( ) const
inlinevirtual

Definition at line 316 of file Region.qo.h.

References casa::viewer::QtRegionState::markCenter(), and mystate.

virtual bool casa::viewer::Region::marked ( ) const
inlinevirtual

Definition at line 301 of file Region.qo.h.

References casa::viewer::QtRegionState::marked(), and mystate.

size_t casa::viewer::Region::marked_region_count ( )
int casa::viewer::Region::markerScale ( ) const
inline

how much to scale the symbol used to mark point regions...

assumed to go from 0 to 9...

Definition at line 383 of file Region.qo.h.

References casa::viewer::QtRegionState::markerScale(), and mystate.

const std::string casa::viewer::Region::name ( ) const
inline

user specified name

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

References name_.

virtual RegionInfo* casa::viewer::Region::newInfoObject ( casacore::ImageInterface< float > *  ,
PrincipalAxesDD  
)
inlineprotectedvirtual

newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions to allow for specialized creation of the region info objects for display in "statistics"...

Reimplemented in casa::viewer::PVLine, and casa::viewer::Polyline.

Definition at line 508 of file Region.qo.h.

int casa::viewer::Region::numFrames ( ) const
virtual void casa::viewer::Region::output ( ds9writer out) const
pure virtual
void casa::viewer::Region::output ( std::list< QtRegionState * >  ,
RegionTextList  
)
protectedslot
void casa::viewer::Region::output ( std::list< QtRegionState * >  ,
ds9writer  
)
protectedslot
virtual void casa::viewer::Region::pixelCenter ( double &  ,
double &   
) const
pure virtual
void casa::viewer::Region::popDrawingEnv ( )
void casa::viewer::Region::process_held_signals ( )
private

Referenced by releaseSignals().

void casa::viewer::Region::pushDrawingEnv ( region::LineStyle  ls,
int  thickness = -1 
)
void casa::viewer::Region::putLoadDir ( QString  )
void casa::viewer::Region::putSaveDir ( QString  )
void casa::viewer::Region::refresh ( )

duplicate of MultiWCTool::refresh()

void casa::viewer::Region::refresh_canvas_event ( )
protectedslot
void casa::viewer::Region::refresh_position_event ( bool  )
protectedslot
void casa::viewer::Region::refresh_state_gui ( )
void casa::viewer::Region::refresh_statistics_event ( bool  )
protectedslot
void casa::viewer::Region::refresh_zrange_event ( int  ,
int   
)
protectedslot
static bool casa::viewer::Region::refreshNeeded ( int  v)
inlinestatic

functions to query results from mouse functions...

Definition at line 152 of file Region.qo.h.

References casa::viewer::region::MouseRefresh.

void casa::viewer::Region::regionChange ( viewer::Region ,
std::string   
)
signal
void casa::viewer::Region::regionCreated ( int  ,
const QString &  shape,
const QString &  name,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y,
const QString &  linecolor,
const QString &  text,
const QString &  font,
int  fontsize,
int  fontstyle 
)
signal
static bool casa::viewer::Region::regionSelected ( int  v)
inlinestatic

Definition at line 155 of file Region.qo.h.

References casa::viewer::region::MouseSelected.

void casa::viewer::Region::regionUpdate ( int  ,
viewer::region::RegionChanges  ,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y 
)
signal
void casa::viewer::Region::regionUpdateResponse ( int  ,
const QString &  shape,
const QString &  name,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y,
const QString &  linecolor,
const QString &  text,
const QString &  font,
int  fontsize,
int  fontstyle 
)
signal

generated by emitUpdate()...

bool casa::viewer::Region::regionVisible ( ) const
inline

Definition at line 226 of file Region.qo.h.

References visible_.

virtual void casa::viewer::Region::releaseSignals ( )
inlinevirtual

Reimplemented in casa::viewer::Point.

Definition at line 337 of file Region.qo.h.

References hold_signals, and process_held_signals().

void casa::viewer::Region::reload_statistics_event ( )
protectedslot
void casa::viewer::Region::resetDrawingEnv ( )
void casa::viewer::Region::resetTextEnv ( )
void casa::viewer::Region::resize_x ( const QString &  ,
const QString &  ,
const QString &   
)
protectedslot
void casa::viewer::Region::resize_y ( const QString &  ,
const QString &  ,
const QString &   
)
protectedslot
bool casa::viewer::Region::resizeX ( const std::string &  ,
const std::string &  ,
const std::string &   
)
bool casa::viewer::Region::resizeY ( const std::string &  ,
const std::string &  ,
const std::string &   
)
void casa::viewer::Region::revoke_region ( )
protectedslot

revoke...

void casa::viewer::Region::revoke_region ( QtRegionState )
protectedslot

revoke if our state matches parameter...

bool casa::viewer::Region::selected ( ) const
inline

Definition at line 271 of file Region.qo.h.

References selected_.

size_t casa::viewer::Region::selected_region_count ( )
void casa::viewer::Region::selectedCountUpdateNeeded ( )

forward state update information to the dock wherere a count of selected regions, information is maintained.

This is used to determine the corner treatment when drawing regions...

virtual void casa::viewer::Region::selectedInCanvas ( )
virtual

indicates that the user has selected this rectangle...

...may need to scroll region dock

void casa::viewer::Region::selectionChanged ( viewer::Region ,
bool   
)
signal
void casa::viewer::Region::set_line_style ( const ls_ele )
private
virtual void casa::viewer::Region::setAnnotation ( bool  )
virtual
void casa::viewer::Region::setDrawCenter ( bool  draw_center)
inline

Definition at line 250 of file Region.qo.h.

References draw_center_.

void casa::viewer::Region::setDrawingEnv ( )
virtual void casa::viewer::Region::setFont ( const std::string &  font = "",
int  font_size = -1,
int  font_style = 0,
const std::string &  font_color = "" 
)
virtual
virtual void casa::viewer::Region::setLabel ( const std::string &  l)
virtual
virtual void casa::viewer::Region::setLabelDelta ( const std::vector< int > &  )
virtual
virtual void casa::viewer::Region::setLabelPosition ( region::TextPosition  )
virtual
virtual void casa::viewer::Region::setLine ( const std::string &  line_color = "",
region::LineStyle  line_style = region::SolidLine,
unsigned int  line_width = 1 
)
virtual
virtual bool casa::viewer::Region::setMarker ( QtMouseToolNames::PointRegionSymbols  )
inlinevirtual

Reimplemented in casa::viewer::Point.

Definition at line 416 of file Region.qo.h.

void casa::viewer::Region::setMarkerScale ( int  v)
inline

Definition at line 386 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::setMarkerScale().

void casa::viewer::Region::setTextEnv ( )
void casa::viewer::Region::showHistogramTool ( )
signal
void casa::viewer::Region::signal_region_change ( region::RegionChanges  )
protected
virtual bool casa::viewer::Region::skyComponent ( ) const
inlinevirtual
QtRegionState* casa::viewer::Region::state ( )
inline

DISPLAY_PURE_VIRTUAL(Region::pixelCenter,);.

needed for writing out a list of regions (CASA or DS9 format) because the output is based upon QtRegionState pointers (because that is what is available to the QtRegionDock... this should be rectified to use a list of QtRegion pointers for region output...

Definition at line 377 of file Region.qo.h.

References mystate.

virtual std::list<std::shared_ptr<RegionInfo> >* casa::viewer::Region::statistics ( )
inlinevirtual

Definition at line 342 of file Region.qo.h.

References generate_dds_statistics().

void casa::viewer::Region::statisticsUpdateNeeded ( )
inline

Definition at line 395 of file Region.qo.h.

References statistics_update_needed.

virtual void casa::viewer::Region::status ( const std::string &  msg,
const std::string &  type = "info" 
)
virtual

update status information...

std::pair<int,int>& casa::viewer::Region::tabState ( )

used to synchronize all of the RegionDock's RegionState tab configuration...

std::string casa::viewer::Region::textColor ( ) const
inline

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

References mystate, and casa::viewer::QtRegionState::textColor().

std::string casa::viewer::Region::textFont ( ) const
inline

Definition at line 183 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::textFont().

int casa::viewer::Region::textFontSize ( ) const
inline

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

References mystate, and casa::viewer::QtRegionState::textFontSize().

int casa::viewer::Region::textFontStyle ( ) const
inline

Definition at line 189 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::textFontStyle().

region::TextPosition casa::viewer::Region::textPosition ( ) const
inline

Definition at line 195 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::textPosition().

void casa::viewer::Region::textPositionDelta ( int &  x,
int &  y 
) const
inline

Definition at line 198 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::textPositionDelta().

std::string casa::viewer::Region::textValue ( ) const
inline

Definition at line 192 of file Region.qo.h.

References mystate, and casa::viewer::QtRegionState::textValue().

void casa::viewer::Region::translate_x ( const QString &  ,
const QString &  ,
const QString &   
)
protectedslot
void casa::viewer::Region::translate_y ( const QString &  ,
const QString &  ,
const QString &   
)
protectedslot
bool casa::viewer::Region::translateX ( const std::string &  ,
const std::string &  ,
const std::string &   
)
bool casa::viewer::Region::translateY ( const std::string &  ,
const std::string &  ,
const std::string &   
)
virtual region::RegionTypes casa::viewer::Region::type ( ) const
pure virtual

-----------------—==================== from old QtRegion ====================-----------------—

query region type... to avoid dynamic cast ladder...

Implemented in casa::viewer::PVLine, casa::viewer::Polygon, casa::viewer::Rectangle, casa::viewer::Polyline, casa::viewer::Point, and casa::viewer::Ellipse.

void casa::viewer::Region::update_histogram_event ( )
privateslot

Called when the histogram stack needs to be changed due to the add/removal of an image.

void casa::viewer::Region::updateCenterInfo ( )
protectedslot
void casa::viewer::Region::updateHistogramRegion ( )
private
void casa::viewer::Region::updateStateInfo ( bool  region_modified,
region::RegionChanges   
)

indicates that region movement requires the update of state information...

virtual bool casa::viewer::Region::valid_translation ( double  dx,
double  dy,
double  width_delta,
double  height_delta 
)
pure virtual
virtual void casa::viewer::Region::weaklySelect ( bool  scroll_dock = true)
virtual
virtual bool casa::viewer::Region::weaklySelected ( ) const
virtual

is this region weakly or temporarily selected?

virtual void casa::viewer::Region::weaklyUnselect ( )
virtual

weaklyUnselectLimited() plus extra processing...

virtual void casa::viewer::Region::weaklyUnselectLimited ( )
virtual

just unmark this region (called from RegionToolManager); do not do the rest of the reorganization that weaklyUnselect() does...

virtual bool casa::viewer::Region::within_drawing_area ( )
protectedvirtual
bool casa::viewer::Region::worldBoundingRectangle ( double &  ,
double &  ,
const std::string &   
) const
int casa::viewer::Region::zIndex ( ) const
void casa::viewer::Region::zRange ( int &  x,
int &  y 
) const

Member Data Documentation

bool casa::viewer::Region::complete
protected

Should this region be considered complete? Set to true by derived classes...

Definition at line 556 of file Region.qo.h.

Referenced by casa::viewer::Rectangle::Rectangle().

std::shared_ptr<Region> casa::viewer::Region::creating_region
staticprotected

Holds a pointer to the region currently being created...

Definition at line 563 of file Region.qo.h.

Referenced by creatingRegion(), creatingRegionBegin(), and creatingRegionEnd().

region::LineStyle casa::viewer::Region::current_ls
protected

Definition at line 544 of file Region.qo.h.

QtRegionDock* casa::viewer::Region::dock_
protected

Definition at line 469 of file Region.qo.h.

bool casa::viewer::Region::draw_center_
private

Definition at line 580 of file Region.qo.h.

Referenced by getDrawCenter(), and setDrawCenter().

virtual void virtual setCenter (double &, double &, double &, double &) DISPLAY_PURE_VIRTUAL(Region void casa::viewer::Region::drawCenter(double &x, double &y)
protected

Definition at line 538 of file Region.qo.h.

virtual void boundingRectangle (double &, double &, double &, double &) const DISPLAY_PURE_VIRTUAL(Region void casa::viewer::Region::emitUpdate()

in "linear" coordinates...

Definition at line 331 of file Region.qo.h.

virtual casacore::ImageRegion* virtual get_image_region ( DisplayData* ) const DISPLAY_PURE_VIRTUAL(Region const std::set<Region*> casa::viewer::Region::get_selected_regions)()
protected

Definition at line 515 of file Region.qo.h.

std::map<region::RegionChanges,bool> casa::viewer::Region::held_signals
protected

Definition at line 481 of file Region.qo.h.

HistogramTab* casa::viewer::Region::histogram
protected

Definition at line 471 of file Region.qo.h.

int casa::viewer::Region::hold_signals
protected

Definition at line 480 of file Region.qo.h.

Referenced by holdSignals(), and releaseSignals().

int casa::viewer::Region::id_
protected

Definition at line 477 of file Region.qo.h.

Referenced by getId().

int casa::viewer::Region::last_z_index
protected

Definition at line 549 of file Region.qo.h.

std::list<ls_ele> casa::viewer::Region::ls_stack
protected

Definition at line 546 of file Region.qo.h.

bool casa::viewer::Region::mouse_in_region
protected

Derived classes set this to true and clear it when the mouse enters and exits this regions bounding box...

Definition at line 560 of file Region.qo.h.

Referenced by clearMouseInRegion().

QtRegionState* casa::viewer::Region::mystate
protected
std::string casa::viewer::Region::name_
private

Definition at line 581 of file Region.qo.h.

Referenced by name().

bool casa::viewer::Region::position_update_needed
protected

Definition at line 475 of file Region.qo.h.

bool casa::viewer::Region::position_visible
protected

Definition at line 474 of file Region.qo.h.

bool casa::viewer::Region::selected_
protected

Definition at line 550 of file Region.qo.h.

Referenced by selected().

const int casa::viewer::Region::SEXAGPREC
staticprotected

Definition at line 467 of file Region.qo.h.

bool casa::viewer::Region::statistics_update_needed
protected

Definition at line 473 of file Region.qo.h.

Referenced by statisticsUpdateNeeded().

bool casa::viewer::Region::statistics_visible
protected

Definition at line 478 of file Region.qo.h.

bool casa::viewer::Region::visible_
protected

Definition at line 552 of file Region.qo.h.

Referenced by regionVisible().

WorldCanvas* casa::viewer::Region::wc_
protected

Definition at line 547 of file Region.qo.h.

bool casa::viewer::Region::z_index_within_range
private

Definition at line 578 of file Region.qo.h.


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