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

#include <RegionTool.h>

Public Member Functions

 State (WorldCanvas *wc, double X, double Y)
 
void insert (RegionTool *tool, viewer::Region *region, const viewer::region::PointInfo &state)
 
unsigned int count (viewer::region::PointLocation state)
 get the number of regions in a particular state More...
 
bool exists (viewer::Region *) const
 
viewer::region::region_list_typeregions ()
 get the number of regions by a specific tool More...
 
viewer::region::region_list_typeregions (RegionTool *tool)
 
std::shared_ptr
< viewer::region::region_list_type
regions (viewer::region::PointLocation loc, viewer::region::RegionSelect select)
 
viewer::region::PointInfo state (viewer::Region *region)
 
double x () const
 
double y () const
 
WorldCanvaswc ()
 
void refresh ()
 
 ~State ()
 

Private Types

typedef std::map< RegionTool
*, viewer::region::region_list_type
tool_regions_type
 
typedef std::map
< viewer::region::PointLocation,
std::shared_ptr
< viewer::region::region_list_type > > 
state_count_type
 

Private Member Functions

std::shared_ptr
< viewer::region::region_list_type
filter (std::shared_ptr< viewer::region::region_list_type >, viewer::region::RegionSelect)
 
void * operator new (size_t)
 
 State (const State &)
 
 State ()
 

Private Attributes

WorldCanvaswc_
 
double x_
 
double y_
 
unsigned int refresh_count
 
region_map_type state_map
 
tool_regions_type tool_map
 
state_count_type count_map
 
viewer::region::region_list_type all_regions
 
viewer::region::region_list_type default_region_list
 

Detailed Description

Definition at line 45 of file RegionTool.h.

Member Typedef Documentation

Definition at line 88 of file RegionTool.h.

Definition at line 87 of file RegionTool.h.

Constructor & Destructor Documentation

casa::RegionTool::State::State ( WorldCanvas wc,
double  X,
double  Y 
)
inline

Definition at line 47 of file RegionTool.h.

casa::RegionTool::State::~State ( )
casa::RegionTool::State::State ( const State )
inlineprivate

Definition at line 84 of file RegionTool.h.

casa::RegionTool::State::State ( )
inlineprivate

Definition at line 85 of file RegionTool.h.

Member Function Documentation

unsigned int casa::RegionTool::State::count ( viewer::region::PointLocation  state)

get the number of regions in a particular state

bool casa::RegionTool::State::exists ( viewer::Region ) const
std::shared_ptr<viewer::region::region_list_type> casa::RegionTool::State::filter ( std::shared_ptr< viewer::region::region_list_type ,
viewer::region::RegionSelect   
)
private
void casa::RegionTool::State::insert ( RegionTool tool,
viewer::Region region,
const viewer::region::PointInfo state 
)
void* casa::RegionTool::State::operator new ( size_t  )
private
void casa::RegionTool::State::refresh ( )
inline

Definition at line 72 of file RegionTool.h.

References refresh_count.

viewer::region::region_list_type& casa::RegionTool::State::regions ( )
inline

get the number of regions by a specific tool

Definition at line 54 of file RegionTool.h.

References all_regions.

viewer::region::region_list_type& casa::RegionTool::State::regions ( RegionTool tool)
std::shared_ptr<viewer::region::region_list_type> casa::RegionTool::State::regions ( viewer::region::PointLocation  loc,
viewer::region::RegionSelect  select 
)
viewer::region::PointInfo casa::RegionTool::State::state ( viewer::Region region)
WorldCanvas* casa::RegionTool::State::wc ( )
inline

Definition at line 68 of file RegionTool.h.

References wc_.

double casa::RegionTool::State::x ( ) const
inline

Definition at line 62 of file RegionTool.h.

References x_.

double casa::RegionTool::State::y ( ) const
inline

Definition at line 65 of file RegionTool.h.

References y_.

Member Data Documentation

viewer::region::region_list_type casa::RegionTool::State::all_regions
private

Definition at line 97 of file RegionTool.h.

Referenced by regions().

state_count_type casa::RegionTool::State::count_map
private

Definition at line 96 of file RegionTool.h.

viewer::region::region_list_type casa::RegionTool::State::default_region_list
private

Definition at line 98 of file RegionTool.h.

unsigned int casa::RegionTool::State::refresh_count
private

Definition at line 92 of file RegionTool.h.

Referenced by refresh().

region_map_type casa::RegionTool::State::state_map
private

Definition at line 94 of file RegionTool.h.

tool_regions_type casa::RegionTool::State::tool_map
private

Definition at line 95 of file RegionTool.h.

WorldCanvas* casa::RegionTool::State::wc_
private

Definition at line 90 of file RegionTool.h.

Referenced by wc().

double casa::RegionTool::State::x_
private

Definition at line 91 of file RegionTool.h.

Referenced by x().

double casa::RegionTool::State::y_
private

Definition at line 91 of file RegionTool.h.

Referenced by y().


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