OpendTect  6.6
emstickset.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: Kristofer Tingdahl
8  Date: 4-11-2002
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "emposid.h"
17 #include "emobject.h"
18 #include "sets.h"
19 #include "coord.h"
20 
21 
22 namespace EM
23 {
24 
26 typedef SubID KnotID;
27 
28 class EMManager;
29 
34 mExpClass(EarthModel) StickSet : public EMObject
35 {
36 public:
37  static const char* typeStr();
38  static EMObject* create( EMManager& );
39  static void initClass(EMManager&);
40 
41  const char* getTypeStr() const { return typeStr(); }
42 
43  int nrSections() const { return nrSticks(); }
44  EM::SectionID sectionID(int idx) const { return stickID(idx); }
45 
46  int nrSticks() const;
47  StickID stickID(int idx) const;
48  StickID addStick( bool addtohistory );
49  void removeStick(const StickID&);
50 
51  int nrKnots(const StickID&) const;
52  KnotID firstKnot(const StickID&) const;
53 
54  bool setPos( const StickID&, const KnotID&,
55  const Coord3&, bool addtohistory );
56  bool setPos(const EM::PosID&, const Coord3&, bool addtohist);
57 
58  Coord3 getPos(const EM::PosID&) const;
59  Coord3 getPos(const StickID&, const KnotID&) const;
60 
61  bool isLoaded() const;
64 
65 protected:
66  int getStickIndex(const StickID&) const;
67 
68  friend class EMManager;
69  friend class EMObject;
70 
73  void cleanUp();
74  virtual const IOObjContext& getIOObjContext() const;
75 
79  bool isloaded;
80 };
81 
82 } // namespace EM
83 
emobject.h
EM::StickSet::~StickSet
~StickSet()
Coord3
A cartesian coordinate in 3D space.
Definition: coord.h:72
emposid.h
EM::StickSet::getPos
Coord3 getPos(const EM::PosID &) const
EM::StickSet::nrSticks
int nrSticks() const
EM::StickSet::firstknots
TypeSet< KnotID > firstknots
Definition: emstickset.h:78
EM::StickSet::stickID
StickID stickID(int idx) const
EM::SubID
od_int64 SubID
Definition: emposid.h:25
ObjectSet
Set of pointers to objects.
Definition: commontypes.h:31
EM::StickSet::removeStick
void removeStick(const StickID &)
EM::StickSet::create
static EMObject * create(EMManager &)
EM::StickSet::nrSections
int nrSections() const
Definition: emstickset.h:43
EM::StickSet::getStickIndex
int getStickIndex(const StickID &) const
EM::StickSet::getIOObjContext
virtual const IOObjContext & getIOObjContext() const
EM::StickSet::getTypeStr
const char * getTypeStr() const
Definition: emstickset.h:41
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
EM::StickSet::isLoaded
bool isLoaded() const
EM::StickSet::isloaded
bool isloaded
Definition: emstickset.h:79
EM::StickSet::addStick
StickID addStick(bool addtohistory)
EM
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: bulk2dhorizonscanner.h:26
EM::StickSet::sticks
ObjectSet< TypeSet< BinIDValue > > sticks
Definition: emstickset.h:76
EM::StickSet::getPos
Coord3 getPos(const StickID &, const KnotID &) const
EM::StickID
SectionID StickID
Definition: emstickset.h:25
EM::StickSet::initClass
static void initClass(EMManager &)
EM::KnotID
SubID KnotID
Definition: emstickset.h:26
EM::StickSet
Stick set.
Definition: emstickset.h:35
EM::StickSet::firstKnot
KnotID firstKnot(const StickID &) const
EM::StickSet::typeStr
static const char * typeStr()
Executor
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
IOObjContext
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
EM::StickSet::saver
Executor * saver()
EM::StickSet::setPos
bool setPos(const StickID &, const KnotID &, const Coord3 &, bool addtohistory)
EM::StickSet::sectionID
EM::SectionID sectionID(int idx) const
Definition: emstickset.h:44
EM::StickSet::nrKnots
int nrKnots(const StickID &) const
EM::StickSet::cleanUp
void cleanUp()
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
EM::StickSet::stickids
TypeSet< StickID > stickids
Definition: emstickset.h:77
EM::EMManager
Manages the loaded/half loaded EM objects in OpendTect.
Definition: emmanager.h:46
EM::StickSet::setPos
bool setPos(const EM::PosID &, const Coord3 &, bool addtohist)
EM::EMObject
Base class for all EarthModel objects.
Definition: emobject.h:159
sets.h
EM::PosID
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
TypeSet< StickID >
EM::StickSet::loader
Executor * loader()
EM::StickSet::StickSet
StickSet(EMManager &)
coord.h

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