OpendTect-6_4  6.4
sectiontracker.h
Go to the documentation of this file.
1 #ifndef sectiontracker_h
2 #define sectiontracker_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: 23-10-1996
10  Contents: Ranges
11  RCS: $Id$
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "mpeenginemod.h"
17 #include "task.h"
18 #include "trckeyzsampling.h"
19 #include "emposid.h"
20 #include "geomelement.h"
21 
22 class BinIDValue;
23 
24 namespace Attrib { class SelSpec; }
25 namespace EM { class EMObject; }
26 
27 namespace MPE
28 {
29 
30 class SectionSourceSelector;
31 class SectionExtender;
32 class SectionAdjuster;
33 
39 {
40 public:
41  SectionTracker(EM::EMObject&,
42  const EM::SectionID&,
44  SectionExtender* = 0,
45  SectionAdjuster* = 0);
46  virtual ~SectionTracker();
47 
48  EM::EMObject& emObject() { return emobject_; }
49  EM::SectionID sectionID() const;
50  virtual bool init();
51 
52  void reset();
53 
54  SectionSourceSelector* selector();
55  const SectionSourceSelector* selector() const;
56  SectionExtender* extender();
57  const SectionExtender* extender() const;
58  SectionAdjuster* adjuster();
59  const SectionAdjuster* adjuster() const;
60 
61  virtual bool select();
62  virtual bool extend();
63  virtual bool adjust();
64  const char* errMsg() const;
65 
66  void useAdjuster(bool yn);
67  bool adjusterUsed() const;
68 
69  void setSetupID(const MultiID& id);
70  const MultiID& setupID() const;
71  bool hasInitializedSetup() const;
72 
73  void setSeedOnlyPropagation(bool yn);
74  bool propagatingFromSeedOnly() const;
75 
76  const Attrib::SelSpec& getDisplaySpec() const;
77  void setDisplaySpec(const Attrib::SelSpec&);
78 
79  void getNeededAttribs(
81  virtual TrcKeyZSampling getAttribCube(const Attrib::SelSpec&) const;
82 
83  void fillPar(IOPar&) const;
84  bool usePar(const IOPar&);
85 
86 protected:
87 
88  void getLockedSeeds(TypeSet<EM::SubID>& lockedseeds);
89 
92 
98 
102 
103 
104  static const char* trackerstr;
105  static const char* useadjusterstr;
106  static const char* seedonlypropstr;
107 };
108 
109 } // namespace MPE
110 
111 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
SectionAdjuster * adjuster_
Definition: sectiontracker.h:101
EM::EMObject & emobject_
Definition: sectiontracker.h:90
BufferString errmsg_
Definition: sectiontracker.h:93
bool useadjuster_
Definition: sectiontracker.h:94
SequentialTask to adjust the section of an EM object with ID EM::SectionID.
Definition: sectionadjuster.h:35
EM::SectionID sid_
Definition: sectiontracker.h:91
SequentialTask to extend the section of an EM object with ID EM::SectionID.
Definition: sectionextender.h:39
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
bool init()
SequentialTask to select source of an EM section with ID EM::SectionID.
Definition: sectionselector.h:31
SectionSourceSelector * selector_
Definition: sectiontracker.h:99
static const char * useadjusterstr
Definition: sectiontracker.h:105
Tracks sections of EM::EMObject with ID EM::SectionID.
Definition: sectiontracker.h:38
static const char * trackerstr
Definition: sectiontracker.h:104
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
BinID and a value.
Definition: binidvalue.h:31
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
EM::EMObject & emObject()
Definition: sectiontracker.h:48
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static const char * seedonlypropstr
Definition: sectiontracker.h:106
Base class for all EarthModel objects.
Definition: emobject.h:158
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
SectionExtender * extender_
Definition: sectiontracker.h:100
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
const char * errMsg() const
Definition: horizontracker.h:61
bool seedonlypropagation_
Definition: sectiontracker.h:97
MultiID setupid_
Definition: sectiontracker.h:95
Compound key consisting of ints.
Definition: multiid.h:25
Attrib::SelSpec & displayas_
Definition: sectiontracker.h:96
Semblance Attribute.
Definition: attribdataholder.h:25

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