 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "generalmod.h"
50 ID id()
const {
return id_; }
108 bool isEmpty()
const {
return lvls_.isEmpty(); }
109 int size()
const {
return lvls_.size(); }
114 {
return gtIdxOf(nm,-1) >= 0; }
116 {
return gtIdxOf(0,
id) >= 0; }
118 {
return gtIdxOf(nm,-1); }
120 {
return gtIdxOf(0,
id); }
122 Level*
get(
const char* nm ) {
return gtLvl(nm,-1); }
123 const Level*
get(
const char* nm )
const {
return gtLvl(nm,-1); }
128 {
return set(lvlnm,c,-1); }
130 {
return set(lvlnm,c,idx); }
132 {
return set(lvlnm,c,-1); }
156 {
return getLevel(idx).id(); }
158 {
return getLevel(idx).color(); }
187 friend class LevelSetMgr;
Source
Definition: repos.h:24
bool ischanged_
Definition: stratlevel.h:167
const Level * get(Level::ID id) const
Definition: stratlevel.h:125
bool isPresent(const char *nm) const
Definition: stratlevel.h:113
void lvlRemCB(CallBacker *cb)
Definition: stratlevel.h:179
int levelID(int idx) const
Definition: stratlevel.h:155
Level * insert(const char *lvlnm, const Color &c, int idx=-1)
Definition: stratlevel.h:129
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
bool needStore() const
Definition: stratlevel.h:146
bool store(Repos::Source) const
#define mGlobal(module)
Definition: commondefs.h:180
Color color_
Definition: stratlevel.h:69
Set of pointers to objects.
Definition: commontypes.h:31
bool isPresent(Level::ID id) const
Definition: stratlevel.h:115
Set of BufferString objects.
Definition: bufstringset.h:26
int notiflvlidx_
Definition: stratlevel.h:165
int size() const
Definition: stratlevel.h:109
static void getStdNames(BufferStringSet &)
void readPars(ascistream &, bool)
int notifLvlIdx() const
if < 0 then more than one level have changed
Definition: stratlevel.h:141
const char * checkName(const char *) const
void usePar(const IOPar &)
Color color() const
Definition: stratlevel.h:51
#define mExpClass(module)
Definition: commondefs.h:177
Notifier< Level > changed
Definition: stratlevel.h:58
Notifier< LevelSet > levelToBeRemoved
Definition: stratlevel.h:140
static const Level & undef()
void lvlChgCB(CallBacker *cb)
Definition: stratlevel.h:178
Stratigraphic level.
Definition: stratlevel.h:42
Level * get(const char *nm)
Definition: stratlevel.h:122
const IOPar & pars() const
Definition: stratlevel.h:52
Set of Stratigraphic levels.
Definition: stratlevel.h:99
bool readFrom(const char *)
bool isDifferentFrom(const Level &) const
void getLevelsFrom(const LevelSet &)
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Level * getNew(const Level *lvl=0) const
Level * add(const Level &)
copy stuff, but new ID/name
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
Level::ID lastlevelid_
Definition: stratlevel.h:166
Notifier< Level > toBeRemoved
Definition: stratlevel.h:59
void setEmpty()
Definition: stratlevel.h:111
Level(const char *nm, const LevelSet *)
static LevelSet * createStd(const char *)
bool writeTo(const char *) const
const Level & getLevel(int idx) const
Definition: stratlevel.h:153
void setPars(const IOPar &)
ObjectSet< Level > lvls_
Definition: stratlevel.h:163
BufferString getStdFileName(const char *inpnm, const char *basenm)
example: getStdFileName("North Sea","Levels")
Level * gtLvl(const char *, Level::ID) const
const LevelSet * lvlset_
Definition: stratlevel.h:71
ID id_
Definition: stratlevel.h:68
ID id() const
Definition: stratlevel.h:50
int indexOf(const char *nm) const
Definition: stratlevel.h:117
Class to help setup a callback handling.
Definition: notify.h:126
Repos::Source readOldRepos()
Level * set(const char *, const Color &, int)
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
int gtIdxOf(const char *, Level::ID) const
Notifier< LevelSet > levelAdded
Definition: stratlevel.h:138
Notifier< LevelSet > levelChanged
Definition: stratlevel.h:139
Compound key consisting of ints.
Definition: multiid.h:24
void add(const BufferStringSet &, const TypeSet< Color > &)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
static bool write(const LevelSet &, const MultiID &)
Level * set(const char *lvlnm, const Color &c)
Definition: stratlevel.h:131
const ObjectSet< Level > & levels() const
Definition: stratlevel.h:110
Stratigraphy.
Definition: stratlevel.h:26
void fillPar(IOPar &) const
IOPar & pars_
Definition: stratlevel.h:70
Level * get(Level::ID id)
Definition: stratlevel.h:124
void getNames(BufferStringSet &) const
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
void setName(const char *)
int indexOf(Level::ID id) const
Definition: stratlevel.h:119
static LevelSet * read(const MultiID &)
void notif(CallBacker *, bool)
LevelSet(const LevelSet &)
LevelSet(Level::ID startat)
const LevelSet & unpushedLVLS()
bool isEmpty() const
Definition: stratlevel.h:108
void pushLevelSet(LevelSet *)
Color color(int idx) const
Definition: stratlevel.h:157
int ID
Definition: stratlevel.h:45
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
const Level * get(const char *nm) const
Definition: stratlevel.h:123
Level * add(const char *lvlnm, const Color &c)
Definition: stratlevel.h:127
LevelSet & eLVLS()
Definition: stratlevel.h:194
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
FixedString Level()
Definition: keystrs.h:86
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021