 |
OpendTect
6.6
|
Go to the documentation of this file.
15 #include "generalmod.h"
58 inline bool isEmpty()
const {
return x_.isEmpty(); }
59 inline int size()
const {
return x_.size(); }
60 inline float position(
int idx )
const {
return x_[idx]; }
61 inline unsigned char r(
int idx )
const {
return r_[idx]; }
62 inline unsigned char g(
int idx )
const {
return g_[idx]; }
63 inline unsigned char b(
int idx )
const {
return b_[idx]; }
85 unsigned char,
unsigned char,
unsigned char);
88 unsigned char,
unsigned char,
unsigned char);
102 {
return undefcolor_; }
104 { undefcolor_ = c; triggerAll(); }
106 {
return markcolor_; }
108 { markcolor_ = c; triggerAll(); }
132 transparencyChanged.
trigger(); }
149 int size()
const {
return seqs_.size(); }
160 bool write(
bool sys=
false,
bool applsetup=
true);
178 { seqs_ += seq; seqAdded.
trigger(); }
static const char * sKeyTransparency()
Sequence & operator=(const Sequence &)
Manages Sequences; reads/writes system or user-defined.
Definition: coltabsequence.h:144
void fillPar(IOPar &) const
bool operator==(const Sequence &) const
static const char * sKeyUdfColor()
int size() const
Definition: coltabsequence.h:59
void trigger()
Definition: notify.h:132
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 get(const char *, Sequence &)
const Sequence * get(int idx) const
Definition: coltabsequence.h:151
static const char * sKeyCtbl()
#define mGlobal(module)
Definition: commondefs.h:180
Set of pointers to objects.
Definition: commontypes.h:31
Color Table
Definition: coltab.h:22
Set of BufferString objects.
Definition: bufstringset.h:26
Color undefcolor_
Definition: coltabsequence.h:126
int indexOf(const char *) const
void removeTransparencies()
void changeColor(int, unsigned char, unsigned char, unsigned char)
Notifier< Sequence > toBeRemoved
Definition: coltabsequence.h:99
#define mExpClass(module)
Definition: commondefs.h:177
void set(const Sequence &)
if name not yet present, adds
bool isSys() const
Definition: coltabsequence.h:51
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
TypeSet< unsigned char > g_
Definition: coltabsequence.h:122
~SeqMgr()
Definition: coltabsequence.h:165
void add(Sequence *seq)
Definition: coltabsequence.h:177
void setType(Type tp)
Definition: coltabsequence.h:54
bool hasTransparency() const
void setTransparency(Geom::Point2D< float >)
Geom::Point2D< float > transparency(int idx) const
Definition: coltabsequence.h:66
int nrSegments() const
Definition: coltabsequence.h:75
static const char * sKeyNrSegments()
Color markcolor_
Definition: coltabsequence.h:127
TypeSet< Geom::Point2D< float > > tr_
Definition: coltabsequence.h:124
unsigned char r(int idx) const
Definition: coltabsequence.h:61
Sequence(const Sequence &)
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
@ System
Definition: pythonaccess.h:35
void addFromPar(const IOPar &, bool)
Color color(float pos) const
0 <= pos <= 1
int nrsegments_
Definition: coltabsequence.h:129
Type
Definition: coltabsequence.h:45
const Sequence * getAny(const char *key) const
returns with key, or a nice one anyway
void changeTransparency(int, Geom::Point2D< float >)
Class to help setup a callback handling.
Definition: notify.h:126
TypeSet< unsigned char > b_
Definition: coltabsequence.h:123
ObjectSet< Sequence > seqs_
Definition: coltabsequence.h:172
Notifier< SeqMgr > seqRemoved
Definition: coltabsequence.h:163
bool usePar(const IOPar &)
void removeTransparencyAt(int)
Notifier< SeqMgr > seqAdded
Definition: coltabsequence.h:162
void getSequenceNames(BufferStringSet &)
const Color & undefColor() const
Definition: coltabsequence.h:101
Type type() const
Definition: coltabsequence.h:53
float snapToSegmentCenter(float) const
void deepErase(BufferStringSet &)
TypeSet< unsigned char > r_
Definition: coltabsequence.h:121
bool operator!=(const Sequence &) const
static const char * sKeyRainbow()
int transparencySize() const
Definition: coltabsequence.h:65
Sequence(const char *)
Find by name in SeqMgr.
unsigned char g(int idx) const
Definition: coltabsequence.h:62
void setMarkColor(Color c)
Definition: coltabsequence.h:107
@ User
Definition: coltabsequence.h:45
static const char * sKeyMarkColor()
bool isSegmentized() const
Definition: coltabsequence.h:82
void changePos(int, float)
int setColor(float pos, unsigned char, unsigned char, unsigned char)
bool isEmpty() const
Definition: coltabsequence.h:58
float position(int idx) const
Definition: coltabsequence.h:60
int size() const
Definition: coltabsequence.h:149
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
float transparencyAt(float) const
const Color & markColor() const
Definition: coltabsequence.h:105
Type type_
Definition: coltabsequence.h:128
void setUndefColor(Color c)
Definition: coltabsequence.h:103
void setNrSegments(int n)
Definition: coltabsequence.h:76
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
bool write(bool sys=false, bool applsetup=true)
static const char * sKeyValCol()
void triggerAll()
Definition: coltabsequence.h:131
Notifier< Sequence > transparencyChanged
Definition: coltabsequence.h:98
Notifier< Sequence > colorChanged
Definition: coltabsequence.h:97
TypeSet< float > x_
Definition: coltabsequence.h:120
unsigned char b(int idx) const
Definition: coltabsequence.h:63
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021