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

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

List of all members.

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( )...

Public Member Functions

const std::string name () const
 user specified name
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, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN)
 Region (const std::string &name, WorldCanvas *wc, QtRegionDock *, QtRegionState *supplied_state, bool hold_signals_=false)
virtual bool degenerate () const
 is this region degenerate?
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( )
virtual region::PointInfo checkPoint (double x, double y) const =0
void invalidateCenterInfo ()
 indicates that the center info is no longer valid
bool selected () const
virtual bool weaklySelected () const
 is this region weakly or temporarily selected?
virtual void weaklySelect (bool scroll_dock=true)
virtual void weaklyUnselect ()
 weaklyUnselectLimited( ) plus extra processing...
virtual void weaklyUnselectLimited ()
 just unmark this region (called from RegionToolManager); do not do the rest of the reorganization that weaklyUnselect( ) does...
virtual void selectedInCanvas ()
 indicates that the user has selected this rectangle...
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...
virtual bool marked () const
virtual bool mark_toggle ()
 returns the new state...
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...
virtual bool markCenter () const
void holdSignals ()
 postpone signal processing (important for signals generated during construction)...
virtual void releaseSignals ()
virtual std::list
< std::tr1::shared_ptr
< RegionInfo > > * 
statistics ()
int getId () const
 Histogram functionality.
ImageRegiongetImageRegion (DisplayData *dd) const
virtual region::RegionTypes type () const =0
 --------------------==================== from old QtRegion ====================--------------------
virtual void pixelCenter (double &, double &) const =0
QtRegionStatestate ()
 DISPLAY_PURE_VIRTUAL(Region::pixelCenter,);.
int markerScale () const
 how much to scale the symbol used to mark point regions...
void setMarkerScale (int v)
void updateStateInfo (bool region_modified, region::RegionChanges)
 indicates that region movement requires the update of state information...
void refresh_state_gui ()
void clearStatistics ()
 blank out the statistics for this region
void statisticsUpdateNeeded ()
int & colorIndex ()
 used to synchronize the default color for all of the RegionDock's RegionState objects...
std::pair< int, int > & tabState ()
 used to synchronize all of the RegionDock's RegionState tab configuration...
std::map< std::string, int > & coordState ()
 used to synchronize all of the RegionDock's RegionState coordinate configuration...
void selectedCountUpdateNeeded ()
 forward state update information to the dock wherere a count of selected regions, information is maintained.
QString getSaveDir ()
 used to synchronize all region directories per QtDisplayPanelGUI...
void putSaveDir (QString)
QString getLoadDir ()
void putLoadDir (QString)
virtual bool setMarker (QtMouseToolNames::PointRegionSymbols)

Static Public Member Functions

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

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...
void revoke_region (QtRegionState *)
 revoke if our state matches parameter...
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 ====================--------------------
virtual std::list
< std::tr1::shared_ptr
< RegionInfo > > * 
generate_dds_statistics ()
virtual void generate_nonimage_statistics (DisplayData *, std::list< std::tr1::shared_ptr< RegionInfo > > *)
 hook to allow generate_dds_statistics( ) to generate statistics for rectangular measurement set regions...
virtual RegionInfonewInfoObject (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"...
virtual ImageRegion_state get_image_selected_region (DisplayData *)
virtual std::list
< std::tr1::shared_ptr
< RegionInfo > > * 
generate_dds_centers ()=0
double linear_average (double a, double b) const
RegionInfo::center_tgetLayerCenter (PrincipalAxesDD *padd, ImageInterface< Float > *image, ImageRegion &imgReg)
RegionInfo::stats_tgetLayerStats (PrincipalAxesDD *padd, ImageInterface< Float > *image, ImageRegion &imgReg)
region::Units current_xunits () const
region::Units current_yunits () const
region::Coord current_region_coordsys () const
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 (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 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...
bool mouse_in_region
 Derived classes set this to true and clear it when the mouse enters and exits this regions bounding box...

Static Protected Attributes

static const int SEXAGPREC
static std::tr1::shared_ptr
< Region
creating_region
 Holds a pointer to the region currently being created...

Private Slots

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

Private Member Functions

void init ()
 common state-setup for constructors...
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 138 of file Region.qo.h.


Member Typedef Documentation

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

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


Constructor & Destructor Documentation

virtual casa::viewer::Region::~Region ( ) [virtual]

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

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

Member Function Documentation

void casa::viewer::Region::adjustCorners ( double  ,
double  ,
double  ,
double   
) [protected, slot]
std::string casa::viewer::Region::centerColor ( ) const [inline]

Definition at line 161 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]

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

References mouse_in_region.

blank out the statistics for this region

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::tr1::shared_ptr<viewer::Region> casa::viewer::Region::creatingRegion ( ) [inline, static]

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

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

References creating_region.

static void casa::viewer::Region::creatingRegionBegin ( std::tr1::shared_ptr< viewer::Region r) [inline, static]

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

References creating_region.

static void casa::viewer::Region::creatingRegionEnd ( ) [inline, static]

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

References creating_region, and casa::memory::nullptr.

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 
) [protected, virtual]
virtual void casa::viewer::Region::drawRegion ( bool  ) [protected, pure virtual]
virtual void casa::viewer::Region::drawText ( ) [protected, virtual]

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 [inline, protected, virtual]
virtual std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::Region::generate_dds_centers ( ) [protected, pure virtual]
virtual std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::Region::generate_dds_statistics ( ) [protected, virtual]

