casa
$Rev:20696$
|
All regions are specified in "linear coordinates", not "pixel coordinates". More...
#include <Ellipse.h>
Public Member Functions | |
~Ellipse () | |
Ellipse (WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2) | |
Ellipse (QtRegionSourceKernel *factory, WorldCanvas *wc, double x1, double y1, double x2, double y2, bool hold_signals=false) | |
carry over from QtRegion... | |
unsigned int | mouseMovement (double x, double y, bool other_selected) |
returns mouse movement state | |
AnnotationBase * | annotation () const |
bool | flag (MSAsRaster *) |
region::RegionTypes | type () const |
fetch region type... | |
Protected Member Functions | |
std::list < std::tr1::shared_ptr < RegionInfo > > * | generate_dds_centers () |
ImageRegion * | get_image_region (DisplayData *) const |
void | generate_nonimage_statistics (DisplayData *, std::list< RegionInfo > *) |
Ellipse is derived from Rectangle, but we have no way to generate ellipse statistics for a measurement set (our only non-image display data)... | |
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) |
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::Ellipse::Ellipse | ( | WorldCanvas * | wc, |
QtRegionDock * | d, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
casa::viewer::Ellipse::Ellipse | ( | QtRegionSourceKernel * | factory, |
WorldCanvas * | wc, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
bool | hold_signals = false |
||
) |
carry over from QtRegion...
hopefully, removed soon...
AnnotationBase* casa::viewer::Ellipse::annotation | ( | ) | const |
Reimplemented from casa::viewer::Rectangle.
void casa::viewer::Ellipse::drawRegion | ( | bool | ) | [protected, virtual] |
Reimplemented from casa::viewer::Rectangle.
virtual void casa::viewer::Ellipse::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.
bool casa::viewer::Ellipse::flag | ( | MSAsRaster * | ) | [inline, virtual] |
Reimplemented from casa::viewer::Rectangle.
std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::Ellipse::generate_dds_centers | ( | ) | [protected, virtual] |
Reimplemented from casa::viewer::Rectangle.
void casa::viewer::Ellipse::generate_nonimage_statistics | ( | DisplayData * | , |
std::list< RegionInfo > * | |||
) | [inline, protected] |
Ellipse is derived from Rectangle, but we have no way to generate ellipse statistics for a measurement set (our only non-image display data)...
so we have to define this to prevent MS info being reported for the bounding rectangle of an Ellipse...
Reimplemented from casa::viewer::Rectangle.
ImageRegion* casa::viewer::Ellipse::get_image_region | ( | DisplayData * | ) | const [protected] |
Reimplemented from casa::viewer::Rectangle.
unsigned int casa::viewer::Ellipse::mouseMovement | ( | double | x, |
double | y, | ||
bool | other_selected | ||
) |
returns mouse movement state
Reimplemented from casa::viewer::Rectangle.
region::RegionTypes casa::viewer::Ellipse::type | ( | ) | const [inline, virtual] |
fetch region type...
Reimplemented from casa::viewer::Rectangle.
Definition at line 67 of file Ellipse.h.
References casa::viewer::region::EllipseRegion.