#include <display/Display/Options.h>
#include <display/region/PVLine.qo.h>
#include <display/Display/WorldCanvas.h>
#include <display/Display/PixelCanvas.h>
#include <display/Display/Position.h>
#include <display/Display/WorldCanvasHolder.h>
#include <display/Display/PanelDisplay.h>
#include <display/DisplayDatas/PrincipalAxesDD.h>
#include <display/QtViewer/QtDisplayData.qo.h>
#include <images/Regions/WCBox.h>
#include <display/ds9/ds9writer.h>
#include <imageanalysis/Annotations/AnnRectBox.h>
#include <coordinates/Coordinates/CoordinateUtil.h>
#include <guitools/Histogram/BinPlotWidget.qo.h>
#include <display/DisplayDatas/MSAsRaster.h>
#include <display/DisplayErrors.h>
#include <imageanalysis/ImageAnalysis/PVGenerator.h>
#include <display/QtViewer/QtDisplayPanelGui.qo.h>
#include <display/region/QtRegionDock.qo.h>
#include <casa/Exceptions/Error.h>
#include <casa/Quanta/MVAngle.h>
using namespace casacore;
PVLine::PVLine( WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2,
bool hold_signals ) : Region( "p/v line", wc, d, hold_signals,
new QtPVLineState(QString("p/v line")) ),
pt1_x(x1), pt1_y(y1), pt2_x(x2), pt2_y(y2), display_width(0),
sub_dpg(0), draw_cursor_point(false) {
PVLine::PVLine( QtRegionSourceKernel *rs, WorldCanvas *wc, double x1, double y1, double x2, double y2,
bool hold_signals) : Region( "p/v line", wc, rs->dock( ), hold_signals,
new QtPVLineState(QString("p/v line")) ),
pt2_x(x2), pt2_y(y2), display_width(0), sub_dpg(0), draw_cursor_point(false) {
mystate->setRegion(this);
PVLine::PVLine( const std::string &name, WorldCanvas *wc, QtRegionDock *d, double x1,
double y1, double x2, double y2, bool hold_signals,