00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef GEOEDITVIEW_H
00019 #define GEOEDITVIEW_H
00020
00021
00022 #include <odinqt/jdxwidget.h>
00023
00024 #include <odinpara/geometry.h>
00025
00026 #include "geoeditlabel.h"
00027
00028 #define MAGN_FACTOR 2
00029 #define MIN_MATRIX_SIZE 256
00030
00031 class GeoEditView : public QWidget {
00032 Q_OBJECT
00033
00034 public:
00035 GeoEditView(Geometry& geometry, ImageSet& pilot, unsigned int blowup, QWidget *parent);
00036
00037 private slots:
00038 void geometryChanged();
00039 void emitDone();
00040 void setProjection(bool) {geometryChanged();}
00041 void setCrossSection(bool) {geometryChanged();}
00042 void sagSet();
00043 void corSet();
00044 void axiSet();
00045
00046 void magnify0(int,int,int) {magnify(0);}
00047 void magnify1(int,int,int) {magnify(1);}
00048 void magnify2(int,int,int) {magnify(2);}
00049
00050 signals:
00051 void donePressed();
00052
00053
00054 private:
00055 void magnify(int index);
00056
00057 unsigned int coarse;
00058
00059 Geometry& geometry_cache;
00060 ImageSet& pilot_cache;
00061
00062 JDXwidget* blockwidget[n_geometry_modes];
00063
00064 GuiGridLayout* grid;
00065
00066 STD_list<GeoEditLabel*> labels;
00067
00068 buttonBox* projection;
00069 buttonBox* crosssect;
00070
00071 geometryMode old_mode;
00072 };
00073
00074 #endif