29 #ifndef REGION_QTREGIONSOURCE_H_
30 #define REGION_QTREGIONSOURCE_H_
41 class QtDisplayPanelGui;
72 const QList<double> &world_x,
const QList<double> &world_y,
73 const QList<int> &pixel_x,
const QList<int> &pixel_y,
74 const QString &linecolor,
const QString &text,
const QString &font,
int fontsize,
int fontstyle );
76 const QList<int> &pixel_x,
const QList<int> &pixel_y );
78 const QList<double> &world_x,
const QList<double> &world_y,
79 const QList<int> &pixel_x,
const QList<int> &pixel_y,
80 const QString &linecolor,
const QString &text,
const QString &font,
int fontsize,
int fontstyle );
81 void newCorners(
double,
double,
double,
double);
86 void adjustPosition(
double blcx,
double blcy,
double trcx,
double trcy );
This class represents an annotation of an elliptical (in position coordinates) region specified in an...
void load_crtf_regions(WorldCanvas *, const QString &path)
QtMouseToolNames::PointRegionSymbols currentPointSymbolType() const
void regionUpdateResponse(int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
void dtorCalled(const dtorNotifier *)
inherited pure-virtual from dtorNotifiee, removes deleted regions...
This class represents an annotation for rectangular (in position coordinates) region specified in an ...
void regionCreated(int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
virtual Type type()
Return the type enum.
QtRegionSource(RegionCreator *rc, QtDisplayPanelGui *panel)
This class represents a single polygon (in position coordinates) annotation specified in an ascii reg...
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
shared_kernel_ptr_type kernel()
void adjustPosition(double blcx, double blcy, double trcx, double trcy)
Used to change the position of the source.
std::shared_ptr< Rectangle > point(RegionCreator *rc, WorldCanvas *wc, double x, double y, QtMouseToolNames::PointRegionSymbols sym, int size)
This class represents a single polyline (in position coordinates) annotation specified in an ascii re...
void newCorners(double, double, double, double)
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
std::shared_ptr< Polyline > polyline(RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
RegionSourceKernel::shared_kernel_ptr_type shared_kernel_ptr_type
Represents a symbol annotation.
All regions are specified in "linear coordinates", not "pixel coordinates".
void load_crtf_polyline(WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnPolyline *polyline)
std::string path(const std::string &name)
void updateRegionState(QtDisplayData *)
The main display window for the Qt version of the viewer.
std::shared_ptr< Rectangle > ellipse(RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
ellipse is derived from rectangle...
std::shared_ptr< PVLine > pvline(RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
void revokeRegion(Region *r)
void loadRegions(const QString &path, const QString &type)
void regionUpdate(int, viewer::region::RegionChanges, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
std::shared_ptr< Rectangle > rectangle(RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
std::shared_ptr< Polygon > polygon(RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
QtRegionSourceKernel(QtDisplayPanelGui *panel)
std::map< Region *, RegionCreator * > creator_of_region
Implementation of drawing in world coordinates on top of a PixelCanvas.
QtDisplayPanelGui * panel_
void load_crtf_polygon(WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnPolygon *polygon)
void load_crtf_rectangle(WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnRectBox *box)
void load_crtf_ellipse(WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnEllipse *ellipse)
void load_crtf_point(WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnSymbol *symbol)