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

Maps data values to color sequence positions: [0,1]. More...

Inheritance diagram for ColTab::Mapper:
[legend]

Public Types

typedef MapperSetup::RangeType RangeType
 
typedef DataDistribution< ValueTypeDistribType
 
- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 

Public Member Functions

 Mapper ()
 default maps [0,1] to [0,1] More...
 
 Mapper (RangeType)
 
 Mapper (const MapperSetup &)
 
 mDeclMonitorableAssignment (Mapper)
 
MapperSetupsetup ()
 
const MapperSetupsetup () const
 
DistribTypedistribution ()
 
const DistribTypedistribution () const
 
RangeType getRange () const
 guaranteed not udf More...
 
PosType relPosition (ValueType) const
 [0,1] in bar More...
 
PosType seqPosition (ValueType) const
 [0,1] in col seq More...
 
int colIndex (ValueType, int nrcolors) const
 
- 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 cMappingChange ()
 
- 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 ()
 

Protected Member Functions

 ~Mapper ()
 
void setNotifs ()
 
PosType getHistEqRelPos (const RangeType &, ValueType) const
 
void determineRange () const
 
void setupChgCB (CallBacker *)
 
void distribChgCB (CallBacker *)
 
- 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...
 

Static Protected Member Functions

static PosType getLinRelPos (const RangeType &, ValueType)
 

Protected Attributes

RefMan< MapperSetupsetup_
 
RefMan< DistribTypedistrib_
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

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

Detailed Description

Maps data values to color sequence positions: [0,1].

Beware that the Mapper requires a data distribution if you want to map anything else than [0,1] to [0,1]. The Mapper will no longer scan your data, that needs to be done before using the Mapper. Using the [RangeLimited]DataDistributionExtracter may be helpful for that.

If setup().nrSegs() > 0, the mapper will return the centers of the segments only. For example, if nsegs_ == 3, only positions returned are 1/6, 3/6 and 5/6.

Member Typedef Documentation

Constructor & Destructor Documentation

ColTab::Mapper::Mapper ( )

default maps [0,1] to [0,1]

ColTab::Mapper::Mapper ( RangeType  )
ColTab::Mapper::Mapper ( const MapperSetup )
ColTab::Mapper::~Mapper ( )
protected

Member Function Documentation

static ChangeType ColTab::Mapper::cMappingChange ( )
inlinestatic
int ColTab::Mapper::colIndex ( ValueType  ,
int  nrcolors 
) const
void ColTab::Mapper::determineRange ( ) const
protected
void ColTab::Mapper::distribChgCB ( CallBacker )
protected
DistribType& ColTab::Mapper::distribution ( )
inline
const DistribType& ColTab::Mapper::distribution ( ) const
inline
PosType ColTab::Mapper::getHistEqRelPos ( const RangeType ,
ValueType   
) const
protected
static PosType ColTab::Mapper::getLinRelPos ( const RangeType ,
ValueType   
)
staticprotected
RangeType ColTab::Mapper::getRange ( ) const

guaranteed not udf

ColTab::Mapper::mDeclMonitorableAssignment ( Mapper  )
PosType ColTab::Mapper::relPosition ( ValueType  ) const

[0,1] in bar

PosType ColTab::Mapper::seqPosition ( ValueType  ) const

[0,1] in col seq

void ColTab::Mapper::setNotifs ( )
protected
MapperSetup& ColTab::Mapper::setup ( )
inline
const MapperSetup& ColTab::Mapper::setup ( ) const
inline
void ColTab::Mapper::setupChgCB ( CallBacker )
protected

Member Data Documentation

RefMan<DistribType> ColTab::Mapper::distrib_
protected
RefMan<MapperSetup> ColTab::Mapper::setup_
protected

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