geopsy/GraphicWindow.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of geopsy.
00004 **
00005 **  This file may be distributed and/or modified under the terms of the
00006 **  GNU General Public License version 2 or 3 as published by the Free
00007 **  Software Foundation and appearing in the file LICENSE.GPL included
00008 **  in the packaging of this file.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 **  more details.
00014 **
00015 **  You should have received a copy of the GNU General Public License
00016 **  along with this program. If not, see <http://www.gnu.org/licenses/>.
00017 **
00018 **  See http://www.geopsy.org for more information.
00019 **
00020 **  Created : 2003-11-10
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 #ifndef GRAPHICWINDOW_H
00028 #define GRAPHICWINDOW_H
00029 
00030 #include <GeopsyGui.h>
00031 
00032 class MagnifierSignal;
00033 class GraphicWindowControls;
00034 
00035 class GraphicWindow: public AbstractGraphicWindow
00036 {
00037   Q_OBJECT
00038 public:
00039   GraphicWindow (QWidget* parent=0);
00040   ~GraphicWindow ();
00041 
00042   virtual void setWindowTitle(QString title);
00043   virtual void subPoolUpdate();
00044   virtual void signalsUpdate();
00045   virtual void fastFourierTransform(DoubleSignal::SignalType st);
00046 
00047   virtual SignalLayer * signalLayer() const {return _signalLayer;}
00048   virtual TimeWindowLayer * timeWindowLayer() const {return _timeWindowLayer;}
00049   virtual PickLayer * pickLayer() const {return _pickLayer;}
00050 
00051   void setLimits();
00052   void updateLabels();
00053 public slots:
00054   void getSelection(SubSignalPool& sel);
00055   void showMagnify(bool magnify, int context, double time, Signal * sig);
00056   void closeMagnify();
00057   void setMagnifyPosition(double x);
00058   void setMagnifySignal(Signal * sig);
00059 protected:
00060   virtual void focusInEvent(QFocusEvent * e);
00061 
00062   GraphicWindowControls * _controls;
00063   SignalLayer * _signalLayer;
00064   TimeWindowLayer * _timeWindowLayer;
00065   PickLayer * _pickLayer;
00066   SlopeEstimator * _slopeLayer;
00067  // Pointer to the window used to zoom in during picking, NULL if not in use
00068   MagnifierSignal * _magWin;
00069 };
00070 
00071 #endif /* GRAPHICWINDOW_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines