Source
xxxxxxxxxx
virtual void moved(const WCMotionEvent &/*ev*/, const viewer::region::region_list_type & /*selected_regions*/);
//# MWCPannerTool.h: MultiWorldCanvas panning tool
//# Copyright (C) 2000,2001,2002
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
namespace casa { //# NAMESPACE CASA - BEGIN
class WorldCanvas;
// <summary>
//
// </summary>
//
// <use visibility=export>
//
// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
// </reviewed>
//
// <prerequisites>
// <li> MWCTool
// </prerequisites>
//
// <etymology>
// MWCPannerTool stands for MultiWorldCanvas Panner Tool
// </etymology>
//
// <synopsis>
// This class provides panning functionality. The zoomed() function should
// be overriden to catch the event, if needed.
//
// The pan line is drawn by dragging the mouse from one point to
// another. The release of the mouse button triggers the movement of the
// image by the same displacement.
//
// The Tool also responds to the arrow keys, scroll wheel, et. al.,
// moving the zoom window in the same direction through the image.
// A constructor parameter is provided to turn these features off,
// if needed.
// </synopsis>
//
// <example>
// </example>
//
// <motivation>
// Panning is a common function in most visualization applications
// </motivation>
//
// <todo asof="2001/02/24">
// Nothing known
// </todo>
class MWCPannerTool : public MultiWCTool, public DTVisible {
public:
// Constructor
MWCPannerTool(Display::KeySym keysym = Display::K_Pointer_Button1,
casacore::Bool scrollingAllowed = true);
// Destructor
virtual ~MWCPannerTool();
// Reset to non-showing, non-active. Refreshes if necessary to erase