casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes
casa::RegionTool::State Class Reference

#include <RegionTool.h>

List of all members.

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
bool exists (viewer::Region *) const
viewer::region::region_list_typeregions ()
 get the number of regions by a specific tool
viewer::region::region_list_typeregions (RegionTool *tool)
std::tr1::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::tr1::shared_ptr
< viewer::region::region_list_type > > 
state_count_type

Private Member Functions

std::tr1::shared_ptr
< viewer::region::region_list_type
filter (std::tr1::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 78 of file RegionTool.h.

Definition at line 77 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 ( const State ) [inline, private]

Definition at line 74 of file RegionTool.h.

casa::RegionTool::State::State ( ) [inline, private]

Definition at line 75 of file RegionTool.h.


Member Function Documentation

get the number of regions in a particular state

void casa::RegionTool::State::insert ( RegionTool tool,
viewer::Region region,
const viewer::region::PointInfo state 
)
void* casa::RegionTool::State::operator new ( size_t  ) [private]

Definition at line 64 of file RegionTool.h.

References refresh_count.

get the number of regions by a specific tool

Definition at line 54 of file RegionTool.h.

References all_regions.

Definition at line 62 of file RegionTool.h.

References wc_.

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

Definition at line 60 of file RegionTool.h.

References x_.

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

Definition at line 61 of file RegionTool.h.

References y_.


Member Data Documentation

Definition at line 87 of file RegionTool.h.

Referenced by regions().

Definition at line 86 of file RegionTool.h.

Definition at line 88 of file RegionTool.h.

Definition at line 82 of file RegionTool.h.

Referenced by refresh().

Definition at line 84 of file RegionTool.h.

Definition at line 85 of file RegionTool.h.

Definition at line 80 of file RegionTool.h.

Referenced by wc().

double casa::RegionTool::State::x_ [private]

Definition at line 81 of file RegionTool.h.

Referenced by x().

double casa::RegionTool::State::y_ [private]

Definition at line 81 of file RegionTool.h.

Referenced by y().


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