OpendTect  6.3
stratsinglaygen.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: Bert
8  Date: Oct 2010
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "stratmod.h"
14 #include "stratlaygen.h"
15 
16 
17 namespace Strat
18 {
19 class LeafUnitRef;
20 class Content;
21 
25 {
26 public:
27 
28  SingleLayerGenerator(const LeafUnitRef* ur=0);
31 
32  virtual bool canBeCloned() const { return true; }
33  const LeafUnitRef& unit() const;
34  void setUnit( const LeafUnitRef* ur ) { unit_ = ur; }
35  const Content& content() const { return *content_; }
36  void setContent( const Content& c ) { content_ = &c; }
37 
38  bool isEmpty() const { return props_.isEmpty(); }
39  PropertySet& properties() { return props_; }
40  const PropertySet& properties() const { return props_; }
41 
42  virtual bool reset() const;
43  virtual uiString errMsg() const { return errmsg_; }
44 
46 
47 protected:
48 
49  virtual LayerGenerator* createClone() const;
52  const Content* content_;
53  mutable uiString errmsg_;
54 
55 };
56 
57 
58 }; // namespace Strat
#define mExpClass(module)
Definition: commondefs.h:157
uiString errmsg_
Definition: stratsinglaygen.h:53
PropertySet props_
Definition: stratsinglaygen.h:51
Definition: property.h:102
FixedString Content()
Definition: keystrs.h:47
void setContent(const Content &c)
Definition: stratsinglaygen.h:36
void setUnit(const LeafUnitRef *ur)
Definition: stratsinglaygen.h:34
Definition: uistring.h:88
const Content * content_
Definition: stratsinglaygen.h:52
virtual bool canBeCloned() const
Definition: stratsinglaygen.h:32
~SingleLayerGenerator()
Definition: stratsinglaygen.h:30
const LeafUnitRef * unit_
Definition: stratsinglaygen.h:50
UnitRef for layers.
Definition: stratunitref.h:240
Layer generator based on Leaf Unit.
Definition: stratsinglaygen.h:24
#define mDefLayerGeneratorFns(clss, typstr)
Definition: stratlaygen.h:75
Stratigraphy.
Definition: stratlevel.h:25
BufferString errmsg_
Definition: horizontracker.h:117
Description that can generate layers and add these to a sequence.
Definition: stratlaygen.h:33
bool isEmpty() const
Definition: stratsinglaygen.h:38
stuff that can be inside porous layers
Definition: stratcontent.h:27
const Content & content() const
Definition: stratsinglaygen.h:35
PropertySet & properties()
Definition: stratsinglaygen.h:39
const PropertySet & properties() const
Definition: stratsinglaygen.h:40
virtual uiString errMsg() const
Definition: stratsinglaygen.h:43

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