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

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