OpendTect-6_4  6.4
uipickpartserv.h
Go to the documentation of this file.
1 #ifndef uipickpartserv_h
2 #define uipickpartserv_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: Feb 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uiapplserv.h"
17 #include "uistring.h"
18 
19 #include "bufstringset.h"
20 #include "trckeysampling.h"
21 #include "ranges.h"
22 #include "multiid.h"
23 
24 class BinIDValueSet;
25 class DataPointSet;
26 class RandLocGenPars;
27 class SurfaceInfo;
28 class uiImpExpPickSet;
29 class uiPickSetMan;
30 class uiPickSetMgr;
31 namespace Pick { class Set; class SetMgr; }
32 namespace PosInfo { class Line2DData; }
33 
34 
39 public:
42 
43  const char* name() const { return "Picks"; }
44 
45  // Services
46  void managePickSets();
47  Pick::Set* pickSet() { return ps_; }
48  void importSet();
49  void exportSet();
50 
51  bool storePickSets();
52  bool storePickSet(const Pick::Set&);
53  bool storePickSetAs(const Pick::Set&);
54  bool pickSetsStored() const;
55  void mergePickSets(MultiID&);
56 
57  void fetchHors(bool);
58  Pick::Set* loadSet(const MultiID&);
59  bool loadSets(TypeSet<MultiID>&,bool ispolygon);
61  const Pick::Set* createEmptySet(bool aspolygon);
62  bool create3DGenSet();
63  bool createRandom2DSet();
64  void setMisclassSet(const DataPointSet&);
65  void setPickSet(const Pick::Set&);
66  void fillZValsFrmHor(Pick::Set*,int);
67 
68  static int evGetHorInfo2D();
69  static int evGetHorInfo3D();
70  static int evGetHorDef3D();
71  static int evGetHorDef2D();
72  static int evFillPickSet();
73  static int evDisplayPickSet();
74 
75  // Interaction stuff
76  BinIDValueSet& genDef() { return gendef_; }
77  MultiID pickSetID() const { return picksetid_; }
78 
79  ObjectSet<SurfaceInfo>& horInfos() { return hinfos_; }
80  const ObjectSet<MultiID>& selHorIDs() const { return selhorids_; }
82  { return selhs_; }
83  MultiID horID() { return horid_; }
84 
85  TypeSet<BufferStringSet>& lineNames() { return linenms_; }
86  BufferStringSet& selectLines() { return selectlines_; }
87  TypeSet<Coord>& getPos2D() { return coords2d_; }
88  TypeSet< Interval<float> >& getHor2DZRgs() { return hor2dzrgs_; }
89 
90 protected:
91 
95 
102 
107 
111 
112  void survChangedCB(CallBacker*);
113  void importReadyCB(CallBacker*);
114  bool mkRandLocs2D(Pick::Set&,const RandLocGenPars&);
115 };
116 
117 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferStringSet & selectLines()
Definition: uipickpartserv.h:86
MultiID horID()
Definition: uipickpartserv.h:83
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< SurfaceInfo > hinfos_
Definition: uipickpartserv.h:96
base class for management of a Pick::SetMgr
Definition: uipicksetmgr.h:27
Set of data points with group selection.
Definition: datapointset.h:48
uiPickSetMgr & uipsmgr_
Definition: uipickpartserv.h:93
Surface info name/attribname with an ID (usually the EM-ID).
Definition: surfaceinfo.h:21
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
TypeSet< BufferStringSet > linenms_
Definition: uipickpartserv.h:103
BufferStringSet selectlines_
Definition: uipickpartserv.h:104
MultiID pickSetID() const
Definition: uipickpartserv.h:77
const char * name() const
Definition: uipickpartserv.h:43
Pick::Set * ps_
Definition: uipickpartserv.h:99
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< SurfaceInfo > & horInfos()
Definition: uipickpartserv.h:79
Set of picks with something in common.
Definition: pickset.h:31
Pick::SetMgr & psmgr_
Definition: uipickpartserv.h:92
BinIDValueSet & genDef()
Definition: uipickpartserv.h:76
TypeSet< Coord > coords2d_
Definition: uipickpartserv.h:105
Pick::Set * pickSet()
Definition: uipickpartserv.h:47
TrcKeySampling selTrcKeySampling() const
Definition: uipickpartserv.h:81
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
TypeSet< Interval< float > > hor2dzrgs_
Definition: uipickpartserv.h:106
TypeSet< Interval< float > > & getHor2DZRgs()
Definition: uipickpartserv.h:88
ObjectSet< MultiID > selhorids_
Definition: uipickpartserv.h:97
uiImpExpPickSet * exppsdlg_
Definition: uipickpartserv.h:109
const ObjectSet< MultiID > & selHorIDs() const
Definition: uipickpartserv.h:80
TypeSet< BufferStringSet > & lineNames()
Definition: uipickpartserv.h:85
Definition: uipicksetman.h:24
uiPickSetMan * manpicksetsdlg_
Definition: uipickpartserv.h:110
MultiID picksetid_
Definition: uipickpartserv.h:100
Position info, often segmented.
Definition: posinfo.h:40
Service provider for application level - seismics.
Definition: uipickpartserv.h:37
MultiID horid_
Definition: uipickpartserv.h:101
Services from application level to &#39;Part servers&#39;.
Definition: uiapplserv.h:24
BinIDValueSet & gendef_
Definition: uipickpartserv.h:94
Dialog for pickset selection.
Definition: uiimppickset.h:32
Definition: picklocation.h:21
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
TrcKeySampling selhs_
Definition: uipickpartserv.h:98
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
TypeSet< Coord > & getPos2D()
Definition: uipickpartserv.h:87
Utility to manage pick set lifecycles. Also supports change notifications.
Definition: picksetmgr.h:34
Dialog for creating (a) pick set(s)
Definition: uicreatepicks.h:36
uiImpExpPickSet * imppsdlg_
Definition: uipickpartserv.h:108
Compound key consisting of ints.
Definition: multiid.h:25

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