OpendTect
6.6
|
Maps from [0,1] -> Color. More...
Public Types | |
enum | Type { System , User , Edited } |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Public Member Functions | |
Sequence () | |
Sequence (const char *) | |
Find by name in SeqMgr. More... | |
Sequence (const Sequence &) | |
~Sequence () | |
unsigned char | b (int idx) const |
void | changeColor (int, unsigned char, unsigned char, unsigned char) |
void | changePos (int, float) |
void | changeTransparency (int, Geom::Point2D< float >) |
Color | color (float pos) const |
0 <= pos <= 1 More... | |
void | fillPar (IOPar &) const |
void | flipColor () |
void | flipTransparency () |
unsigned char | g (int idx) const |
bool | hasTransparency () const |
bool | isEmpty () const |
bool | isSegmentized () const |
bool | isSys () const |
const Color & | markColor () const |
int | nrSegments () const |
bool | operator!= (const Sequence &) const |
Sequence & | operator= (const Sequence &) |
bool | operator== (const Sequence &) const |
float | position (int idx) const |
unsigned char | r (int idx) const |
void | removeAllColors () |
void | removeColor (int) |
void | removeTransparencies () |
void | removeTransparencyAt (int) |
int | setColor (float pos, unsigned char, unsigned char, unsigned char) |
Inserts or changes color. More... | |
void | setMarkColor (Color c) |
void | setNrSegments (int n) |
void | setTransparency (Geom::Point2D< float >) |
void | setType (Type tp) |
void | setUndefColor (Color c) |
void | simplify () |
int | size () const |
Geom::Point2D< float > | transparency (int idx) const |
float | transparencyAt (float) const |
int | transparencySize () const |
Type | type () const |
const Color & | undefColor () const |
bool | usePar (const IOPar &) |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
virtual const name_type & | name () const |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static const char * | sKeyCtbl () |
static const char * | sKeyMarkColor () |
static const char * | sKeyNrSegments () |
static const char * | sKeyRainbow () |
static const char * | sKeyTransparency () |
static const char * | sKeyUdfColor () |
static const char * | sKeyValCol () |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< Sequence > | colorChanged |
Notifier< Sequence > | toBeRemoved |
Notifier< Sequence > | transparencyChanged |
Protected Member Functions | |
float | snapToSegmentCenter (float) const |
void | triggerAll () |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Attributes | |
TypeSet< unsigned char > | b_ |
TypeSet< unsigned char > | g_ |
Color | markcolor_ |
int | nrsegments_ |
TypeSet< unsigned char > | r_ |
TypeSet< Geom::Point2D< float > > | tr_ |
Type | type_ |
Color | undefcolor_ |
TypeSet< float > | x_ |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
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 | |||
) |
Inserts or changes color.
|
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 |
void ColTab::Sequence::simplify | ( | ) |
|
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. 1995-2022