OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
simpleplot.h
Go to the documentation of this file.
1 /*
2  Copyright 2014 Daniel McInnes
3 
4  This file is part of OpenMining.
5 
6  OpenMining is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OpenMining is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OpenMining. If not, see <http://www.gnu.org/licenses/>.
18 
19 */
20 
21  // simpleplot.cpp
22 #ifndef simpleplot_h
23 #define simpleplot_h
24 
25 // standard libs
26 #include <math.h>
27 
28 // Qt libs
29 #include <qapplication.h>
30 #include <qwt3d_surfaceplot.h>
31 #include <qwt3d_function.h>
32 
33 // my includes
34 #include "utils/Rectangle.h"
35 #include "Points3DGrid.h"
36 
37 class Cube;
38 class Longitudes;
39 typedef double (Longitudes::*fp_t)(double&, double&, uint32_t);
40 
41 class GridMappingFunction : public Qwt3D::Function
42 {
43 public:
44  GridMappingFunction(Qwt3D::SurfacePlot* pw, Points3DGrid& locations, utils::Rectangle_t& grid) : Function(pw), m_locations(locations), m_grid(grid)
45  {
46  }
47 
49  double operator()(double x, double y);
51 }
52 ;
53 
54 class Plot : public Qwt3D::SurfacePlot
55 {
56 public:
57  Plot(QStringList& args, Cube& cube, Points3DGrid& locations);
58  double (*funcptr)(double x, double y);
59 };
60 
61 #endif
Definition: Points3DGrid.h:22
double operator()(double x, double y)
Definition: simpleplot.cpp:107
Definition: simpleplot.h:54
GridMappingFunction(Qwt3D::SurfacePlot *pw, Points3DGrid &locations, utils::Rectangle_t &grid)
Definition: simpleplot.h:44
Definition: simpleplot.h:41
double(* funcptr)(double x, double y)
Definition: simpleplot.h:58
utils::Rectangle_t m_grid
Definition: simpleplot.h:50
Definition: Rectangle.h:36
Definition: Cube.h:38
double(Longitudes::* fp_t)(double &, double &, uint32_t)
Definition: simpleplot.h:39
Plot(QStringList &args, Cube &cube, Points3DGrid &locations)
Definition: simpleplot.cpp:47
Definition: elevation.h:70
Points3DGrid & m_locations
Definition: simpleplot.h:48