OpendTect-6_4  6.4
stratsinglaygen.h
Go to the documentation of this file.
1 #ifndef stratsinglaygen_h
2 #define stratsinglaygen_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Oct 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "stratmod.h"
16 #include "stratlaygen.h"
17 
18 
19 namespace Strat
20 {
21 class LeafUnitRef;
22 class Content;
23 
27 {
28 public:
29 
30  SingleLayerGenerator(const LeafUnitRef* ur=0);
33 
34  virtual bool canBeCloned() const { return true; }
35  const LeafUnitRef& unit() const;
36  void setUnit( const LeafUnitRef* ur ) { unit_ = ur; }
37  const Content& content() const { return *content_; }
38  void setContent( const Content& c ) { content_ = &c; }
39 
40  bool isEmpty() const { return props_.isEmpty(); }
41  PropertySet& properties() { return props_; }
42  const PropertySet& properties() const { return props_; }
43 
44  virtual bool reset() const;
45  virtual uiString errMsg() const { return errmsg_; }
46 
48 
49 protected:
50 
51  virtual LayerGenerator* createClone() const;
54  const Content* content_;
55  mutable uiString errmsg_;
56 
57 };
58 
59 
60 }; // namespace Strat
61 
62 #endif
#define mExpClass(module)
Definition: commondefs.h:160
uiString errmsg_
Definition: stratsinglaygen.h:55
PropertySet props_
Definition: stratsinglaygen.h:53
Definition: property.h:105
FixedString Content()
Definition: keystrs.h:49
void setContent(const Content &c)
Definition: stratsinglaygen.h:38
void setUnit(const LeafUnitRef *ur)
Definition: stratsinglaygen.h:36
Definition: uistring.h:89
const Content * content_
Definition: stratsinglaygen.h:54
virtual bool canBeCloned() const
Definition: stratsinglaygen.h:34
~SingleLayerGenerator()
Definition: stratsinglaygen.h:32
const LeafUnitRef * unit_
Definition: stratsinglaygen.h:52
UnitRef for layers.
Definition: stratunitref.h:236
Layer generator based on Leaf Unit.
Definition: stratsinglaygen.h:26
#define mDefLayerGeneratorFns(clss, typstr)
Definition: stratlaygen.h:77
Stratigraphy.
Definition: stratlevel.h:26
BufferString errmsg_
Definition: horizontracker.h:119
Description that can generate layers and add these to a sequence.
Definition: stratlaygen.h:35
bool isEmpty() const
Definition: stratsinglaygen.h:40
stuff that can be inside porous layers
Definition: stratcontent.h:29
const Content & content() const
Definition: stratsinglaygen.h:37
PropertySet & properties()
Definition: stratsinglaygen.h:41
const PropertySet & properties() const
Definition: stratsinglaygen.h:42
virtual uiString errMsg() const
Definition: stratsinglaygen.h:45

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