OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "stratmod.h"
15 #include "stratlaygen.h"
16 
17 
18 namespace Strat
19 {
20 class LeafUnitRef;
21 class Content;
22 
26 {
27 public:
28 
32 
33  virtual bool canBeCloned() const { return true; }
34  const LeafUnitRef& unit() const;
35  void setUnit( const LeafUnitRef* ur ) { unit_ = ur; }
36  const Content& content() const { return *content_; }
37  void setContent( const Content& c ) { content_ = &c; }
38 
39  bool isEmpty() const { return props_.isEmpty(); }
40  PropertySet& properties() { return props_; }
41  const PropertySet& properties() const { return props_; }
42 
43  virtual bool reset() const;
44  virtual uiString errMsg() const { return errmsg_; }
45 
47 
48 protected:
49 
50  virtual LayerGenerator* createClone() const;
53  const Content* content_;
54  mutable uiString errmsg_;
55 
56 };
57 
58 
59 }; // namespace Strat
60 
Strat::SingleLayerGenerator::canBeCloned
virtual bool canBeCloned() const
Definition: stratsinglaygen.h:33
stratlaygen.h
Strat::SingleLayerGenerator::errMsg
virtual uiString errMsg() const
Definition: stratsinglaygen.h:44
Strat::SingleLayerGenerator::setUnit
void setUnit(const LeafUnitRef *ur)
Definition: stratsinglaygen.h:35
Strat::SingleLayerGenerator::errmsg_
uiString errmsg_
Definition: stratsinglaygen.h:54
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Strat::SingleLayerGenerator::props_
PropertySet props_
Definition: stratsinglaygen.h:52
Strat::SingleLayerGenerator::setContent
void setContent(const Content &c)
Definition: stratsinglaygen.h:37
Strat::SingleLayerGenerator::unit
const LeafUnitRef & unit() const
Strat::SingleLayerGenerator::SingleLayerGenerator
SingleLayerGenerator(const LeafUnitRef *ur=0)
Strat::Content
stuff that can be inside porous layers
Definition: stratcontent.h:29
Strat::SingleLayerGenerator::reset
virtual bool reset() const
Strat::SingleLayerGenerator::content_
const Content * content_
Definition: stratsinglaygen.h:53
Strat::SingleLayerGenerator::unit_
const LeafUnitRef * unit_
Definition: stratsinglaygen.h:51
Strat::SingleLayerGenerator::~SingleLayerGenerator
~SingleLayerGenerator()
Definition: stratsinglaygen.h:31
Strat::LayerGenerator
Description that can generate layers and add these to a sequence.
Definition: stratlaygen.h:35
Strat::SingleLayerGenerator::SingleLayerGenerator
SingleLayerGenerator(const SingleLayerGenerator &)
PropertySet
Definition: property.h:108
Strat::SingleLayerGenerator
Layer generator based on Leaf Unit.
Definition: stratsinglaygen.h:26
Strat::LeafUnitRef
UnitRef for layers.
Definition: stratunitref.h:236
Strat
Stratigraphy.
Definition: stratlevel.h:26
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Strat::SingleLayerGenerator::properties
const PropertySet & properties() const
Definition: stratsinglaygen.h:41
mDefLayerGeneratorFns
#define mDefLayerGeneratorFns(clss, typstr)
Definition: stratlaygen.h:76
sKey::Content
FixedString Content()
Definition: keystrs.h:49
Strat::SingleLayerGenerator::content
const Content & content() const
Definition: stratsinglaygen.h:36
Strat::SingleLayerGenerator::isEmpty
bool isEmpty() const
Definition: stratsinglaygen.h:39
MPE::errmsg_
BufferString errmsg_
Definition: horizontracker.h:118
Strat::SingleLayerGenerator::createClone
virtual LayerGenerator * createClone() const
Strat::SingleLayerGenerator::properties
PropertySet & properties()
Definition: stratsinglaygen.h:40

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