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

#include <RegionCreator.h>

Inheritance diagram for casa::viewer::RegionCreator:
casa::MultiPolylineTool casa::MultiPolyTool casa::MultiPVTool casa::MultiRectTool casa::MultiPolylineToolImpl casa::MultiPolyToolImpl casa::MultiPVToolImpl casa::MultiEllipseTool casa::MultiPointTool casa::MultiRectToolImpl casa::QtPolylineToolRegion casa::QtPTRegion casa::QtPVToolRegion casa::MultiEllipseToolImpl casa::MultiPointToolImpl casa::QtRTRegion casa::QtPolylineTool casa::QtPolyTool casa::QtPVTool casa::QtELRegion casa::QtPointRegion casa::QtRectTool casa::QtEllipseTool casa::QtCrossTool

Public Types

typedef std::list
< RegionCreator * > 
creator_list_type
 

Public Member Functions

virtual void revokeRegion (Region *)=0
 called when the user indicates that a region should be deleted... More...
 
virtual const std::set
< region::RegionTypes > & 
regionsCreated () const =0
 returns the set of region types which this creator will create More...
 
virtual bool create (region::RegionTypes, WorldCanvas *, const std::vector< std::pair< double, double > > &, const std::string &, viewer::region::TextPosition, const std::vector< int > &, const std::string &, int, int, const std::string &, const std::string &, viewer::region::LineStyle, unsigned int, bool, VOID *)=0
 
 RegionCreator ()
 DISPLAY_PURE_VIRTUAL(RegionCreator::create,true);. More...
 
virtual ~RegionCreator ()
 

Static Public Member Functions

static const creator_list_typefindCreator (region::RegionTypes type)
 

Private Types

typedef std::map
< region::RegionTypes,
creator_list_type * > 
creator_map_type
 

Static Private Attributes

static creator_map_type creator_map
 
static creator_list_type unsorted_creators
 

Detailed Description

Definition at line 14 of file RegionCreator.h.

Member Typedef Documentation

Definition at line 16 of file RegionCreator.h.

Definition at line 34 of file RegionCreator.h.

Constructor & Destructor Documentation

casa::viewer::RegionCreator::RegionCreator ( )
virtual casa::viewer::RegionCreator::~RegionCreator ( )
virtual

Member Function Documentation

virtual bool casa::viewer::RegionCreator::create ( region::RegionTypes  ,
WorldCanvas ,
const std::vector< std::pair< double, double > > &  ,
const std::string &  ,
viewer::region::TextPosition  ,
const std::vector< int > &  ,
const std::string &  ,
int  ,
int  ,
const std::string &  ,
const std::string &  ,
viewer::region::LineStyle  ,
unsigned  int,
bool  ,
VOID  
)
pure virtual
static const creator_list_type& casa::viewer::RegionCreator::findCreator ( region::RegionTypes  type)
static
virtual const std::set<region::RegionTypes>& casa::viewer::RegionCreator::regionsCreated ( ) const
pure virtual

returns the set of region types which this creator will create

Implemented in casa::MultiPVTool, casa::MultiRectTool, casa::MultiPolyTool, casa::MultiPolylineTool, casa::MultiEllipseTool, and casa::MultiPointTool.

virtual void casa::viewer::RegionCreator::revokeRegion ( Region )
pure virtual

called when the user indicates that a region should be deleted...

Implemented in casa::MultiPVTool, casa::MultiRectTool, casa::MultiPolyTool, and casa::MultiPolylineTool.

Member Data Documentation

creator_map_type casa::viewer::RegionCreator::creator_map
staticprivate

Definition at line 35 of file RegionCreator.h.

creator_list_type casa::viewer::RegionCreator::unsorted_creators
staticprivate

Definition at line 36 of file RegionCreator.h.


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