24 class LayerSequenceGenDesc;
41 virtual LayerGenerator*
clone()
const 42 {
return canBeCloned() ? createClone() : 0; }
43 virtual bool canBeCloned()
const = 0;
44 virtual const char* name()
const = 0;
45 virtual float dispThickness(
bool max=
false)
const = 0;
56 virtual bool reset()
const {
return true; }
77 #define mDefLayerGeneratorFns(clss,typstr) \ 79 virtual bool genMaterial(Strat::LayerSequence&, \ 80 Property::EvalOpts eo=Property::EvalOpts()) const; \ 82 static const char* typeStr() { return typstr; } \ 83 virtual const char* factoryKeyword() const { return typeStr(); } \ 84 static Strat::LayerGenerator* create() { return new clss; } \ 85 static void initClass() { factory().addCreator(create,typeStr());} \ 86 virtual const char* name() const; \ 87 virtual float dispThickness(bool max=true) const; \ 88 virtual bool usePar(const IOPar&,const Strat::RefTree&); \ 89 virtual void fillPar(IOPar&) const; \ 90 virtual void syncProps(const PropertyRefSelection&); \ 91 virtual void updateUsedProps(PropertyRefSelection&) const #define mExpClass(module)
Definition: commondefs.h:160
virtual uiString errMsg() const
Definition: stratlaygen.h:57
Definition: propertyref.h:176
A sequence of layers.
Definition: stratlayersequence.h:36
Collection of LayerGenerator's that can generate a full LayerSequence.
Definition: stratlayseqgendesc.h:39
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
static const uiString & emptyString()
Definition: uistring.h:109
Definition: uistring.h:89
virtual LayerGenerator * clone() const
Definition: stratlaygen.h:41
virtual bool reset() const
Definition: stratlaygen.h:56
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const LayerSequenceGenDesc * gendesc_
set before generation
Definition: stratlaygen.h:71
#define mDefineFactoryInClass(T, funcname)
Definition: factory.h:426
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Stratigraphy.
Definition: stratlevel.h:26
Tree of UnitRef's.
Definition: stratreftree.h:29
virtual ~LayerGenerator()
Definition: stratlaygen.h:39
Description that can generate layers and add these to a sequence.
Definition: stratlaygen.h:35
void setGenDesc(LayerSequenceGenDesc *gd)
Definition: stratlaygen.h:61
virtual bool postProcess(LayerSequence &, float pos) const
Definition: stratlaygen.h:68
Definition: property.h:65
virtual LayerGenerator * createClone() const
Definition: stratlaygen.h:65