29 #ifndef REGION_PVLINE_H_
30 #define REGION_PVLINE_H_
48 class QtRegionSourceKernel;
65 double blc_x, blc_y, trc_x, trc_y;
67 return x > blc_x && x < trc_x && y > blc_y && y < trc_y;
78 unsigned int mouseMovement(
double x,
double y,
bool other_selected );
82 int moveHandle(
int handle,
double x,
double y );
83 void move(
double dx,
double dy );
85 void resize(
double ,
double );
86 bool valid_translation(
double dx,
double dy,
double width_delta,
double height_delta );
96 void boundingRectangle(
double &blcx,
double &blcy,
double &trcx,
double &trcy )
const;
106 void createPVImage(
const std::string&,
const std::string&,
int);
119 double y1,
double x2,
double y2,
bool hold_signals=
false,
129 std::vector<std::pair<double,double> > &world_pts )
const;
void draw_pv_line(PixelCanvas *pc, bool selected=false)
void generate_nonimage_statistics(DisplayData *, std::list< RegionInfo > *)
Base class for annotations.
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
Class for displaying data within an casacore::MS as a raster (gridded) image.
void dpg_deleted(QObject *)
one display_element is created for each image created from this PVLine...
unsigned int check_handle(double x, double y) const
void cursorPosition(viewer::Position)
std::list< std::shared_ptr< RegionInfo > > * generate_dds_centers()
All regions are specified in "linear coordinates", not "pixel coordinates".
int moveHandle(int handle, double x, double y)
for rectangles, resizing can change the handle...
std::shared_ptr< casacore::ImageInterface< float > > generatePVImage(std::shared_ptr< casacore::ImageInterface< float > >, std::string, int, bool)
RegionInfo::stats_t * get_ms_stats(MSAsRaster *msar, double x, double y)
std::vector< double > calculate_offset_points(double slope, double off, double x, double y)
bool clickWithin(double x, double y) const
casacore::ImageStatistics< casacore::Float >::stat_list stats_t
void boundingRectangle(double &blcx, double &blcy, double &trcx, double &trcy) const
in "linear" coordinates...
bool doubleClick(double, double)
Interface for DisplayDatas which have data arranged in axes.
Base class defining interface to pixel-based output devices.
RegionInfo * newInfoObject(casacore::ImageInterface< float > *image, PrincipalAxesDD *)
newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions...
AnnotationBase * annotation() const
display_list_t display_list
All regions are specified in "linear coordinates", not "pixel coordinates".
QtDisplayPanelGui * sub_dpg
void output(ds9writer &out) const
virtual bool flag(MSAsRaster *msar)
The main display window for the Qt version of the viewer.
std::list< display_element > display_list_t
void linearCenter(double &x, double &y) const
unsigned int mouseMovement(double x, double y, bool other_selected)
returns mouse state (Region::MouseState)
display_element(const std::string &n)
void cursorBoundary(QtDisplayPanel::CursorBoundaryCondition)
CursorBoundaryCondition
included in cursor boundary signals...
void pixelCenter(double &x, double &y) const
Class to hold a region of interest in an image.
void move(double dx, double dy)
bool valid_translation(double dx, double dy, double width_delta, double height_delta)
int clickHandle(double x, double y) const
region::PointInfo checkPoint(double x, double y) const
returns point state (Region::PointLocation)
Implementation of drawing in world coordinates on top of a PixelCanvas.
void createPVImage(const std::string &, const std::string &, int)
const std::string name() const
user specified name
Base class for display objects.
casacore::ImageRegion * get_image_region(DisplayData *) const
PVLine(WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2, bool hold_signals=false)
region::RegionTypes type() const
fetch region type...
void resize(double, double)
Why not use casacore::MDirection? It's limited by valid astronomical coordinates on the sky Hz vs arc...
bool within_vertex_handle(double x, double y) const
std::string worldCoordinateStrings(double x, double y)