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

Simple, single-value property. More...

Inheritance diagram for ValueProperty:
[legend]

Public Member Functions

 ValueProperty (const PropertyRef &)
 
 ValueProperty (const PropertyRef &, float val)
 
 ~ValueProperty ()
 
ValuePropertyclone () const override
 
const char * def () const override
 
const char * factoryKeyword () const override
 
bool isUdf () const override
 
bool isValue () const override
 
void setDef (const char *) override
 
void setValue (float v)
 
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 isRange () 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

float val_
 

Protected Member Functions

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

Simple, single-value property.

<>

Constructor & Destructor Documentation

◆ ValueProperty() [1/2]

ValueProperty::ValueProperty ( const PropertyRef )

◆ ValueProperty() [2/2]

ValueProperty::ValueProperty ( const PropertyRef ,
float  val 
)

◆ ~ValueProperty()

ValueProperty::~ValueProperty ( )

Member Function Documentation

◆ clone()

ValueProperty* ValueProperty::clone ( ) const
inlineoverridevirtual

Implements Property.

◆ create()

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

◆ def()

const char* ValueProperty::def ( ) const
overridevirtual

Implements Property.

◆ doUnitChange()

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

Reimplemented from Property.

◆ factoryKeyword()

const char* ValueProperty::factoryKeyword ( ) const
inlineoverride

◆ gtVal()

float ValueProperty::gtVal ( EvalOpts  ) const
overrideprotectedvirtual

Implements Property.

◆ initClass()

static void ValueProperty::initClass ( )
inlinestatic

◆ isUdf()

bool ValueProperty::isUdf ( ) const
overridevirtual

Implements Property.

◆ isValue()

bool ValueProperty::isValue ( ) const
inlineoverridevirtual

Reimplemented from Property.

◆ setDef()

void ValueProperty::setDef ( const char *  )
overridevirtual

Implements Property.

◆ setValue()

void ValueProperty::setValue ( float  v)
inline

◆ type()

const char* ValueProperty::type ( ) const
inlineoverridevirtual

Implements Property.

◆ typeStr()

static const char* ValueProperty::typeStr ( )
inlinestatic

Member Data Documentation

◆ val_

float ValueProperty::val_

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