casa
$Rev:20696$
|
All regions are specified in "linear coordinates", not "pixel coordinates". More...
#include <Point.h>
Public Member Functions | |
~Point () | |
Point (WorldCanvas *wc, QtRegionDock *d, double x, double y, QtMouseToolNames::PointRegionSymbols sym) | |
Point (QtRegionSourceKernel *factory, WorldCanvas *wc, double x, double y, bool hold_signals=false, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_DOT) | |
carry over from QtRegion... | |
bool | setMarker (QtMouseToolNames::PointRegionSymbols sym) |
int | clickHandle (double, double) const |
bool | clickWithin (double x, double y) const |
region::PointInfo | checkPoint (double x, double y) const |
returns point state (Region::PointLocation) | |
unsigned int | mouseMovement (double x, double y, bool other_selected) |
returns mouse movement state | |
void | resize (double, double) |
AnnotationBase * | annotation () const |
bool | degenerate () const |
points cannot be degenerate... | |
region::RegionTypes | type () const |
fetch region type... | |
void | releaseSignals () |
Protected Member Functions | |
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 | drawRegion (bool) |
std::list < std::tr1::shared_ptr < RegionInfo > > * | generate_dds_centers () |
Protected Attributes | |
QtMouseToolNames::PointRegionSymbols | marker_ |
Static Protected Attributes | |
static const int | radius |
Private Member Functions | |
void | draw_arrow (PixelCanvas *, int, int, int, int, int, int) |
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.
casa::viewer::Point::Point | ( | WorldCanvas * | wc, |
QtRegionDock * | d, | ||
double | x, | ||
double | y, | ||
QtMouseToolNames::PointRegionSymbols | sym | ||
) | [inline] |
casa::viewer::Point::Point | ( | QtRegionSourceKernel * | factory, |
WorldCanvas * | wc, | ||
double | x, | ||
double | y, | ||
bool | hold_signals = false , |
||
QtMouseToolNames::PointRegionSymbols | sym = QtMouseToolNames::SYM_DOT |
||
) | [inline] |
AnnotationBase* casa::viewer::Point::annotation | ( | ) | const |
Reimplemented from casa::viewer::Rectangle.
region::PointInfo casa::viewer::Point::checkPoint | ( | double | x, |
double | y | ||
) | const [virtual] |
returns point state (Region::PointLocation)
Reimplemented from casa::viewer::Rectangle.
int casa::viewer::Point::clickHandle | ( | double | , |
double | |||
) | const [inline] |
Reimplemented from casa::viewer::Rectangle.
bool casa::viewer::Point::clickWithin | ( | double | x, |
double | y | ||
) | const |
Reimplemented from casa::viewer::Rectangle.
bool casa::viewer::Point::degenerate | ( | ) | const [inline, virtual] |
points cannot be degenerate...
Reimplemented from casa::viewer::Region.
void casa::viewer::Point::draw_arrow | ( | PixelCanvas * | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | |||
) | [private] |
void casa::viewer::Point::drawRegion | ( | bool | ) | [protected, virtual] |
Reimplemented from casa::viewer::Rectangle.
virtual void casa::viewer::Point::fetch_region_details | ( | region::RegionTypes & | type, |
std::vector< std::pair< int, int > > & | pixel_pts, | ||
std::vector< std::pair< double, double > > & | world_pts | ||
) | const [protected, virtual] |
Reimplemented from casa::viewer::Rectangle.
std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::Point::generate_dds_centers | ( | ) | [protected, virtual] |
Reimplemented from casa::viewer::Rectangle.
unsigned int casa::viewer::Point::mouseMovement | ( | double | x, |
double | y, | ||
bool | other_selected | ||
) |
returns mouse movement state
Reimplemented from casa::viewer::Rectangle.
void casa::viewer::Point::releaseSignals | ( | ) | [virtual] |
Reimplemented from casa::viewer::Region.
void casa::viewer::Point::resize | ( | double | , |
double | |||
) | [inline] |
Reimplemented from casa::viewer::Rectangle.
bool casa::viewer::Point::setMarker | ( | QtMouseToolNames::PointRegionSymbols | sym | ) | [virtual] |
Reimplemented from casa::viewer::Region.
region::RegionTypes casa::viewer::Point::type | ( | ) | const [inline, virtual] |
fetch region type...
Reimplemented from casa::viewer::Rectangle.
Definition at line 88 of file Point.h.
References casa::viewer::region::PointRegion.
const int casa::viewer::Point::radius [static, protected] |