OpendTect  6.3
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
ColTab::Sequence Class Reference

A series of color control points able to give an (interpolated) color for every position [0,1]. More...

Inheritance diagram for ColTab::Sequence:
[legend]

Public Types

enum  Status { System, Edited, Added }
 
typedef TypeSet< PosType >::size_type size_type
 
typedef size_type IdxType
 
typedef unsigned char CompType
 
typedef std::pair< PosType, CompTypeTranspPtType
 
- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 

Public Member Functions

 mDeclareEnumUtils (Status)
 
 Sequence ()
 Empty. More...
 
 Sequence (const char *)
 Find by name in SeqMGR. More...
 
 mDeclInstanceCreatedNotifierAccess (Sequence)
 
 mDeclMonitorableAssignment (Sequence)
 
Color color (PosType) const
 0 <= pos <= 1 More...
 
Status status () const
 
bool isSys () const
 
 mImplSimpleMonitoredGetSet (inline, disabled, setDisabled, bool, disabled_, cStatusChange()) uiString statusDispStr() const
 
bool isEmpty () const
 
size_type size () const
 
PosType position (IdxType) const
 
CompType r (IdxType) const
 
CompType g (IdxType) const
 
CompType b (IdxType) const
 
size_type transparencySize () const
 
TranspPtType transparency (IdxType) const
 
CompType transparencyAt (PosType) const
 
void setTransparency (TranspPtType)
 
void changeTransparency (IdxType, TranspPtType)
 
void removeTransparencies ()
 
void removeTransparencyAt (IdxType)
 
bool hasTransparency () const
 
 mImplSimpleMonitoredGetSet (inline, nrSegments, setNrSegments, size_type, nrsegments_, cSegmentationChange()) bool isSegmentized() const
 
void changeColor (IdxType, CompType, CompType, CompType)
 
void changePos (IdxType, PosType)
 
IdxType setColor (PosType, CompType, CompType, CompType)
 
void removeColor (IdxType)
 
void removeAllColors ()
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
 mImplSimpleMonitoredGetSet (inline, undefColor, setUndefColor, Color, undefcolor_, cUdfColChange()) mImplSimpleMonitoredGetSet(inline
 
 cMarkColChange ()) static ChangeType cStatusChange()
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=0)
 
 SharedObject (const SharedObject &)
 
SharedObjectoperator= (const SharedObject &)
 
bool operator== (const SharedObject &) const
 
bool operator!= (const SharedObject &oth) const
 
virtual SharedObjectclone () const
 
ChangeType compareWith (const Monitorable &) const
 
- Public Member Functions inherited from NamedMonitorable
 NamedMonitorable (const char *nm=0)
 
 NamedMonitorable (const NamedObject &)
 
virtual ~NamedMonitorable ()
 
 NamedMonitorable (const NamedMonitorable &)
 
NamedMonitorableoperator= (const NamedMonitorable &)
 
bool operator== (const NamedMonitorable &) const
 
bool operator!= (const NamedMonitorable &oth) const
 
virtual NamedMonitorablegetClone () const
 
virtual BufferString getName () const
 
virtual void setName (const char *)
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
void transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static ChangeType cColorChange ()
 
static ChangeType cTransparencyChange ()
 
static ChangeType cSegmentationChange ()
 
static ChangeType cMarkColChange ()
 
static ChangeType cUdfColChange ()
 
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 * sKeyDisabled ()
 
static const char * sDefaultName (bool for_seismics=false)
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from NamedMonitorable
static Notifier< NamedMonitorable > & instanceCreated ()
 
static ChangeType cNameChange ()
 
- Static Public Member Functions inherited from Monitorable
static Notifier< Monitorable > & instanceCreated ()
 defines static instanceCreated() More...
 
static ChangeType cEntireObjectChange ()
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Public Attributes

 markColor
 
 setMarkColor
 
 Color
 
 markcolor_
 

Protected Member Functions

 ~Sequence ()
 
size_type gtSize () const
 
PosType snapToSegmentCenter (PosType) const
 
CompType gtTransparencyAt (PosType) const
 
bool chgColor (IdxType, CompType, CompType, CompType)
 
bool rmColor (IdxType)
 
void emitStatusChg () const
 
- Protected Member Functions inherited from SharedObject
void copyAll (const SharedObject &)
 
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedMonitorable
void copyAll (const NamedMonitorable &)
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
void copyAll (const Monitorable &)
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
void stopChangeNotifications () const
 
void resumeChangeNotifications () const
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

TypeSet< PosTypex_
 
TypeSet< CompTyper_
 
TypeSet< CompTypeg_
 
TypeSet< CompTypeb_
 
TypeSet< TranspPtTypetr_
 
size_type nrsegments_ = 0
 
Color undefcolor_ = Color::LightGrey()
 
Color markcolor_ = Color::DgbColor()
 
bool disabled_ = false
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class SequenceManager
 

Additional Inherited Members

- Protected Types inherited from Monitorable
typedef Threads::Atomic< DirtyCountTypeDirtyCounter
 

Detailed Description

A series of color control points able to give an (interpolated) color for every position [0,1].

Standard color sequences ('Color tables') are read at program start, including the 'user defined' ones. Users can overrule or 'remove' the standard ones. Disabled sequences will not be shown in selectors.

Sequences cannot be scaled, try the Mapper.

Member Typedef Documentation

