casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
casa::viewer::Ellipse Class Reference

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

#include <Ellipse.h>

Inheritance diagram for casa::viewer::Ellipse:
casa::viewer::Rectangle casa::viewer::Region casa::viewer::dtorNotifier

List of all members.

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
AnnotationBaseannotation () const
bool flag (MSAsRaster *)
region::RegionTypes type () const
 fetch region type...

Protected Member Functions

std::list
< std::tr1::shared_ptr
< RegionInfo > > * 
generate_dds_centers ()
ImageRegionget_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)

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 49 of file Ellipse.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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.

Definition at line 62 of file Ellipse.h.

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.

Definition at line 78 of file Ellipse.h.

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.


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