casa
$Rev:20696$
|
the RegionCreator class now has static members which allow for the retrieval of lists of RegionCreator objects for creating each type of region (currently rectangle, polygon, ellipse, and point). More...
#include <RegionToolManager.qo.h>
Public Types | |
enum | ToolTypes { RectTool, PointTool, EllipseTool, PolyTool, PolylineTool, PVTool } |
Public Member Functions | |
RegionToolManager (QtRegionSourceFactory *rsf, QtDisplayPanelGui *dpg, PanelDisplay *pd) | |
~RegionToolManager () | |
void | operator() (const WCPositionEvent &ev) |
Required operators for event handling - these are called when events occur, and distribute the events to the "user-level" methods. | |
void | operator() (const WCMotionEvent &ev) |
default sends event to cout | |
void | operator() (const WCRefreshEvent &ev) |
original handler interface (still used for WCRefreshEvents) | |
void | loadRegions (const std::string &path, const std::string &type) |
std::tr1::shared_ptr< RegionTool > | tool (region::RegionTypes) |
fetch tool for a particular region type... | |
Private Types | |
typedef std::pair< double, double > | linear_point_type |
typedef std::map< ToolTypes, std::tr1::shared_ptr < RegionTool > > | tool_map |
Private Member Functions | |
region::RegionSelect | tool_to_select (RegionTool::RegionToolTypes type) const |
bool | inDrawArea (WorldCanvas *wc, const linear_point_type &new_blc, const linear_point_type &new_trc) const |
members for keeping track of marked (sticky-selected) regions... | |
bool | add_mark_select (RegionTool::State &state, region::RegionSelect) |
returns new region marked state... | |
void | clear_mark_select (RegionTool::State &state, region::RegionSelect) |
bool | setup_moving_regions (RegionTool::State &state, region::RegionSelect) |
void | setup_moving_regions_state (double linx, double liny, const region::region_list_type &) |
void | translate_moving_regions (WorldCanvas *wc, double dx, double dy) |
bool | process_double_click (RegionTool::State &state, region::RegionSelect) |
Private Attributes | |
PanelDisplay * | pd |
tool_map | tools |
region::region_list_type | moving_regions |
linear_point_type | moving_ref_point |
linear_point_type | moving_blc |
linear_point_type | moving_trc |
bool | moving_handle |
members for state when moving a region handle... | |
viewer::region::PointInfo | moving_handle_info |
viewer::Region * | moving_handle_region |
QtRegionSourceFactory * | factory |
region source factory is needed to retrieve the region dock which can provide a list of selected regions... |
the RegionCreator class now has static members which allow for the retrieval of lists of RegionCreator objects for creating each type of region (currently rectangle, polygon, ellipse, and point).
Definition at line 52 of file RegionToolManager.qo.h.
typedef std::pair<double,double> casa::viewer::RegionToolManager::linear_point_type [private] |
Definition at line 85 of file RegionToolManager.qo.h.
typedef std::map<ToolTypes,std::tr1::shared_ptr<RegionTool> > casa::viewer::RegionToolManager::tool_map [private] |
Definition at line 87 of file RegionToolManager.qo.h.
Definition at line 56 of file RegionToolManager.qo.h.
casa::viewer::RegionToolManager::RegionToolManager | ( | QtRegionSourceFactory * | rsf, |
QtDisplayPanelGui * | dpg, | ||
PanelDisplay * | pd | ||
) |
bool casa::viewer::RegionToolManager::add_mark_select | ( | RegionTool::State & | state, |
region::RegionSelect | |||
) | [private] |
returns new region marked state...
void casa::viewer::RegionToolManager::clear_mark_select | ( | RegionTool::State & | state, |
region::RegionSelect | |||
) | [private] |
bool casa::viewer::RegionToolManager::inDrawArea | ( | WorldCanvas * | wc, |
const linear_point_type & | new_blc, | ||
const linear_point_type & | new_trc | ||
) | const [private] |
members for keeping track of marked (sticky-selected) regions...
members for state when moving selected region...
void casa::viewer::RegionToolManager::loadRegions | ( | const std::string & | path, |
const std::string & | type | ||
) |
void casa::viewer::RegionToolManager::operator() | ( | const WCPositionEvent & | ev | ) | [virtual] |
Required operators for event handling - these are called when events occur, and distribute the events to the "user-level" methods.
Implements casa::WCPositionEH.
void casa::viewer::RegionToolManager::operator() | ( | const WCMotionEvent & | ev | ) | [virtual] |
default sends event to cout
Implements casa::WCMotionEH.
void casa::viewer::RegionToolManager::operator() | ( | const WCRefreshEvent & | ev | ) | [virtual] |
original handler interface (still used for WCRefreshEvents)
Implements casa::WCRefreshEH.
bool casa::viewer::RegionToolManager::process_double_click | ( | RegionTool::State & | state, |
region::RegionSelect | |||
) | [private] |
bool casa::viewer::RegionToolManager::setup_moving_regions | ( | RegionTool::State & | state, |
region::RegionSelect | |||
) | [private] |
void casa::viewer::RegionToolManager::setup_moving_regions_state | ( | double | linx, |
double | liny, | ||
const region::region_list_type & | |||
) | [private] |
std::tr1::shared_ptr<RegionTool> casa::viewer::RegionToolManager::tool | ( | region::RegionTypes | ) |
fetch tool for a particular region type...
region::RegionSelect casa::viewer::RegionToolManager::tool_to_select | ( | RegionTool::RegionToolTypes | type | ) | const [inline, private] |
Definition at line 78 of file RegionToolManager.qo.h.
References casa::RegionTool::ELLIPSETOOL, casa::RegionTool::POINTTOOL, casa::RegionTool::POLYLINETOOL, casa::RegionTool::POLYTOOL, casa::RegionTool::RECTTOOL, casa::viewer::region::SelectAny, casa::viewer::region::SelectEllipse, casa::viewer::region::SelectPoint, casa::viewer::region::SelectPoly, casa::viewer::region::SelectPolyline, and casa::viewer::region::SelectRect.
void casa::viewer::RegionToolManager::translate_moving_regions | ( | WorldCanvas * | wc, |
double | dx, | ||
double | dy | ||
) | [private] |
region source factory is needed to retrieve the region dock which can provide a list of selected regions...
Definition at line 115 of file RegionToolManager.qo.h.
Definition at line 97 of file RegionToolManager.qo.h.
bool casa::viewer::RegionToolManager::moving_handle [private] |
members for state when moving a region handle...
Definition at line 101 of file RegionToolManager.qo.h.
Definition at line 102 of file RegionToolManager.qo.h.
Definition at line 103 of file RegionToolManager.qo.h.
Definition at line 96 of file RegionToolManager.qo.h.
Definition at line 95 of file RegionToolManager.qo.h.
Definition at line 98 of file RegionToolManager.qo.h.
PanelDisplay* casa::viewer::RegionToolManager::pd [private] |
Definition at line 86 of file RegionToolManager.qo.h.
Definition at line 88 of file RegionToolManager.qo.h.