typedef unsigned char ColTab::Sequence::CompType

Member Enumeration Documentation

Enumerator
System 
Edited 
Added 

Constructor & Destructor Documentation

ColTab::Sequence::Sequence ( )

Empty.

ColTab::Sequence::Sequence ( const char *  )

Find by name in SeqMGR.

ColTab::Sequence::~Sequence ( )
protected

Member Function Documentation

CompType ColTab::Sequence::b ( IdxType  ) const
static ChangeType ColTab::Sequence::cColorChange ( )
inlinestatic
void ColTab::Sequence::changeColor ( IdxType  ,
CompType  ,
CompType  ,
CompType   
)
void ColTab::Sequence::changePos ( IdxType  ,
PosType   
)
void ColTab::Sequence::changeTransparency ( IdxType  ,
TranspPtType   
)
bool ColTab::Sequence::chgColor ( IdxType  ,
CompType  ,
CompType  ,
CompType   
)
protected
ColTab::Sequence::cMarkColChange ( )
inline
static ChangeType ColTab::Sequence::cMarkColChange ( )
inlinestatic
Color ColTab::Sequence::color ( PosType  ) const

0 <= pos <= 1

static ChangeType ColTab::Sequence::cSegmentationChange ( )
inlinestatic
static ChangeType ColTab::Sequence::cTransparencyChange ( )
inlinestatic
static ChangeType ColTab::Sequence::cUdfColChange ( )
inlinestatic
void ColTab::Sequence::emitStatusChg ( ) const
protected
void ColTab::Sequence::fillPar ( IOPar ) const
CompType ColTab::Sequence::g ( IdxType  ) const
size_type ColTab::Sequence::gtSize ( ) const
inlineprotected
CompType ColTab::Sequence::gtTransparencyAt ( PosType  ) const
protected
bool ColTab::Sequence::hasTransparency ( ) const
bool ColTab::Sequence::isEmpty ( ) const
inline
bool ColTab::Sequence::isSys ( ) const
inline
ColTab::Sequence::mDeclareEnumUtils ( Status  )
ColTab::Sequence::mDeclInstanceCreatedNotifierAccess ( Sequence  )
ColTab::Sequence::mDeclMonitorableAssignment ( Sequence  )
ColTab::Sequence::mImplSimpleMonitoredGetSet ( inline  ,
disabled  ,
setDisabled  ,
bool  ,
disabled_  ,
cStatusChange()   
) const
ColTab::Sequence::mImplSimpleMonitoredGetSet ( inline  ,
nrSegments  ,
setNrSegments  ,
size_type  ,
nrsegments_  ,
cSegmentationChange()   
) const
inline
ColTab::Sequence::mImplSimpleMonitoredGetSet ( inline  ,
undefColor  ,
setUndefColor  ,
Color  ,
undefcolor_  ,
cUdfColChange()   
)
PosType ColTab::Sequence::position ( IdxType  ) const
CompType ColTab::Sequence::r ( IdxType  ) const
void ColTab::Sequence::removeAllColors ( )
void ColTab::Sequence::removeColor ( IdxType  )
void ColTab::Sequence::removeTransparencies ( )
void ColTab::Sequence::removeTransparencyAt ( IdxType  )
bool ColTab::Sequence::rmColor ( IdxType  )
protected
static const char* ColTab::Sequence::sDefaultName ( bool  for_seismics = false)
static
IdxType ColTab::Sequence::setColor ( PosType  ,
CompType  ,
CompType  ,
CompType   
)
void ColTab::Sequence::setTransparency ( TranspPtType  )
size_type ColTab::Sequence::size ( ) const
static const char* ColTab::Sequence::sKeyCtbl ( )
static
static const char* ColTab::Sequence::sKeyDisabled ( )
static
static const char* ColTab::Sequence::sKeyMarkColor ( )
static
static const char* ColTab::Sequence::sKeyNrSegments ( )
static
static const char* ColTab::Sequence::sKeyTransparency ( )
static
static const char* ColTab::Sequence::sKeyUdfColor ( )
static
static const char* ColTab::Sequence::sKeyValCol ( )
static
PosType ColTab::Sequence::snapToSegmentCenter ( PosType  ) const
protected
Status ColTab::Sequence::status ( ) const
TranspPtType ColTab::Sequence::transparency ( IdxType  ) const
CompType ColTab::Sequence::transparencyAt ( PosType  ) const
size_type ColTab::Sequence::transparencySize ( ) const
bool ColTab::Sequence::usePar ( const IOPar )

Friends And Related Function Documentation

friend class SequenceManager
friend

Member Data Documentation

TypeSet<CompType> ColTab::Sequence::b_
protected
ColTab::Sequence::Color
bool ColTab::Sequence::disabled_ = false
protected
TypeSet<CompType> ColTab::Sequence::g_
protected
ColTab::Sequence::markColor
ColTab::Sequence::markcolor_
Color ColTab::Sequence::markcolor_ = Color::DgbColor()
protected
size_type ColTab::Sequence::nrsegments_ = 0
protected
TypeSet<CompType> ColTab::Sequence::r_
protected
ColTab::Sequence::setMarkColor
TypeSet<TranspPtType> ColTab::Sequence::tr_
protected
Color ColTab::Sequence::undefcolor_ = Color::LightGrey()
protected
TypeSet<PosType> ColTab::Sequence::x_
protected

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