29 #ifndef REGION_RECTANGLE_H_
30 #define REGION_RECTANGLE_H_
47 class QtRegionSourceKernel;
74 unsigned int mouseMovement(
double x,
double y,
bool other_selected );
78 int moveHandle(
int handle,
double x,
double y );
79 void move(
double dx,
double dy );
81 void resize(
double ,
double );
82 bool valid_translation(
double dx,
double dy,
double width_delta,
double height_delta );
92 void boundingRectangle(
double &blcx,
double &blcy,
double &trcx,
double &trcy )
const;
103 double y1,
double x2,
double y2,
118 std::vector<std::pair<double,double> > &world_pts )
const;
123 virtual void setCenter(
double &x,
double &y,
double &deltx,
double &delty) {
bool doubleClick(double, double)
Base class for annotations.
void linearCenter(double &x, double &y) const
Class for displaying data within an casacore::MS as a raster (gridded) image.
void resize(double, double)
Rectangle(const std::string &name, WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2, bool hold_signals=false, QtRegionState *supplied_state=0, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN)
virtual bool output_region(ds9writer &out, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts) const
void pixelCenter(double &x, double &y) const
bool valid_translation(double dx, double dy, double width_delta, double height_delta)
casacore::ImageStatistics< casacore::Float >::stat_list stats_t
region::PointInfo checkPoint(double x, double y) const
returns point state (Region::PointLocation)
void initHistogram()
-----------------—==================== from old QtRegion ====================-----------------— ...
casacore::ImageRegion * get_image_region(DisplayData *) const
void move(double dx, double dy)
int clickHandle(double x, double y) const
RegionInfo::stats_t * get_ms_stats(MSAsRaster *msar, double x, double y)
All regions are specified in "linear coordinates", not "pixel coordinates".
bool clickWithin(double x, double y) const
void generate_nonimage_statistics(DisplayData *, std::list< RegionInfo > *)
bool complete
Should this region be considered complete? Set to true by derived classes...
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
int moveHandle(int handle, double x, double y)
for rectangles, resizing can change the handle...
region::RegionTypes type() const
fetch region type...
std::list< std::shared_ptr< RegionInfo > > * generate_dds_centers()
virtual bool flag(MSAsRaster *msar)
void boundingRectangle(double &blcx, double &blcy, double &trcx, double &trcy) const
in "linear" coordinates...
unsigned int check_handle(double x, double y) const
Class to hold a region of interest in an image.
void output(ds9writer &out) const
AnnotationBase * annotation() const
Implementation of drawing in world coordinates on top of a PixelCanvas.
bool within_vertex_handle(double x, double y) const
All regions are specified in "linear coordinates", not "pixel coordinates".
const std::string name() const
user specified name
Base class for display objects.
virtual void setCenter(double &x, double &y, double &deltx, double &delty)
unsigned int mouseMovement(double x, double y, bool other_selected)
returns mouse state (Region::MouseState)
Rectangle(WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2, bool hold_signals=false)