OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | List of all members
RangeProperty Class Reference

Range of values. pos_ is usually in [0,1]. More...

Inheritance diagram for RangeProperty:
[legend]

Public Member Functions

 RangeProperty (const PropertyRef &)
 
 RangeProperty (const PropertyRef &, const Interval< float > &)
 
 ~RangeProperty ()
 
RangePropertyclone () const override
 
const char * def () const override
 
const char * factoryKeyword () const override
 
bool isRange () const override
 
bool isUdf () const override
 
void setDef (const char *) override
 
const char * type () const override
 
- Public Member Functions inherited from Property
 Property (const PropertyRef &)
 
virtual ~Property ()
 
virtual bool dependsOn (const Property &) const
 
virtual uiString errMsg () const
 
void fillPar (IOPar &) const
 
virtual bool init (const PropertySet &) const
 clears 'memory' and makes property usable More...
 
bool isEqualTo (const Property &) const
 
virtual bool isFormula () const
 
virtual bool isValue () const
 
bool matches (const char *nm, bool matchaliases) const
 
bool matches (const char *nm, bool matchaliases, float *matchval) const
 
const Mnemonicmn () const
 
const char * name () const
 
const PropertyRefref () const
 
virtual void reset ()
 
const UnitOfMeasureunit () const
 
void usePar (const IOPar &)
 
float value (EvalOpts eo=EvalOpts()) 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
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static Propertycreate (const PropertyRef &pr)
 
static void initClass ()
 
static const char * typeStr ()
 
- Static Public Member Functions inherited from Property
static Propertyget (const IOPar &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Public Attributes

Interval< float > rg_
 

Protected Member Functions

float gtAvgVal () const
 
float gtVal (EvalOpts) const override
 

Private Member Functions

void doUnitChange (const UnitOfMeasure *olduom, const UnitOfMeasure *newuom) override
 

Additional Inherited Members

- Protected Attributes inherited from Property
float lastval_ = mUdf(float)
 
const PropertyRefref_
 

Detailed Description

Range of values. pos_ is usually in [0,1].

<>

Constructor & Destructor Documentation

◆ RangeProperty() [1/2]

RangeProperty::RangeProperty ( const PropertyRef )

◆ RangeProperty() [2/2]

RangeProperty::RangeProperty ( const PropertyRef ,
const Interval< float > &   
)

◆ ~RangeProperty()

RangeProperty::~RangeProperty ( )

Member Function Documentation

◆ clone()

RangeProperty* RangeProperty::clone ( ) const
inlineoverridevirtual

Implements Property.

◆ create()

static Property* RangeProperty::create ( const PropertyRef pr)
inlinestatic

◆ def()

const char* RangeProperty::def ( ) const
overridevirtual

Implements Property.

◆ doUnitChange()

void RangeProperty::doUnitChange ( const UnitOfMeasure olduom,
const UnitOfMeasure newuom 
)
overrideprivatevirtual

Reimplemented from Property.

◆ factoryKeyword()

const char* RangeProperty::factoryKeyword ( ) const
inlineoverride

◆ gtAvgVal()

float RangeProperty::gtAvgVal ( ) const
protected

◆ gtVal()

float RangeProperty::gtVal ( EvalOpts  ) const
overrideprotectedvirtual

Implements Property.

◆ initClass()

static void RangeProperty::initClass ( )
inlinestatic

◆ isRange()

bool RangeProperty::isRange ( ) const
inlineoverridevirtual

Reimplemented from Property.

◆ isUdf()

bool RangeProperty::isUdf ( ) const
overridevirtual

Implements Property.

◆ setDef()

void RangeProperty::setDef ( const char *  )
overridevirtual

Implements Property.

◆ type()

const char* RangeProperty::type ( ) const
inlineoverridevirtual

Implements Property.

◆ typeStr()

static const char* RangeProperty::typeStr ( )
inlinestatic

Member Data Documentation

◆ rg_

Interval<float> RangeProperty::rg_

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