casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
casa::viewer::RegionSourceKernel Class Referenceabstract

#include <RegionSource.h>

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

Public Types

typedef std::shared_ptr
< RegionSourceKernel
shared_kernel_ptr_type
 

Public Member Functions

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

Protected Member Functions

virtual std::shared_ptr
< Rectangle
rectangle (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)=0
 
virtual std::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)=0
 
virtual std::shared_ptr< Polygonpolygon (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)=0
 
virtual std::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, double x1, double y1)=0
 
virtual std::shared_ptr< Polylinepolyline (RegionCreator *rc, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts)=0
 
virtual std::shared_ptr
< Rectangle
ellipse (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)=0
 
virtual std::shared_ptr
< Rectangle
point (RegionCreator *rc, WorldCanvas *wc, double x, double y, QtMouseToolNames::PointRegionSymbols sym, int size)=0
 
virtual std::shared_ptr< PVLinepvline (RegionCreator *rc, WorldCanvas *wc, double blc_x, double blc_y, double trc_x, double trc_y)=0
 
virtual
QtMouseToolNames::PointRegionSymbols 
currentPointSymbolType () const =0
 
void register_new_region (Region *)
 register region for dtor callback, and add to list of created regions... More...
 

Protected Attributes

std::list< Region * > created_regions
 

Friends

class RegionSource
 

Detailed Description

Definition at line 53 of file RegionSource.h.

Member Typedef Documentation

Definition at line 55 of file RegionSource.h.

Constructor & Destructor Documentation

casa::viewer::RegionSourceKernel::RegionSourceKernel ( )
inline

Definition at line 57 of file RegionSource.h.

virtual casa::viewer::RegionSourceKernel::~RegionSourceKernel ( )
virtual

Member Function Documentation

virtual QtMouseToolNames::PointRegionSymbols casa::viewer::RegionSourceKernel::currentPointSymbolType ( ) const
protectedpure virtual
virtual QtRegionDock* casa::viewer::RegionSourceKernel::dock ( )
inlinevirtual

Reimplemented in casa::viewer::QtRegionSourceKernel.

Definition at line 67 of file RegionSource.h.

void casa::viewer::RegionSourceKernel::dtorCalled ( const dtorNotifier )
virtual

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

Implements casa::viewer::dtorNotifiee.

Reimplemented in casa::viewer::QtRegionSourceKernel.

virtual std::shared_ptr<Rectangle> casa::viewer::RegionSourceKernel::ellipse ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedpure virtual
virtual void casa::viewer::RegionSourceKernel::generateExistingRegionUpdates ( )
virtual

re-generate regionUpdateResponse() signals for existing regions...

with same arguments as regionCreated(), for the benefit of a newly created (e.g. QtProfile) tool...

virtual int casa::viewer::RegionSourceKernel::numFrames ( ) const
inlinevirtual

Reimplemented in casa::viewer::QtRegionSourceKernel.

Definition at line 70 of file RegionSource.h.

virtual std::shared_ptr<Rectangle> casa::viewer::RegionSourceKernel::point ( RegionCreator rc,
WorldCanvas wc,
double  x,
double  y,
QtMouseToolNames::PointRegionSymbols  sym,
int  size 
)
protectedpure virtual
virtual std::shared_ptr<Polygon> casa::viewer::RegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
)
protectedpure virtual
virtual std::shared_ptr<Polygon> casa::viewer::RegionSourceKernel::polygon ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
)
protectedpure virtual
virtual std::shared_ptr<Polyline> casa::viewer::RegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
double  x1,
double  y1 
)
protectedpure virtual
virtual std::shared_ptr<Polyline> casa::viewer::RegionSourceKernel::polyline ( RegionCreator rc,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
)
protectedpure virtual
virtual std::shared_ptr<PVLine> casa::viewer::RegionSourceKernel::pvline ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedpure virtual
virtual std::shared_ptr<Rectangle> casa::viewer::RegionSourceKernel::rectangle ( RegionCreator rc,
WorldCanvas wc,
double  blc_x,
double  blc_y,
double  trc_x,
double  trc_y 
)
protectedpure virtual
void casa::viewer::RegionSourceKernel::register_new_region ( Region )
protected

register region for dtor callback, and add to list of created regions...

virtual void casa::viewer::RegionSourceKernel::revokeRegion ( Region r)
pure virtual

Friends And Related Function Documentation

friend class RegionSource
friend

Definition at line 77 of file RegionSource.h.

Member Data Documentation

std::list<Region*> casa::viewer::RegionSourceKernel::created_regions
protected

Definition at line 92 of file RegionSource.h.


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