casa
5.7.0-16
|
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. More... | |
void | operator() (const WCMotionEvent &ev) |
default sends event to cout More... | |
void | operator() (const WCRefreshEvent &ev) |
original handler interface (still used for WCRefreshEvents) More... | |
void | loadRegions (const std::string &path, const std::string &type) |
std::shared_ptr< RegionTool > | tool (region::RegionTypes) |
fetch tool for a particular region type... More... | |
Public Member Functions inherited from casa::WCPositionEH | |
WCPositionEH () | |
Default Constructor Required. More... | |
virtual | ~WCPositionEH () |
Destructor. More... | |
Public Member Functions inherited from casa::WCMotionEH | |
WCMotionEH () | |
Default Constructor Required. More... | |
virtual | ~WCMotionEH () |
Destructor. More... | |
Public Member Functions inherited from casa::WCRefreshEH | |
WCRefreshEH () | |
Default Constructor Required. More... | |
virtual | ~WCRefreshEH () |
Destructor. More... | |
Public Member Functions inherited from casa::DisplayEH | |
virtual void | handleEvent (DisplayEvent &) |
Classes that contain this interface (i.e., derive from it) can override this method to implement actions for whatever types of DisplayEvent they're interested in. More... | |
virtual | ~DisplayEH () |
Private Types | |
typedef std::pair< double, double > | linear_point_type |
typedef std::map< ToolTypes, std::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... More... | |
bool | add_mark_select (RegionTool::State &state, region::RegionSelect) |
returns new region marked state... More... | |
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... More... | |
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... More... | |
QtDisplayPanelGui * | panel |
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.
|
private |
Definition at line 86 of file RegionToolManager.qo.h.
|
private |
Definition at line 88 of file RegionToolManager.qo.h.
Enumerator | |
---|---|
RectTool | |
PointTool | |
EllipseTool | |
PolyTool | |
PolylineTool | |
PVTool |
Definition at line 56 of file RegionToolManager.qo.h.
casa::viewer::RegionToolManager::RegionToolManager | ( | QtRegionSourceFactory * | rsf, |
QtDisplayPanelGui * | dpg, | ||
PanelDisplay * | pd | ||
) |
casa::viewer::RegionToolManager::~RegionToolManager | ( | ) |
|
private |
returns new region marked state...
|
private |
|
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 | ||
) |
|
virtual |
Required operators for event handling - these are called when events occur, and distribute the events to the "user-level" methods.
Implements casa::WCPositionEH.
|
virtual |
default sends event to cout
Implements casa::WCMotionEH.
|
virtual |
original handler interface (still used for WCRefreshEvents)
Implements casa::WCRefreshEH.
|
private |
|
private |
|
private |
std::shared_ptr<RegionTool> casa::viewer::RegionToolManager::tool | ( | region::RegionTypes | ) |
fetch tool for a particular region type...
Referenced by casa::viewer::ds9context::tool().
|
inlineprivate |
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.
|
private |
|
private |
region source factory is needed to retrieve the region dock which can provide a list of selected regions...
Definition at line 116 of file RegionToolManager.qo.h.
|
private |
Definition at line 98 of file RegionToolManager.qo.h.
|
private |
members for state when moving a region handle...
Definition at line 102 of file RegionToolManager.qo.h.
|
private |
Definition at line 103 of file RegionToolManager.qo.h.
|
private |
Definition at line 104 of file RegionToolManager.qo.h.
|
private |
Definition at line 97 of file RegionToolManager.qo.h.
|
private |
Definition at line 96 of file RegionToolManager.qo.h.
|
private |
Definition at line 99 of file RegionToolManager.qo.h.
|
private |
Definition at line 117 of file RegionToolManager.qo.h.
|
private |
Definition at line 87 of file RegionToolManager.qo.h.
|
private |
Definition at line 89 of file RegionToolManager.qo.h.