#include <QtRegionSource.qo.h>
Public Slots | |
| void | adjustPosition (double blcx, double blcy, double trcx, double trcy) |
| Used to change the position of the source. | |
Signals | |
| 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) |
| 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) |
| 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 | newCorners (double, double, double, double) |
| void | show1DSliceTool () |
Public Member Functions | |
| QtRegionSourceKernel (QtDisplayPanelGui *panel) | |
| QtRegionDock * | dock () |
| int | numFrames () const |
| ~QtRegionSourceKernel () | |
| void | revokeRegion (Region *r) |
| void | dtorCalled (const dtorNotifier *) |
| inherited pure-virtual from dtorNotifiee, removes deleted regions. | |
Protected Slots | |
| void | loadRegions (const QString &path, const QString &type) |
| void | updateRegionState (QtDisplayData *) |
Protected Member Functions | |
| SHARED_PTR< Rectangle > | rectangle (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y) |
| SHARED_PTR< Polygon > | polygon (RegionCreator *rc, WorldCanvas *wc, double x1, double y1) |
| SHARED_PTR< Polygon > | polygon (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts) |
| SHARED_PTR< Polyline > | polyline (RegionCreator *rc, WorldCanvas *wc, double x1, double y1) |
| SHARED_PTR< Polyline > | polyline (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts) |
| SHARED_PTR< PVLine > | pvline (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y) |
| 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. | |
| SHARED_PTR< Rectangle > | point (RegionCreator *rc, WorldCanvas *wc, double x, double y, QtMouseToolNames::PointRegionSymbols sym, int size) |
| QtMouseToolNames::PointRegionSymbols | currentPointSymbolType () const |
Private Member Functions | |
| void | load_crtf_regions (WorldCanvas *, const QString &path) |
| void | load_crtf_rectangle (WorldCanvas *wc, MDirection::Types cstype, const AnnRectBox *box) |
| void | load_crtf_ellipse (WorldCanvas *wc, MDirection::Types cstype, const AnnEllipse *ellipse) |
| void | load_crtf_point (WorldCanvas *wc, MDirection::Types cstype, const AnnSymbol *symbol) |
| void | load_crtf_polygon (WorldCanvas *wc, MDirection::Types cstype, const AnnPolygon *polygon) |
| void | load_crtf_polyline (WorldCanvas *wc, MDirection::Types cstype, const AnnPolyline *polyline) |
Private Attributes | |
| QtDisplayPanelGui * | panel_ |
| std::map< Region *, RegionCreator * > | creator_of_region |
Friends | |
| class | QtRegionSource |
Definition at line 55 of file QtRegionSource.qo.h.
| casa::viewer::QtRegionSourceKernel::QtRegionSourceKernel | ( | QtDisplayPanelGui * | panel | ) |
| casa::viewer::QtRegionSourceKernel::~QtRegionSourceKernel | ( | ) |
| void casa::viewer::QtRegionSourceKernel::adjustPosition | ( | double | blcx, | |
| double | blcy, | |||
| double | trcx, | |||
| double | trcy | |||
| ) | [slot] |
Used to change the position of the source.
| QtMouseToolNames::PointRegionSymbols casa::viewer::QtRegionSourceKernel::currentPointSymbolType | ( | ) | const [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| QtRegionDock* casa::viewer::QtRegionSourceKernel::dock | ( | ) | [virtual] |
Reimplemented from casa::viewer::RegionSourceKernel.
| void casa::viewer::QtRegionSourceKernel::dtorCalled | ( | const dtorNotifier * | ) | [virtual] |
inherited pure-virtual from dtorNotifiee, removes deleted regions.
.\.
Reimplemented from casa::viewer::RegionSourceKernel.
| SHARED_PTR<Rectangle> casa::viewer::QtRegionSourceKernel::ellipse | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | blc_x, | |||
| double | blc_y, | |||
| double | trc_x, | |||
| double | trc_y | |||
| ) | [protected, virtual] |
ellipse is derived from rectangle.
.. so while this should be "SHARED_PTR<Ellipse>" this would preclude the direct reuse of the Rectangle code (which only differs by region creation)... perhaps a case where smart pointers are not so smart (in not mirroring the inheritance hiearchy)... though perhaps it can be generalized to "SHARED_PTR<Region>"..\.
Implements casa::viewer::RegionSourceKernel.
| void casa::viewer::QtRegionSourceKernel::load_crtf_ellipse | ( | WorldCanvas * | wc, | |
| MDirection::Types | cstype, | |||
| const AnnEllipse * | ellipse | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::load_crtf_point | ( | WorldCanvas * | wc, | |
| MDirection::Types | cstype, | |||
| const AnnSymbol * | symbol | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::load_crtf_polygon | ( | WorldCanvas * | wc, | |
| MDirection::Types | cstype, | |||
| const AnnPolygon * | polygon | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::load_crtf_polyline | ( | WorldCanvas * | wc, | |
| MDirection::Types | cstype, | |||
| const AnnPolyline * | polyline | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::load_crtf_rectangle | ( | WorldCanvas * | wc, | |
| MDirection::Types | cstype, | |||
| const AnnRectBox * | box | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::load_crtf_regions | ( | WorldCanvas * | , | |
| const QString & | path | |||
| ) | [private] |
| void casa::viewer::QtRegionSourceKernel::loadRegions | ( | const QString & | path, | |
| const QString & | type | |||
| ) | [protected, slot] |
| void casa::viewer::QtRegionSourceKernel::newCorners | ( | double | , | |
| double | , | |||
| double | , | |||
| double | ||||
| ) | [signal] |
| int casa::viewer::QtRegionSourceKernel::numFrames | ( | ) | const [virtual] |
Reimplemented from casa::viewer::RegionSourceKernel.
| SHARED_PTR<Rectangle> casa::viewer::QtRegionSourceKernel::point | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | x, | |||
| double | y, | |||
| QtMouseToolNames::PointRegionSymbols | sym, | |||
| int | size | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<Polygon> casa::viewer::QtRegionSourceKernel::polygon | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| const std::vector< std::pair< double, double > > & | pts | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<Polygon> casa::viewer::QtRegionSourceKernel::polygon | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | x1, | |||
| double | y1 | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<Polyline> casa::viewer::QtRegionSourceKernel::polyline | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| const std::vector< std::pair< double, double > > & | pts | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<Polyline> casa::viewer::QtRegionSourceKernel::polyline | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | x1, | |||
| double | y1 | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<PVLine> casa::viewer::QtRegionSourceKernel::pvline | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | blc_x, | |||
| double | blc_y, | |||
| double | trc_x, | |||
| double | trc_y | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| SHARED_PTR<Rectangle> casa::viewer::QtRegionSourceKernel::rectangle | ( | RegionCreator * | rc, | |
| WorldCanvas * | wc, | |||
| double | blc_x, | |||
| double | blc_y, | |||
| double | trc_x, | |||
| double | trc_y | |||
| ) | [protected, virtual] |
Implements casa::viewer::RegionSourceKernel.
| void casa::viewer::QtRegionSourceKernel::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 | |||
| ) | [signal] |
| void casa::viewer::QtRegionSourceKernel::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 | |||
| ) | [signal] |
| void casa::viewer::QtRegionSourceKernel::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 | |||
| ) | [signal] |
| void casa::viewer::QtRegionSourceKernel::revokeRegion | ( | Region * | r | ) | [virtual] |
Implements casa::viewer::RegionSourceKernel.
| void casa::viewer::QtRegionSourceKernel::show1DSliceTool | ( | ) | [signal] |
| void casa::viewer::QtRegionSourceKernel::updateRegionState | ( | QtDisplayData * | ) | [protected, slot] |
friend class QtRegionSource [friend] |
Definition at line 89 of file QtRegionSource.qo.h.
std::map<Region*,RegionCreator*> casa::viewer::QtRegionSourceKernel::creator_of_region [private] |
Definition at line 126 of file QtRegionSource.qo.h.
Definition at line 124 of file QtRegionSource.qo.h.
1.6.1