Referenced by statistics().

virtual void casa::viewer::Region::generate_nonimage_statistics ( DisplayData ,
std::list< std::tr1::shared_ptr< RegionInfo > > *   
) [inline, protected, virtual]

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

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

static Int casa::viewer::Region::getAxisIndex ( ImageInterface< Float > *  image,
std::string  axtype 
) [static, protected]
void casa::viewer::Region::getCoordinatesAndUnits ( region::Coord c,
region::Units x_units,
region::Units y_units,
std::string &  width_height_units 
) const

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

References draw_center_.

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

Histogram functionality.

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

References id_.

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

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

used to synchronize all region directories per QtDisplayPanelGUI...

static bool casa::viewer::Region::handleSelected ( int  v) [inline, static]

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

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

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

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

References hold_signals.

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

common state-setup for constructors...

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

indicates that the center info is no longer valid

double casa::viewer::Region::linear_average ( double  a,
double  b 
) const [inline, protected]

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

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

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

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

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

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

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

Definition at line 164 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 [inline, virtual]

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

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

virtual bool casa::viewer::Region::marked ( ) const [inline, virtual]

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

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

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 373 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 154 of file Region.qo.h.

References name_.

virtual RegionInfo* casa::viewer::Region::newInfoObject ( ImageInterface< Float > *  ,
PrincipalAxesDD  
) [inline, protected, virtual]

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 498 of file Region.qo.h.

void casa::viewer::Region::output ( std::list< QtRegionState * >  ,
RegionTextList  
) [protected, slot]
void casa::viewer::Region::output ( std::list< QtRegionState * >  ,
ds9writer  
) [protected, slot]
virtual void casa::viewer::Region::pixelCenter ( double &  ,
double &   
) const [pure virtual]

Referenced by releaseSignals().

void casa::viewer::Region::pushDrawingEnv ( region::LineStyle  ls,
int  thickness = -1 
)
void casa::viewer::Region::refresh_canvas_event ( ) [protected, slot]
void casa::viewer::Region::refresh_position_event ( bool  ) [protected, slot]
void casa::viewer::Region::refresh_statistics_event ( bool  ) [protected, slot]
void casa::viewer::Region::refresh_zrange_event ( int  ,
int   
) [protected, slot]
static bool casa::viewer::Region::refreshNeeded ( int  v) [inline, static]

functions to query results from mouse functions...

Definition at line 143 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) [inline, static]

Definition at line 146 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 217 of file Region.qo.h.

References visible_.

virtual void casa::viewer::Region::releaseSignals ( ) [inline, virtual]

Reimplemented in casa::viewer::Point.

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

References hold_signals, and process_held_signals().

void casa::viewer::Region::resize_x ( const QString &  ,
const QString &  ,
const QString &   
) [protected, slot]
void casa::viewer::Region::resize_y ( const QString &  ,
const QString &  ,
const QString &   
) [protected, slot]
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 ( ) [protected, slot]

revoke...

void casa::viewer::Region::revoke_region ( QtRegionState ) [protected, slot]

revoke if our state matches parameter...

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

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

References selected_.

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 242 of file Region.qo.h.

References draw_center_.

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::setLine ( const std::string &  line_color = "",
region::LineStyle  line_style = region::SolidLine,
unsigned int  line_width = 1 
) [virtual]

Reimplemented in casa::viewer::Point.

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

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

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

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

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 367 of file Region.qo.h.

References mystate.

virtual std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::Region::statistics ( ) [inline, virtual]

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

References generate_dds_statistics().

Definition at line 385 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 171 of file Region.qo.h.

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

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

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

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

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

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

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

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

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

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

Definition at line 186 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 189 of file Region.qo.h.

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

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

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

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

void casa::viewer::Region::translate_x ( const QString &  ,
const QString &  ,
const QString &   
) [protected, slot]
void casa::viewer::Region::translate_y ( const QString &  ,
const QString &  ,
const QString &   
) [protected, slot]
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.

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

void casa::viewer::Region::updateCenterInfo ( ) [protected, slot]
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 ( ) [protected, virtual]
bool casa::viewer::Region::worldBoundingRectangle ( double &  ,
double &  ,
const std::string &   
) const
void casa::viewer::Region::zRange ( int &  x,
int &  y 
) const

Member Data Documentation

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

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

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

std::tr1::shared_ptr<Region> casa::viewer::Region::creating_region [static, protected]

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

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

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

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

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

Definition at line 568 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 526 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 318 of file Region.qo.h.

virtual 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 503 of file Region.qo.h.

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

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

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

Referenced by holdSignals(), and releaseSignals().

int casa::viewer::Region::id_ [protected]

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

Referenced by getId().

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

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

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

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

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

Referenced by clearMouseInRegion().

std::string casa::viewer::Region::name_ [private]

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

Referenced by name().

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

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

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

Referenced by selected().

const int casa::viewer::Region::SEXAGPREC [static, protected]

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

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

Referenced by statisticsUpdateNeeded().

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

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

Referenced by regionVisible().

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

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


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