casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::viewer::QtRegionSourceKernel Class Reference

#include <QtRegionSource.qo.h>

Inheritance diagram for casa::viewer::QtRegionSourceKernel:
casa::viewer::RegionSourceKernel casa::viewer::dtorNotifiee

Public Slots

void adjustPosition (double blcx, double blcy, double trcx, double trcy)
 Used to change the position of the source. More...
 

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)
 
QtRegionDockdock ()
 
int numFrames () const
 
 ~QtRegionSourceKernel ()
 
void revokeRegion (Region *r)
 
void dtorCalled (const dtorNotifier *)
 inherited pure-virtual from dtorNotifiee, removes deleted regions... More...
 
- Public Member Functions inherited from casa::viewer::RegionSourceKernel
 RegionSourceKernel ()
 
virtual ~RegionSourceKernel ()
 
virtual void generateExistingRegionUpdates ()
 re-generate regionUpdateResponse() signals for existing regions... More...
 
- Public Member Functions inherited from casa::viewer::dtorNotifiee
 dtorNotifiee ()
 
virtual ~dtorNotifiee ()
 

Protected Slots

void loadRegions (const QString &path, const QString &type)
 
void updateRegionState (QtDisplayData *)
 

Protected Member Functions

std::shared_ptr< Rectanglerectangle (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
 
std::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
 
std::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)
 
std::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
 
std::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)
 
std::shared_ptr< PVLinepvline (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
 
std::shared_ptr< Rectangleellipse (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
 ellipse is derived from rectangle... More...
 
std::shared_ptr< Rectanglepoint (RegionCreator *rc, WorldCanvas *wc, double x, double y, QtMouseToolNames::PointRegionSymbols sym, int size)
 
QtMouseToolNames::PointRegionSymbols currentPointSymbolType () const
 
- Protected Member Functions inherited from casa::viewer::RegionSourceKernel
void register_new_region (Region *)
 register region for dtor callback, and add to list of created regions... More...
 

Private Member Functions

void load_crtf_regions (WorldCanvas *, const QString &path)
 
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)
 
void load_crtf_polygon (WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnPolygon *polygon)
 
void load_crtf_polyline (WorldCanvas *wc, casacore::MDirection::Types cstype, const AnnPolyline *polyline)
 

Private Attributes

QtDisplayPanelGuipanel_
 
std::map< Region
*, RegionCreator * > 
creator_of_region
 

Friends

class QtRegionSource
 

Additional Inherited Members

- Public Types inherited from casa::viewer::RegionSourceKernel
typedef std::shared_ptr
< RegionSourceKernel
shared_kernel_ptr_type
 
- Protected Attributes inherited from casa::viewer::RegionSourceKernel
std::list< Region * > created_regions
 

Detailed Description

Definition at line 55 of file QtRegionSource.qo.h.

Constructor & Destructor Documentation

casa::viewer::QtRegionSourceKernel::QtRegionSourceKernel ( QtDisplayPanelGui panel)
casa::viewer::QtRegionSourceKernel::~QtRegionSourceKernel ( )

Member Function Documentation

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
protectedvirtual
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.

std::shared_ptr<Rectangle> casa::viewer::QtRegionSourceKernel::ellipse ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedvirtual

ellipse is derived from rectangle...

so while this should be "std::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 "std::shared_ptr<Region>"...

Implements casa::viewer::RegionSourceKernel.

void casa::viewer::QtRegionSourceKernel::load_crtf_ellipse ( WorldCanvas wc,
casacore::MDirection::Types  cstype,
const AnnEllipse ellipse 
)
private
void casa::viewer::QtRegionSourceKernel::load_crtf_point ( WorldCanvas wc,
casacore::MDirection::Types  cstype,
const AnnSymbol symbol 
)
private
void casa::viewer::QtRegionSourceKernel::load_crtf_polygon ( WorldCanvas wc,
casacore::MDirection::Types  cstype,
const AnnPolygon polygon 
)
private
void casa::viewer::QtRegionSourceKernel::load_crtf_polyline ( WorldCanvas wc,
casacore::MDirection::Types  cstype,
const AnnPolyline polyline 
)
private
void casa::viewer::QtRegionSourceKernel::load_crtf_rectangle ( WorldCanvas wc,
casacore::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 
)
protectedslot
void casa::viewer::QtRegionSourceKernel::newCorners ( double  ,
double  ,
double  ,
double   
)
signal
int casa::viewer::QtRegionSourceKernel::numFrames ( ) const
virtual

Reimplemented from casa::viewer::RegionSourceKernel.

std::shared_ptr<Rectangle> casa::viewer::QtRegionSourceKernel::point ( RegionCreator rc,
WorldCanvas wc,
double  x,
double  y,
QtMouseToolNames::PointRegionSymbols  sym,
int  size 
)
protectedvirtual
std::shared_ptr<Polygon> casa::viewer::QtRegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
)
protectedvirtual
std::shared_ptr<Polygon> casa::viewer::QtRegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
)
protectedvirtual
std::shared_ptr<Polyline> casa::viewer::QtRegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
)
protectedvirtual
std::shared_ptr<Polyline> casa::viewer::QtRegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
)
protectedvirtual
std::shared_ptr<PVLine> casa::viewer::QtRegionSourceKernel::pvline ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedvirtual
std::shared_ptr<Rectangle> casa::viewer::QtRegionSourceKernel::rectangle ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedvirtual
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
void casa::viewer::QtRegionSourceKernel::show1DSliceTool ( )
signal
void casa::viewer::QtRegionSourceKernel::updateRegionState ( QtDisplayData )
protectedslot

Friends And Related Function Documentation

friend class QtRegionSource
friend

Definition at line 89 of file QtRegionSource.qo.h.

Member Data Documentation

std::map<Region*,RegionCreator*> casa::viewer::QtRegionSourceKernel::creator_of_region
private

Definition at line 126 of file QtRegionSource.qo.h.

QtDisplayPanelGui* casa::viewer::QtRegionSourceKernel::panel_
private

Definition at line 124 of file QtRegionSource.qo.h.


The documentation for this class was generated from the following file: