OpendTect-6_4  6.4
sectionextender.h
Go to the documentation of this file.
1 #ifndef sectionextender_h
2 #define sectionextender_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 
18 #include "emposid.h"
19 #include "factory.h"
20 #include "sets.h"
21 #include "sortedlist.h"
22 #include "task.h"
23 #include "trckeyzsampling.h"
24 
25 class TrcKeyValue;
26 
27 namespace EM { class EMObject; }
28 
29 namespace MPE
30 {
31 
32 class SectionSourceSelector;
33 
40 {
41 public:
43  EM::SectionID sectionID() const;
44 
45  virtual void reset();
46  virtual void setDirection(const TrcKeyValue&);
47  virtual const TrcKeyValue* getDirection() const;
48 
49  void setStartPosition(const TrcKey&);
50  void setStartPositions(const TypeSet<TrcKey>&);
51  void excludePositions(const TypeSet<TrcKey>*);
52  bool isExcludedPos(const TrcKey&) const;
53  int nextStep();
54 
55  void extendInVolume(const BinID& bidstep,
56  float zstep);
57 
58  const TypeSet<TrcKey>& getAddedPositions() const;
59  const TypeSet<TrcKey>& getAddedPositionsSource() const;
60 
61  virtual const TrcKeyZSampling& getExtBoundary() const;
62  void setExtBoundary(const TrcKeyZSampling&);
63  void unsetExtBoundary();
64 
65  virtual int maxNrPosInExtArea() const { return -1; }
66  virtual void preallocExtArea() {}
67 
68  const char* errMsg() const;
69  virtual void fillPar(IOPar&) const {}
70  virtual bool usePar(const IOPar&) { return true; }
71 
72  void setUndo(bool yn) { setundo_ = yn; }
73 
74 protected:
75  void addTarget(const TrcKey& target,
76  const TrcKey& src);
77  virtual float getDepth(const TrcKey& src,
78  const TrcKey& target) const;
79  virtual void prepareDataIfRequired() { return; }
80 
84 
86 
88 
91  bool setundo_;
92 };
93 
94 
96  EM::SectionID, ExtenderFactory );
97 
98 } // namespace MPE
99 
100 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
Definition: trckeyvalue.h:27
TypeSet< TrcKey > startpos_
Definition: sectionextender.h:83
SequentialTask to extend the section of an EM object with ID EM::SectionID.
Definition: sectionextender.h:39
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
virtual int maxNrPosInExtArea() const
Definition: sectionextender.h:65
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const EM::SectionID sid_
Definition: sectionextender.h:89
const TypeSet< TrcKey > * excludedpos_
Definition: sectionextender.h:85
bool setundo_
Definition: sectionextender.h:91
virtual void preallocExtArea()
Definition: sectionextender.h:66
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
virtual bool usePar(const IOPar &)
Definition: sectionextender.h:70
virtual void fillPar(IOPar &) const
Definition: sectionextender.h:69
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
BufferString errmsg
Definition: sectionextender.h:90
TypeSet< TrcKey > addedpos_
Definition: sectionextender.h:81
Base class for all EarthModel objects.
Definition: emobject.h:158
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
void setUndo(bool yn)
Definition: sectionextender.h:72
TrcKeyZSampling extboundary_
Definition: sectionextender.h:87
const char * errMsg() const
Definition: horizontracker.h:61
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
mDefineFactory2Param(uiTools, uiDlgGroup, uiParent *, Gridder2D *, uiGridder2DFact)
TypeSet< TrcKey > addedpossrc_
Definition: sectionextender.h:82
virtual void prepareDataIfRequired()
Definition: sectionextender.h:79

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