casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Friends
casa::viewer::QtRegionSourceKernel Class Reference

#include <QtRegionSource.qo.h>

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

List of all members.

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)
QtRegionDockdock ()
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

std::tr1::shared_ptr< Rectanglerectangle (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
std::tr1::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
std::tr1::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)
std::tr1::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)
std::tr1::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)
std::tr1::shared_ptr< PVLinepvline (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
std::tr1::shared_ptr< Rectangleellipse (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)
 ellipse is derived from rectangle...
std::tr1::shared_ptr< Rectanglepoint (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

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

Friends

class QtRegionSource

Detailed Description

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


Constructor & Destructor Documentation


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.

Reimplemented from casa::viewer::RegionSourceKernel.

inherited pure-virtual from dtorNotifiee, removes deleted regions...

Reimplemented from casa::viewer::RegionSourceKernel.

std::tr1::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 "std::tr1::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::tr1::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_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]

Reimplemented from casa::viewer::RegionSourceKernel.

std::tr1::shared_ptr<Rectangle> casa::viewer::QtRegionSourceKernel::point ( RegionCreator rc,
WorldCanvas wc,
double  x,
double  y,
QtMouseToolNames::PointRegionSymbols  sym,
int  size 
) [protected, virtual]
std::tr1::shared_ptr<Polygon> casa::viewer::QtRegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
) [protected, virtual]
std::tr1::shared_ptr<Polygon> casa::viewer::QtRegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
) [protected, virtual]
std::tr1::shared_ptr<Polyline> casa::viewer::QtRegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
) [protected, virtual]
std::tr1::shared_ptr<Polyline> casa::viewer::QtRegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
) [protected, virtual]
std::tr1::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]
std::tr1::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]
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]

Friends And Related Function Documentation

friend class QtRegionSource [friend]

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


Member Data Documentation

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

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


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