casa
$Rev:20696$
|
All regions are specified in "linear coordinates", not "pixel coordinates". More...
#include <QtPoint.qo.h>
Public Slots | |
void | adjustCorners (double, double, double, double) |
Public Member Functions | |
~QtPoint () | |
const std::string | name () const |
QtMouseToolNames::PointRegionSymbols | marker () const |
bool | setMarker (QtMouseToolNames::PointRegionSymbols sym) |
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 |
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 &x, const std::string &x_units, const std::string &coordsys) |
bool | translateY (const std::string &y, const std::string &y_units, const std::string &coordsys) |
bool | resizeX (const std::string &x, const std::string &x_units, const std::string &coordsys) |
bool | resizeY (const std::string &y, const std::string &y_units, const std::string &coordsys) |
int | numFrames () const |
void | zRange (int &min, int &max) const |
int | zIndex () const |
bool | regionVisible () const |
void | linearCenter (double &x, double &y) const |
void | pixelCenter (double &x, double &y) const |
DISPLAY_PURE_VIRTUAL(region::linearCenter,);. | |
QtPoint (QtRegionSourceKernel *factory, WorldCanvas *wc, double x, double y, QtMouseToolNames::PointRegionSymbols sym, bool hold_signals=false) | |
void | refresh () |
qt-event -> QtRegion -> QtPoint -> Region::refresh( ) | |
AnnotationBase * | annotation () const |
void | selectedInCanvas () |
indicates that the user has selected this point... | |
bool | weaklySelected () const |
is this region weakly or temporarily selected? | |
void | weaklySelect () |
void | weaklyUnselect () |
void | updateStateInfo (bool region_modified, Region::RegionChanges change) |
indicates that region movement requires that the statistcs be updated... | |
void | invalidateCenterInfo () |
indicates that the center info is no longer valid | |
void | clearStatistics () |
void | setLabel (const std::string &l) |
set attributes when loading a casa region text file... | |
void | setLabelPosition (TextPosition pos) |
void | setLabelDelta (const std::vector< int > &delta) |
void | setFont (const std::string &font="", int font_size=-1, int font_style=0, const std::string &font_color="") |
void | setLine (const std::string &line_color="", Region::LineStyle line_style=Region::SolidLine, unsigned int line_width=1) |
void | setAnnotation (bool ann) |
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 | mark_toggle () |
int | markerScale () const |
void | status (const std::string &msg, const std::string &type="info") |
bool | markCenter () const |
bool | skyComponent () const |
void | output (ds9writer &out) const |
void | emitUpdate () |
called for existing regions when spectral profile tool is opened... | |
Protected Member Functions | |
std::list< RegionInfo > * | generate_dds_statistics () |
--------------------==================== from old QtRegion ====================-------------------- | |
ImageRegion * | get_image_region (DisplayData *dd) const |
const std::list< Region * > & | get_selected_regions () |
size_t | selected_region_count () |
size_t | marked_region_count () |
virtual Region * | fetch_my_region () |
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 |
std::list< RegionInfo > * | generate_dds_centers (bool skycomp) |
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.
Key points:
Definition at line 47 of file QtPoint.qo.h.
casa::viewer::QtPoint::QtPoint | ( | QtRegionSourceKernel * | factory, |
WorldCanvas * | wc, | ||
double | x, | ||
double | y, | ||
QtMouseToolNames::PointRegionSymbols | sym, | ||
bool | hold_signals = false |
||
) |
void casa::viewer::QtPoint::adjustCorners | ( | double | , |
double | , | ||
double | , | ||
double | |||
) | [slot] |
Reimplemented from casa::viewer::Region.
AnnotationBase* casa::viewer::QtPoint::annotation | ( | ) | const [inline] |
Reimplemented from casa::viewer::Point.
Definition at line 100 of file QtPoint.qo.h.
std::string casa::viewer::QtPoint::centerColor | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 57 of file QtPoint.qo.h.
void casa::viewer::QtPoint::clearStatistics | ( | ) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 115 of file QtPoint.qo.h.
void casa::viewer::QtPoint::emitUpdate | ( | ) | [inline] |
called for existing regions when spectral profile tool is opened...
Reimplemented from casa::viewer::QtRegion.
Definition at line 142 of file QtPoint.qo.h.
virtual Region* casa::viewer::QtPoint::fetch_my_region | ( | ) | [inline, protected, virtual] |
Definition at line 154 of file QtPoint.qo.h.
virtual void casa::viewer::QtPoint::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] |
Definition at line 156 of file QtPoint.qo.h.
std::list<RegionInfo>* casa::viewer::QtPoint::generate_dds_centers | ( | bool | skycomp | ) | [inline, protected] |
Definition at line 159 of file QtPoint.qo.h.
References casa::viewer::Point::generate_dds_centers().
std::list<RegionInfo>* casa::viewer::QtPoint::generate_dds_statistics | ( | ) | [inline, protected, virtual] |
--------------------==================== from old QtRegion ====================--------------------
Reimplemented from casa::viewer::Region.
Definition at line 149 of file QtPoint.qo.h.
ImageRegion* casa::viewer::QtPoint::get_image_region | ( | DisplayData * | dd | ) | const [inline, protected, virtual] |
Implements casa::viewer::QtRegion.
Definition at line 150 of file QtPoint.qo.h.
const std::list<Region*>& casa::viewer::QtPoint::get_selected_regions | ( | ) | [inline, protected, virtual] |
Implements casa::viewer::Region.
Definition at line 151 of file QtPoint.qo.h.
void casa::viewer::QtPoint::getCoordinatesAndUnits | ( | Region::Coord & | c, |
Region::Units & | x_units, | ||
Region::Units & | y_units, | ||
std::string & | width_height_units | ||
) | const [inline] |
Reimplemented from casa::viewer::Region.
Definition at line 69 of file QtPoint.qo.h.
void casa::viewer::QtPoint::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 [inline] |
Reimplemented from casa::viewer::Region.
Definition at line 71 of file QtPoint.qo.h.
void casa::viewer::QtPoint::invalidateCenterInfo | ( | ) | [inline] |
indicates that the center info is no longer valid
Reimplemented from casa::viewer::QtRegion.
Definition at line 113 of file QtPoint.qo.h.
void casa::viewer::QtPoint::linearCenter | ( | double & | x, |
double & | y | ||
) | const [inline] |
Reimplemented from casa::viewer::Rectangle.
Definition at line 93 of file QtPoint.qo.h.
std::string casa::viewer::QtPoint::lineColor | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 56 of file QtPoint.qo.h.
Region::LineStyle casa::viewer::QtPoint::lineStyle | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 59 of file QtPoint.qo.h.
int casa::viewer::QtPoint::lineWidth | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 58 of file QtPoint.qo.h.
void casa::viewer::QtPoint::mark | ( | bool | set = true | ) | [inline] |
functions added with the introduction of RegionToolManager and the unified selection and manipulation of the various region types...
Reimplemented from casa::viewer::QtRegion.
Definition at line 128 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::mark_toggle | ( | ) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 130 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::markCenter | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 136 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::marked | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 129 of file QtPoint.qo.h.
size_t casa::viewer::QtPoint::marked_region_count | ( | ) | [inline, protected] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 153 of file QtPoint.qo.h.
QtMouseToolNames::PointRegionSymbols casa::viewer::QtPoint::marker | ( | ) | const [inline, virtual] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 53 of file QtPoint.qo.h.
References casa::viewer::Point::marker_.
int casa::viewer::QtPoint::markerScale | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 132 of file QtPoint.qo.h.
const std::string casa::viewer::QtPoint::name | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 52 of file QtPoint.qo.h.
int casa::viewer::QtPoint::numFrames | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 88 of file QtPoint.qo.h.
void casa::viewer::QtPoint::output | ( | ds9writer & | out | ) | const [virtual] |
Implements casa::viewer::QtRegion.
void casa::viewer::QtPoint::pixelCenter | ( | double & | , |
double & | |||
) | const [inline, virtual] |
DISPLAY_PURE_VIRTUAL(region::linearCenter,);.
Implements casa::viewer::QtRegion.
Definition at line 94 of file QtPoint.qo.h.
void casa::viewer::QtPoint::refresh | ( | ) | [inline] |
qt-event -> QtRegion -> QtPoint -> Region::refresh( )
Reimplemented from casa::viewer::Region.
Definition at line 99 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::regionVisible | ( | ) | const [inline] |
Reimplemented from casa::viewer::Region.
Definition at line 92 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::resizeX | ( | const std::string & | x, |
const std::string & | x_units, | ||
const std::string & | coordsys | ||
) | [inline, virtual] |
Implements casa::viewer::QtRegion.
Definition at line 83 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::resizeY | ( | const std::string & | y, |
const std::string & | y_units, | ||
const std::string & | coordsys | ||
) | [inline, virtual] |
Implements casa::viewer::QtRegion.
Definition at line 85 of file QtPoint.qo.h.
size_t casa::viewer::QtPoint::selected_region_count | ( | ) | [inline, protected] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 152 of file QtPoint.qo.h.
void casa::viewer::QtPoint::selectedInCanvas | ( | ) | [inline, virtual] |
indicates that the user has selected this point...
Reimplemented from casa::viewer::Region.
Definition at line 103 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setAnnotation | ( | bool | ann | ) | [inline, virtual] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 124 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setFont | ( | const std::string & | font = "" , |
int | font_size = -1 , |
||
int | font_style = 0 , |
||
const std::string & | font_color = "" |
||
) | [inline, virtual] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 120 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setLabel | ( | const std::string & | l | ) | [inline, virtual] |
set attributes when loading a casa region text file...
Reimplemented from casa::viewer::QtRegion.
Definition at line 117 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setLabelDelta | ( | const std::vector< int > & | delta | ) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 119 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setLabelPosition | ( | TextPosition | pos | ) | [inline, virtual] |
Implements casa::viewer::Region.
Definition at line 118 of file QtPoint.qo.h.
void casa::viewer::QtPoint::setLine | ( | const std::string & | line_color = "" , |
Region::LineStyle | line_style = Region::SolidLine , |
||
unsigned int | line_width = 1 |
||
) | [inline, virtual] |
Implements casa::viewer::Region.
Definition at line 122 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::setMarker | ( | QtMouseToolNames::PointRegionSymbols | sym | ) | [inline, virtual] |
Reimplemented from casa::viewer::Point.
Definition at line 54 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::skyComponent | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 138 of file QtPoint.qo.h.
void casa::viewer::QtPoint::status | ( | const std::string & | msg, |
const std::string & | type = "info" |
||
) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 134 of file QtPoint.qo.h.
References casa::viewer::Point::type().
std::string casa::viewer::QtPoint::textColor | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 61 of file QtPoint.qo.h.
std::string casa::viewer::QtPoint::textFont | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 62 of file QtPoint.qo.h.
int casa::viewer::QtPoint::textFontSize | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 63 of file QtPoint.qo.h.
int casa::viewer::QtPoint::textFontStyle | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 64 of file QtPoint.qo.h.
Region::TextPosition casa::viewer::QtPoint::textPosition | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 66 of file QtPoint.qo.h.
void casa::viewer::QtPoint::textPositionDelta | ( | int & | x, |
int & | y | ||
) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 67 of file QtPoint.qo.h.
std::string casa::viewer::QtPoint::textValue | ( | ) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 65 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::translateX | ( | const std::string & | x, |
const std::string & | x_units, | ||
const std::string & | coordsys | ||
) | [inline, virtual] |
Implements casa::viewer::QtRegion.
Definition at line 79 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::translateY | ( | const std::string & | y, |
const std::string & | y_units, | ||
const std::string & | coordsys | ||
) | [inline, virtual] |
Implements casa::viewer::QtRegion.
Definition at line 81 of file QtPoint.qo.h.
void casa::viewer::QtPoint::updateStateInfo | ( | bool | region_modified, |
Region::RegionChanges | change | ||
) | [inline] |
indicates that region movement requires that the statistcs be updated...
Definition at line 110 of file QtPoint.qo.h.
void casa::viewer::QtPoint::weaklySelect | ( | ) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 106 of file QtPoint.qo.h.
bool casa::viewer::QtPoint::weaklySelected | ( | ) | const [inline] |
is this region weakly or temporarily selected?
Reimplemented from casa::viewer::QtRegion.
Definition at line 105 of file QtPoint.qo.h.
void casa::viewer::QtPoint::weaklyUnselect | ( | ) | [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 107 of file QtPoint.qo.h.
int casa::viewer::QtPoint::zIndex | ( | ) | const [inline] |
Reimplemented from casa::viewer::Region.
Definition at line 90 of file QtPoint.qo.h.
void casa::viewer::QtPoint::zRange | ( | int & | min, |
int & | max | ||
) | const [inline] |
Reimplemented from casa::viewer::QtRegion.
Definition at line 89 of file QtPoint.qo.h.