OpendTect-6_4  6.4
uicoordsystem.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Bert
7  Date: Mar 2008
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "uitoolsmod.h"
13 #include "coordsystem.h"
14 #include "factory.h"
15 #include "uicompoundparsel.h"
16 #include "uidlggroup.h"
17 #include "survinfo.h"
18 
19 class SurveyInfo;
20 class uiGenInput;
21 class uiLabel;
22 class uiCheckBox;
23 
24 namespace Coords
25 {
26 
28 {
29 public:
31 
32  virtual bool initFields(const CoordSystem*)= 0;
33 
34  RefMan<CoordSystem> outputSystem() { return outputsystem_; }
36 
37  virtual HelpKey helpKey() const { return helpkey_; }
38 
39  void setSurveyInfo( const SurveyInfo* si )
40  { si_ = si; }
41 
42 protected:
46  const SurveyInfo* si_;
47 };
48 
49 
52 public:
54  bool onlyorthogonal,
55  bool onlyprojection,
56  const SurveyInfo*,
57  const Coords::CoordSystem*);
59  RefMan<CoordSystem> outputSystem() { return outputsystem_; }
61  bool acceptOK();
62 
63 private:
64 
65  void systemChangedCB(CallBacker*);
66 
71  const SurveyInfo* si_;
72 
74 };
75 
76 
79 public:
80  uiCoordSystemDlg(uiParent*,bool orthogonalonly,
81  bool projectiononly,const SurveyInfo*,
82  const CoordSystem*);
84 
85  RefMan<CoordSystem> getCoordSystem();
86 
87  static bool ensureGeographicTransformOK(uiParent*,SurveyInfo* si=0);
88 
89 protected:
90 
92 
93  bool acceptOK(CallBacker*);
94 
95 };
96 
97 
100 public:
102  bool orthogonalonly=true,
103  bool projectiononly=true,
104  const CoordSystem* crs=SI().getCoordSystem(),
105  const uiString& seltxt=uiStrings::sCoordSys());
106 
107  RefMan<CoordSystem> getCoordSystem() { return coordsystem_; }
108 
109 protected:
110 
112 
116 
117  BufferString getSummary() const;
118  void selCB(CallBacker*);
119 
120 };
121 
122 } //Namespace
uiCoordSystemDlg * dlg_
Definition: uicoordsystem.h:111
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< uiCoordSystem > coordsystemsuis_
Definition: uicoordsystem.h:69
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
uiGenInput * coordsystemsel_
Definition: uicoordsystem.h:67
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool orthogonalonly_
Definition: uicoordsystem.h:114
const SurveyInfo * si_
Definition: uicoordsystem.h:71
RefMan< CoordSystem > outputsystem_
Definition: uicoordsystem.h:73
RefMan< CoordSystem > coordsystem_
Definition: uicoordsystem.h:113
Definition: uistring.h:89
Definition: uiparent.h:26
Holds survey general information.
Definition: survinfo.h:45
Definition: coordsystem.h:31
Definition: helpview.h:49
Definition: uidlggroup.h:26
Definition: uidialog.h:42
Definition: uicoordsystem.h:77
#define mDefineFactory1ParamInClass(T, P, funcname)
Definition: factory.h:447
RefMan< CoordSystem > getCoordSystem()
Definition: uicoordsystem.h:107
Set of pointers to objects.
Definition: commontypes.h:32
Definition: uicoordsystem.h:98
uiCoordSystemSelGrp * coordsysselfld_
Definition: uicoordsystem.h:91
Definition: coordsystem.h:22
HelpKey helpkey_
Definition: uicoordsystem.h:45
General Input Element.
Definition: uigeninput.h:58
Definition: uicoordsystem.h:50
RefMan< CoordSystem > outputSystem()
After AcceptOK();.
Definition: uicoordsystem.h:59
const SurveyInfo & SI()
virtual HelpKey helpKey() const
Definition: uicoordsystem.h:37
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uilabel.h:24
const SurveyInfo * si_
Definition: uicoordsystem.h:46
RefMan< CoordSystem > outputSystem()
After AcceptOK();.
Definition: uicoordsystem.h:34
uiLabel * coordsystemdesc_
Definition: uicoordsystem.h:68
void setSurveyInfo(const SurveyInfo *si)
Definition: uicoordsystem.h:39
static uiString sCoordSys()
Definition: uistrings.h:256
Definition: uibutton.h:134
RefMan< CoordSystem > outputsystem_
Definition: uicoordsystem.h:44
Definition: ptrman.h:168
bool projectiononly_
Definition: uicoordsystem.h:115
Definition: uicoordsystem.h:27
ManagedObjectSet< IOPar > coordsystempars_
Definition: uicoordsystem.h:70

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019