spac2disp/SpacSelector.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of spac2disp.
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 : 2004-06-07
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef SpacSelector_H
00029 #define SpacSelector_H
00030 
00031 #include <QVector>
00032 
00033 #include <QGpCoreWave.h>
00034 #include <SciFigs.h>
00035 
00036 class Spac2DispOptions;
00037 
00038 class SpacSelector : public GraphicSheetMenu
00039 {
00040   Q_OBJECT
00041 public:
00042   SpacSelector(QWidget * parent=0);
00043   ~SpacSelector();
00044   bool createObjects(AutocorrCurves * autocorr);
00045   Spac2DispOptions * options;
00046   CurveBrowser * curves;
00047 
00048   void setMaximumSolutionCount(int c) {_maxSolutionCount=c;}
00049 public slots:
00050   void setK();
00051   void inverse();
00052   void inverseAt();
00053   void selectSamples();
00054   void saveSelection();
00055   void radiusScroll_valueChanged();
00056 protected:
00057   virtual void closeEvent(QCloseEvent *);
00058 private:
00059   Curve<Point2D>& limitsSolutionsCurve(int index);
00060 
00061   AutocorrCurves * _autocorr;
00062   AutocorrCurves * _selAutocorr;
00063   int _lastCurRing;
00064   int _maxSolutionCount;
00065   IrregularGrid2DPlot * _gridLayer;
00066   LineLayer * _limitsSolutionsLayer;
00067   QVector<LineLayer *> _spacLayers;
00068 };
00069 
00070 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines