casa
$Rev:20696$
|
All regions are specified in "linear coordinates", not "pixel coordinates". More...
#include <PVLine.qo.h>
Classes | |
class | display_element |
one display_element is created for each image created from this PVLine... More... | |
Public Slots | |
void | createPVImage (const std::string &, const std::string &, int) |
void | cursorBoundary (QtDisplayPanel::CursorBoundaryCondition) |
void | cursorPosition (viewer::Position) |
Public Member Functions | |
~PVLine () | |
PVLine (WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2, bool hold_signals=false) | |
PVLine (QtRegionSourceKernel *rs, WorldCanvas *wc, double x1, double y1, double x2, double y2, bool hold_signals=false) | |
carry over from QtRegion... | |
bool | clickWithin (double x, double y) const |
int | clickHandle (double x, double y) const |
bool | doubleClick (double, double) |
region::PointInfo | checkPoint (double x, double y) const |
returns point state (Region::PointLocation) | |
unsigned int | mouseMovement (double x, double y, bool other_selected) |
returns mouse state (Region::MouseState) | |
int | moveHandle (int handle, double x, double y) |
for rectangles, resizing can change the handle... | |
void | move (double dx, double dy) |
void | resize (double, double) |
bool | valid_translation (double dx, double dy, double width_delta, double height_delta) |
void | linearCenter (double &x, double &y) const |
void | pixelCenter (double &x, double &y) const |
AnnotationBase * | annotation () const |
virtual bool | flag (MSAsRaster *msar) |
void | boundingRectangle (double &blcx, double &blcy, double &trcx, double &trcy) const |
in "linear" coordinates... | |
void | output (ds9writer &out) const |
region::RegionTypes | type () const |
fetch region type... | |
Protected Types | |
typedef std::list < display_element > | display_list_t |
Protected Member Functions | |
PVLine (const std::string &name, WorldCanvas *wc, QtRegionDock *d, double x1, double y1, double x2, double y2, bool hold_signals=false, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_UNKNOWN) | |
RegionInfo::stats_t * | get_ms_stats (MSAsRaster *msar, double x, double y) |
void | generate_nonimage_statistics (DisplayData *, std::list< RegionInfo > *) |
std::list < std::tr1::shared_ptr < RegionInfo > > * | generate_dds_centers () |
ImageRegion * | get_image_region (DisplayData *) const |
RegionInfo * | newInfoObject (ImageInterface< Float > *image, PrincipalAxesDD *) |
newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions to allow for specialized creation of the region info objects for display in "statistics"... | |
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 | drawRegion (bool) |
ImageInterface< Float > * | generatePVImage (ImageInterface< Float > *, std::string, int, bool) |
Protected Attributes | |
double | pt1_x |
double | pt1_y |
double | pt2_x |
double | pt2_y |
double | handle_delta_x |
double | handle_delta_y |
display_list_t | display_list |
Private Slots | |
void | dpg_deleted (QObject *) |
Private Member Functions | |
bool | within_vertex_handle (double x, double y) const |
unsigned int | check_handle (double x, double y) const |
std::string | worldCoordinateStrings (double x, double y) |
Private Attributes | |
QtDisplayPanelGui * | sub_dpg |
bool | draw_cursor_point |
double | cursor_point_x |
double | cursor_point_y |
All regions are specified in "linear coordinates", not "pixel coordinates".
This is necessary because "linear coordinates" scale with zooming whereas "pixel coordinates" do not. Unfortunately, this means that coordinate transformation is required each time the region is drawn.
Definition at line 53 of file PVLine.qo.h.
typedef std::list<display_element> casa::viewer::PVLine::display_list_t [protected] |
Definition at line 154 of file PVLine.qo.h.
casa::viewer::PVLine::PVLine | ( | WorldCanvas * | wc, |
QtRegionDock * | d, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
bool | hold_signals = false |
||
) |
casa::viewer::PVLine::PVLine | ( | QtRegionSourceKernel * | rs, |
WorldCanvas * | wc, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
bool | hold_signals = false |
||
) |
carry over from QtRegion...
hopefully, removed soon...
casa::viewer::PVLine::PVLine | ( | const std::string & | name, |
WorldCanvas * | wc, | ||
QtRegionDock * | d, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
bool | hold_signals = false , |
||
QtMouseToolNames::PointRegionSymbols | sym = QtMouseToolNames::SYM_UNKNOWN |
||
) | [protected] |
AnnotationBase* casa::viewer::PVLine::annotation | ( | ) | const |
void casa::viewer::PVLine::boundingRectangle | ( | double & | blcx, |
double & | blcy, | ||
double & | trcx, | ||
double & | trcy | ||
) | const |
in "linear" coordinates...
Referenced by clickWithin().
unsigned int casa::viewer::PVLine::check_handle | ( | double | x, |
double | y | ||
) | const [private] |
region::PointInfo casa::viewer::PVLine::checkPoint | ( | double | x, |
double | y | ||
) | const [virtual] |
returns point state (Region::PointLocation)
Implements casa::viewer::Region.
int casa::viewer::PVLine::clickHandle | ( | double | x, |
double | y | ||
) | const |
bool casa::viewer::PVLine::clickWithin | ( | double | x, |
double | y | ||
) | const [inline] |
Definition at line 64 of file PVLine.qo.h.
References boundingRectangle().
void casa::viewer::PVLine::createPVImage | ( | const std::string & | , |
const std::string & | , | ||
int | |||
) | [slot] |
void casa::viewer::PVLine::cursorPosition | ( | viewer::Position | ) | [slot] |
bool casa::viewer::PVLine::doubleClick | ( | double | , |
double | |||
) |
void casa::viewer::PVLine::dpg_deleted | ( | QObject * | ) | [private, slot] |
void casa::viewer::PVLine::drawRegion | ( | bool | ) | [protected, virtual] |
Implements casa::viewer::Region.
virtual void casa::viewer::PVLine::fetch_region_details | ( | region::RegionTypes & | type, |
std::vector< std::pair< int, int > > & | pixel_pts, | ||
std::vector< std::pair< double, double > > & | world_pts | ||
) | const [protected, virtual] |
Reimplemented from casa::viewer::Region.
virtual bool casa::viewer::PVLine::flag | ( | MSAsRaster * | msar | ) | [virtual] |
std::list<std::tr1::shared_ptr<RegionInfo> >* casa::viewer::PVLine::generate_dds_centers | ( | ) | [protected, virtual] |
Implements casa::viewer::Region.
void casa::viewer::PVLine::generate_nonimage_statistics | ( | DisplayData * | , |
std::list< RegionInfo > * | |||
) | [protected] |
ImageInterface<Float>* casa::viewer::PVLine::generatePVImage | ( | ImageInterface< Float > * | , |
std::string | , | ||
int | , | ||
bool | |||
) | [protected] |
ImageRegion* casa::viewer::PVLine::get_image_region | ( | DisplayData * | ) | const [protected] |
RegionInfo::stats_t* casa::viewer::PVLine::get_ms_stats | ( | MSAsRaster * | msar, |
double | x, | ||
double | y | ||
) | [protected] |
void casa::viewer::PVLine::linearCenter | ( | double & | x, |
double & | y | ||
) | const |
unsigned int casa::viewer::PVLine::mouseMovement | ( | double | x, |
double | y, | ||
bool | other_selected | ||
) |
returns mouse state (Region::MouseState)
void casa::viewer::PVLine::move | ( | double | dx, |
double | dy | ||
) |
int casa::viewer::PVLine::moveHandle | ( | int | handle, |
double | x, | ||
double | y | ||
) |
for rectangles, resizing can change the handle...
for rectangles, moving a handle is resizing...
RegionInfo* casa::viewer::PVLine::newInfoObject | ( | ImageInterface< Float > * | , |
PrincipalAxesDD * | |||
) | [protected, virtual] |
newInfoObject(...) is currently only used for PVLine regions, but it should be used for other regions to allow for specialized creation of the region info objects for display in "statistics"...
Reimplemented from casa::viewer::Region.
void casa::viewer::PVLine::output | ( | ds9writer & | out | ) | const |
void casa::viewer::PVLine::pixelCenter | ( | double & | x, |
double & | y | ||
) | const [virtual] |
Implements casa::viewer::Region.
void casa::viewer::PVLine::resize | ( | double | , |
double | |||
) |
region::RegionTypes casa::viewer::PVLine::type | ( | ) | const [inline, virtual] |
fetch region type...
Implements casa::viewer::Region.
Definition at line 101 of file PVLine.qo.h.
References casa::viewer::region::PVLineRegion.
bool casa::viewer::PVLine::valid_translation | ( | double | dx, |
double | dy, | ||
double | width_delta, | ||
double | height_delta | ||
) | [virtual] |
Implements casa::viewer::Region.
bool casa::viewer::PVLine::within_vertex_handle | ( | double | x, |
double | y | ||
) | const [private] |
std::string casa::viewer::PVLine::worldCoordinateStrings | ( | double | x, |
double | y | ||
) | [private] |
double casa::viewer::PVLine::cursor_point_x [private] |
Definition at line 165 of file PVLine.qo.h.
double casa::viewer::PVLine::cursor_point_y [private] |
Definition at line 165 of file PVLine.qo.h.
display_list_t casa::viewer::PVLine::display_list [protected] |
Definition at line 155 of file PVLine.qo.h.
bool casa::viewer::PVLine::draw_cursor_point [private] |
Definition at line 164 of file PVLine.qo.h.
double casa::viewer::PVLine::handle_delta_x [protected] |
Definition at line 138 of file PVLine.qo.h.
double casa::viewer::PVLine::handle_delta_y [protected] |
Definition at line 138 of file PVLine.qo.h.
double casa::viewer::PVLine::pt1_x [protected] |
Definition at line 135 of file PVLine.qo.h.
double casa::viewer::PVLine::pt1_y [protected] |
Definition at line 135 of file PVLine.qo.h.
double casa::viewer::PVLine::pt2_x [protected] |
Definition at line 136 of file PVLine.qo.h.
double casa::viewer::PVLine::pt2_y [protected] |
Definition at line 136 of file PVLine.qo.h.
QtDisplayPanelGui* casa::viewer::PVLine::sub_dpg [private] |
Definition at line 160 of file PVLine.qo.h.