OpendTect-6_4  6.4
uisip.h
Go to the documentation of this file.
1 #ifndef uisip_h
2 #define uisip_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Oct 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uidialog.h"
17 #include "uigroup.h"
18 #include "ranges.h"
19 
20 class LatLong;
21 class SurveyInfo;
22 class TrcKeyZSampling;
23 class uiDialog;
24 
25 
26 /*\brief Interface for survey info provider
27 
28  The survey setup can be delivered by scanning files (SEG-Y) or by querying
29  data stores like SeisWorks, Petrel, .... Another idea not implemented may be
30  to read a simple ascii file. In any case, this is the interface. The
31  implementation should be added to the factory using
32  uiSurveyInfoEditor::addInfoProvider.
33 
34  The logic is:
35 
36  * User gets list showing - if isAvailable() - your usrText() and icon
37  * User fills in your dialog
38  * On OK, getInfo is called
39  * If getInfo returns true, then you can stuff your own things in the
40  new SurveyInfo's IOPar if you define fillPar().
41 
42  In some cases, the provider can also allow actual data import. After
43  setting up the survey, the user can be automatically put into an import
44  facility. If that is the case, you have to return an IOPar by getImportPars()
45  that, when the time comes, will be used to call startImport().
46 
47  This class delivers everything in SI units.
48 
49  */
50 
52 {
53 public:
54 
55  virtual const char* usrText() const = 0;
56  virtual uiDialog* dialog(uiParent*) = 0;
57  virtual bool getInfo(uiDialog*,TrcKeyZSampling&,
58  Coord crd[3]) = 0;
59  virtual bool getLatLongAnchor(Coord&,LatLong&)
60  { return false; }
61  virtual bool getSRD(float&) { return false; }
63 
64  virtual void fillPar(IOPar&) {}
65  virtual bool isAvailable() const { return true; }
66 
67  enum TDInfo { Uknown, Time, Depth, DepthFeet };
68  virtual TDInfo tdInfo() const { return Uknown; }
69  virtual bool xyInFeet() const { return false; }
70  virtual const char* iconName() const { return 0; }
71 
72  virtual IOPar* getImportPars() const { return 0; }
73  virtual void startImport(uiParent*,const IOPar&) {}
74  virtual const char* importAskQuestion() const
75  { return "Proceed to import?"; }
76 
77  virtual IOPar* getCoordSystemPars() const { return 0; }
78 
79 };
80 
81 
82 #endif
virtual const char * iconName() const
Definition: uisip.h:70
#define mExpClass(module)
Definition: commondefs.h:160
Definition: uisip.h:67
virtual TDInfo tdInfo() const
Definition: uisip.h:68
virtual bool getSRD(float &)
return value must be in SI units (meters)
Definition: uisip.h:61
virtual IOPar * getImportPars() const
Definition: uisip.h:72
Definition: uiparent.h:26
Holds survey general information.
Definition: survinfo.h:45
A cartesian coordinate in 2D space.
Definition: coord.h:25
Geographical coordinates in Decimal Degrees but with conv to deg, min, sec.
Definition: latlong.h:27
virtual const char * importAskQuestion() const
Definition: uisip.h:74
virtual IOPar * getCoordSystemPars() const
Definition: uisip.h:77
Definition: uidialog.h:42
Definition: uisip.h:51
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
virtual void fillPar(IOPar &)
Definition: uisip.h:64
virtual bool isAvailable() const
Definition: uisip.h:65
virtual bool getLatLongAnchor(Coord &, LatLong &)
Definition: uisip.h:59
FixedString Time()
Definition: keystrs.h:132
virtual void startImport(uiParent *, const IOPar &)
Definition: uisip.h:73
TDInfo
Definition: uisip.h:67
virtual bool xyInFeet() const
Definition: uisip.h:69
FixedString Depth()
Definition: keystrs.h:60

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