28 #ifndef REGION_POLYLINE_H_
29 #define REGION_POLYLINE_H_
47 typedef std::pair<double,double>
pt;
62 int moveHandle(
int handle,
double x,
double y );
63 void move(
double dx,
double dy );
64 void resize(
double ,
double );
65 bool valid_translation(
double dx,
double dy,
double width_delta,
double height_delta );
71 unsigned int mouseMovement(
double x,
double y,
bool other_selected );
79 void addVertex(
double x,
double y,
bool rewrite_last_point=
false );
85 void boundingRectangle(
double &blcx,
double &blcy,
double &trcx,
double &trcy )
const;
98 void addPlot( QWidget* parent,
string label );
124 std::vector<std::pair<double,double> > &world_pts )
const;
132 const QList<double> & worldX,
const QList<double>& worldY,
133 const QList<int> & pixelX,
const QList<int> & pixelY);
136 const QList<double> & worldX,
const QList<double>& worldY,
137 const QList<int> & pixelX,
const QList<int> & pixelY);
152 virtual void setCenter(
double &x,
double &y,
double &deltx,
double &delty);
casacore::ImageRegion * get_image_region(DisplayData *) const
int move_sizing_rectangle_handle(int handle, double x, double y)
Base class for annotations.
int moveHandle(int handle, double x, double y)
void update_drawing_state()
void addPlot(QWidget *parent, string label)
void update_drawing_bounds_rectangle()
void update_reference_bounds_rectangle()
AnnotationBase * annotation() const
const point_list & drawing_points() const
void resize(double, double)
int clickHandle(double x, double y) const
std::list< std::shared_ptr< RegionInfo > > * generate_dds_centers()
std::pair< double, double > pt
void polyLineRegionUpdate(int regionId, viewer::region::RegionChanges change, const QList< double > &worldX, const QList< double > &worldY, const QList< int > &pixelX, const QList< int > &pixelY)
bool clickWithin(double x, double y) const
void linearCenter(double &x, double &y) const
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 show(const variant &v)
unsigned int check_handle(double x, double y) const
void updatePolyLine(int regionId, viewer::region::RegionChanges, const QList< double > &worldX, const QList< double > &worldY, const QList< int > &pixelX, const QList< int > &pixelY)
Interface for DisplayDatas which have data arranged in axes.
bool valid_translation(double dx, double dy, double width_delta, double height_delta)
unsigned int mouseMovement(double x, double y, bool other_selected)
returns mouse state (Region::MouseState)
All regions are specified in "linear coordinates", not "pixel coordinates".
point_list _drawing_points_
void addVertex(double x, double y, bool rewrite_last_point=false)
void drawPositionMarker()
casacore::Slice functionality
virtual RegionInfo * newInfoObject(casacore::ImageInterface< float > *image, PrincipalAxesDD *)
newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions...
region::RegionTypes type() const
fetch region type...
virtual void setCenter(double &x, double &y, double &deltx, double &delty)
void setShowMarkerPosition(int regionId, bool show)
QMap< QString, SlicePlot * > slicePlots
void pixelCenter(double &x, double &y) const
Class to hold a region of interest in an image.
std::vector< pt > point_list
bool within_vertex_handle(double x, double y) const
Implementation of drawing in world coordinates on top of a PixelCanvas.
void boundingRectangle(double &blcx, double &blcy, double &trcx, double &trcy) const
return the drawing bounding rectangle...
Base class for display objects.
void move(double dx, double dy)
Polyline(WorldCanvas *wc, QtRegionDock *d, double x1, double y1)
Construction.
region::PointInfo checkPoint(double x, double y) const
returns point state (Region::PointLocation)
void setMarkerPosition(int regionId, int segmentIndex, float percentage)
Position marker.
void polyLineRegionChanged(viewer::Region *region, std::string changeType)
int move_vertex(int handle, double x, double y)
void update_reference_state(int transformations, int handle, int new_handle)
void output(ds9writer &out) const