OpendTect  6.6
attribdescsetman.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: Nanne Hemstra
8  Date: November 2001
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "attributeenginemod.h"
15 #include "multiid.h"
16 
17 
18 namespace Attrib
19 {
20 
21 class DescSet;
22 
27 mExpClass(AttributeEngine) DescSetMan
28 {
29 public:
30 
31  DescSetMan(bool,DescSet* ads=0,bool destr_on_del=true );
33 
34  DescSet* descSet() { return ads_; }
35  const DescSet* descSet() const { return ads_; }
37 
38  bool is2D() const { return is2d_; }
39  bool isSaved() const { return !unsaved_; }
40  void setSaved( bool yn=true ) const
41  { const_cast<DescSetMan*>(this)->unsaved_ = !yn; }
42  bool& unSaved() { return unsaved_; }
44 
45  void fillHist();
46  IOPar& inputHistory() { return inpselhist_; }
47  IOPar& steerSelHistory() { return steerselhist_; }
48 
50 
51 protected:
52 
54  bool is2d_;
55  bool unsaved_;
57 
60 
61  void cleanHist(IOPar&,const DescSet&);
62 
63 };
64 
65 }; // namespace Attrib
66 
Attrib::DescSetMan::DescSetMan
DescSetMan(bool, DescSet *ads=0, bool destr_on_del=true)
Attrib::DescSetMan::unsaved_
bool unsaved_
Definition: attribdescsetman.h:55
Attrib::DescSetMan::cleanHist
void cleanHist(IOPar &, const DescSet &)
Attrib::DescSetMan::descSet
DescSet * descSet()
Definition: attribdescsetman.h:34
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Attrib::DescSetMan::is2D
bool is2D() const
Definition: attribdescsetman.h:38
Attrib::DescSetMan::inpselhist_
IOPar & inpselhist_
Definition: attribdescsetman.h:58
Attrib::DescSetMan::is2d_
bool is2d_
Definition: attribdescsetman.h:54
Attrib::DescSetMan::isSaved
bool isSaved() const
Definition: attribdescsetman.h:39
multiid.h
Attrib::DescSetMan::setSaved
void setSaved(bool yn=true) const
Definition: attribdescsetman.h:40
Attrib::DescSetMan::setDescSet
void setDescSet(DescSet *)
Attrib::DescSetMan::unSaved
bool & unSaved()
Added for convenience in UI building.
Definition: attribdescsetman.h:42
Attrib::DescSetMan::fillHist
void fillHist()
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
Attrib::DescSetMan::~DescSetMan
~DescSetMan()
Attrib::DescSetMan::attrsetid_
MultiID attrsetid_
Definition: attribdescsetman.h:49
Attrib::DescSetMan
Manages attribute description set.
Definition: attribdescsetman.h:28
Attrib::DescSetMan::steerselhist_
IOPar & steerselhist_
Definition: attribdescsetman.h:59
Attrib::DescSetMan::inputHistory
IOPar & inputHistory()
Definition: attribdescsetman.h:46
Attrib::DescSetMan::destrondel_
bool destrondel_
Definition: attribdescsetman.h:56
Attrib::DescSetMan::descSet
const DescSet * descSet() const
Definition: attribdescsetman.h:35
Attrib::DescSet
Set of attribute descriptions.
Definition: attribdescset.h:35
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::DescSetMan::ads_
DescSet * ads_
Definition: attribdescsetman.h:53
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
Attrib::DescSetMan::steerSelHistory
IOPar & steerSelHistory()
Definition: attribdescsetman.h:47

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