OpendTect-6_4
6.4
|
Maps from [0,1] -> Color. More...
Public Types | |
enum | Type { System, User, Edited } |
Public Member Functions | |
Sequence () | |
Sequence (const char *) | |
Find by name in SeqMgr. More... | |
Sequence (const Sequence &) | |
~Sequence () | |
Sequence & | operator= (const Sequence &) |
bool | operator== (const Sequence &) const |
bool | operator!= (const Sequence &) const |
bool | isSys () const |
Type | type () const |
void | setType (Type tp) |
Color | color (float pos) const |
0 <= pos <= 1 More... | |
bool | isEmpty () const |
int | size () const |
float | position (int idx) const |
unsigned char | r (int idx) const |
unsigned char | g (int idx) const |
unsigned char | b (int idx) const |
int | transparencySize () const |
Geom::Point2D< float > | transparency (int idx) const |
float | transparencyAt (float) const |
void | setTransparency (Geom::Point2D< float >) |
void | changeTransparency (int, Geom::Point2D< float >) |
void | removeTransparencies () |
void | removeTransparencyAt (int) |
bool | hasTransparency () const |
int | nrSegments () const |
void | setNrSegments (int n) |
bool | isSegmentized () const |
void | changeColor (int, unsigned char, unsigned char, unsigned char) |
void | changePos (int, float) |
int | setColor (float pos, unsigned char, unsigned char, unsigned char) |
void | removeColor (int) |
void | removeAllColors () |
void | flipColor () |
void | flipTransparency () |
void | fillPar (IOPar &) const |
bool | usePar (const IOPar &) |
const Color & | undefColor () const |
void | setUndefColor (Color c) |
const Color & | markColor () const |
void | setMarkColor (Color c) |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static const char * | sKeyValCol () |
static const char * | sKeyMarkColor () |
static const char * | sKeyUdfColor () |
static const char * | sKeyTransparency () |
static const char * | sKeyCtbl () |
static const char * | sKeyNrSegments () |
static const char * | sKeyRainbow () |
Public Attributes | |
Notifier< Sequence > | colorChanged |
Notifier< Sequence > | transparencyChanged |
Notifier< Sequence > | toBeRemoved |
Protected Member Functions | |
void | triggerAll () |
float | snapToSegmentCenter (float) const |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
TypeSet< float > | x_ |
TypeSet< unsigned char > | r_ |
TypeSet< unsigned char > | g_ |
TypeSet< unsigned char > | b_ |
TypeSet< Geom::Point2D< float > > | tr_ |
Color | undefcolor_ |
Color | markcolor_ |
Type | type_ |
int | nrsegments_ |
Protected Attributes inherited from NamedObject | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Maps from [0,1] -> Color.
Standard color sequences ('Color tables') are read at program start, including the 'user defined' ones. Users can overrule the standard ones.
Sequences cannot be scaled, try the Mapper.
ColTab::Sequence::Sequence | ( | ) |
ColTab::Sequence::Sequence | ( | const char * | ) |
Find by name in SeqMgr.
ColTab::Sequence::Sequence | ( | const Sequence & | ) |
ColTab::Sequence::~Sequence | ( | ) |
|
inline |
void ColTab::Sequence::changeColor | ( | int | , |
unsigned | char, | ||
unsigned | char, | ||
unsigned | char | ||
) |
void ColTab::Sequence::changePos | ( | int | , |
float | |||
) |
void ColTab::Sequence::changeTransparency | ( | int | , |
Geom::Point2D< float > | |||
) |
Color ColTab::Sequence::color | ( | float | pos | ) | const |
0 <= pos <= 1
void ColTab::Sequence::fillPar | ( | IOPar & | ) | const |
void ColTab::Sequence::flipColor | ( | ) |
void ColTab::Sequence::flipTransparency | ( | ) |
|
inline |
bool ColTab::Sequence::hasTransparency | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool ColTab::Sequence::operator!= | ( | const Sequence & | ) | const |
bool ColTab::Sequence::operator== | ( | const Sequence & | ) | const |
|
inline |
|
inline |
void ColTab::Sequence::removeAllColors | ( | ) |
void ColTab::Sequence::removeColor | ( | int | ) |
void ColTab::Sequence::removeTransparencies | ( | ) |
void ColTab::Sequence::removeTransparencyAt | ( | int | ) |
int ColTab::Sequence::setColor | ( | float | pos, |
unsigned | char, | ||
unsigned | char, | ||
unsigned | char | ||
) |
pos | Insert or change |
|
inline |
|
inline |
nrsegments > 0 divide the ctab in equally wide nrsegments == 0 no segmentation nrsegments == -1 constant color between markers.
void ColTab::Sequence::setTransparency | ( | Geom::Point2D< float > | ) |
x goes from 0 to 1, trans from 0 to 255
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
inline |
float ColTab::Sequence::transparencyAt | ( | float | ) | const |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
bool ColTab::Sequence::usePar | ( | const IOPar & | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019