ODIN
geoeditview.h
1 /***************************************************************************
2  geoeditview.h - description
3  -------------------
4  begin : Mon Apr 15 18:40:55 CEST 2002
5  copyright : (C) 2000-2021 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef GEOEDITVIEW_H
19 #define GEOEDITVIEW_H
20 
21 
22 #include <odinqt/ldrwidget.h>
23 
24 #include <odinpara/geometry.h>
25 
26 #include "geoeditlabel.h"
27 
28 #define MAGN_FACTOR 2
29 #define MIN_MATRIX_SIZE 256
30 
31 class GeoEditView : public QWidget {
32  Q_OBJECT
33 
34  public:
35  GeoEditView(Geometry& geometry, ImageSet& pilot, unsigned int blowup, QWidget *parent);
36 
37  private slots:
38  void geometryChanged();
39  void emitDone();
40  void setProjection(bool) {geometryChanged();}
41  void setCrossSection(bool) {geometryChanged();}
42  void sagSet();
43  void corSet();
44  void axiSet();
45 
46  void magnify0(int,int,int) {magnify(0);}
47  void magnify1(int,int,int) {magnify(1);}
48  void magnify2(int,int,int) {magnify(2);}
49 
50  signals:
51  void donePressed();
52 
53 
54  private:
55  void magnify(int index);
56 
57  unsigned int coarse;
58 
59  Geometry& geometry_cache;
60  ImageSet& pilot_cache;
61 
62  LDRwidget* blockwidget[n_geometry_modes];
63 
64  GuiGridLayout* grid;
65 
66  STD_list<GeoEditLabel*> labels;
67 
68  buttonBox* projection;
69  buttonBox* crosssect;
70 
71  geometryMode old_mode;
72 };
73 
74 #endif
Geometry Settings.
Definition: geometry.h:179
geometryMode
Definition: geometry.h:56