OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Attrib::SelSpec Class Reference

Specifies an attribute selection (ID or output number of NN). More...

Public Member Functions

 SelSpec (const char *userref=nullptr, DescID id=cAttribNotSel(), bool isnla=false, const char *objectref=nullptr)
 
 SelSpec (const SelSpec &)
 
virtual ~SelSpec ()
 
const char * defString () const
 
const StepInterval< int > & discrSpec () const
 
void fillPar (IOPar &) const
 
const BinDataDescgetPreloadDataDesc (Pos::GeomID geomid) const
 
const DescIDid () const
 
bool is2D () const
 
bool isNLA () const
 
bool isStored () const
 
bool isZTransformed () const
 
const char * objectRef () const
 
bool operator!= (const SelSpec &) const
 
SelSpecoperator= (const SelSpec &)
 
bool operator== (const SelSpec &) const
 
void set (const char *r, DescID i, bool isnla, const char *objr)
 
void set (const Desc &)
 
void set (const NLAModel &, int)
 
void set2DFlag (bool yn=true)
 
void setDefString (const char *def)
 
void setDiscrSpec (const StepInterval< int > &ds)
 
void setIDFromRef (const DescSet &)
 
void setIDFromRef (const NLAModel &)
 
void setObjectRef (const char *objr)
 
void setRefFromID (const DescSet &)
 
void setRefFromID (const NLAModel &)
 
void setUserRef (const char *ref)
 
void setZDomainKey (const char *key)
 
void setZDomainKey (const Desc &)
 
void setZDomainUnit (const char *unitstr)
 
bool usePar (const IOPar &)
 
const char * userRef () const
 
const char * zDomainKey () const
 
const char * zDomainUnit () const
 

Static Public Member Functions

static const DescIDcAttribNotSel ()
 
static const DescIDcNoAttrib ()
 
static const DescIDcOtherAttrib ()
 

Protected Member Functions

void setDiscr (const DescSet &)
 
void setDiscr (const NLAModel &)
 

Static Protected Member Functions

static const char * sKeyDefStr ()
 
static const char * sKeyID ()
 
static const char * sKeyIs2D ()
 
static const char * sKeyIsNLA ()
 
static const char * sKeyObjRef ()
 
static const char * sKeyOnlyStoredData ()
 
static const char * sKeyRef ()
 

Protected Attributes

BufferString defstring_
 
StepInterval< int > discrspec_
 
DescID id_
 
bool is2d_ = false
 
bool isnla_ = false
 
BufferString objref_
 
BufferString ref_
 
BufferString zdomainkey_
 

Detailed Description

Specifies an attribute selection (ID or output number of NN).

When attrib sets and NLAs change, the IDs may be no longer valid. Thus, the user reference is stored, so you can try to get a valid ID in that situation.

Object reference holds the NLA or attribute set name. discrSpec() specifies whether (if (0,0) interval not) and how a discrete output is to be expected.

<>

Constructor & Destructor Documentation

◆ SelSpec() [1/2]

Attrib::SelSpec::SelSpec ( const char *  userref = nullptr,
DescID  id = cAttribNotSel(),
bool  isnla = false,
const char *  objectref = nullptr 
)

◆ SelSpec() [2/2]

Attrib::SelSpec::SelSpec ( const SelSpec )

◆ ~SelSpec()

virtual Attrib::SelSpec::~SelSpec ( )
virtual

Member Function Documentation

◆ cAttribNotSel()

static const DescID& Attrib::SelSpec::cAttribNotSel ( )
static

◆ cNoAttrib()

static const DescID& Attrib::SelSpec::cNoAttrib ( )
static

◆ cOtherAttrib()

static const DescID& Attrib::SelSpec::cOtherAttrib ( )
static

◆ defString()

const char* Attrib::SelSpec::defString ( ) const
inline

◆ discrSpec()

const StepInterval<int>& Attrib::SelSpec::discrSpec ( ) const
inline

◆ fillPar()

void Attrib::SelSpec::fillPar ( IOPar ) const

◆ getPreloadDataDesc()

const BinDataDesc* Attrib::SelSpec::getPreloadDataDesc ( Pos::GeomID  geomid) const

◆ id()

const DescID& Attrib::SelSpec::id ( ) const
inline

◆ is2D()

bool Attrib::SelSpec::is2D ( ) const
inline

◆ isNLA()

bool Attrib::SelSpec::isNLA ( ) const
inline

◆ isStored()

bool Attrib::SelSpec::isStored ( ) const

◆ isZTransformed()

bool Attrib::SelSpec::isZTransformed ( ) const

◆ objectRef()

const char* Attrib::SelSpec::objectRef ( ) const
inline

◆ operator!=()

bool Attrib::SelSpec::operator!= ( const SelSpec ) const

◆ operator=()

SelSpec& Attrib::SelSpec::operator= ( const SelSpec )

◆ operator==()

bool Attrib::SelSpec::operator== ( const SelSpec ) const

◆ set() [1/3]

void Attrib::SelSpec::set ( const char *  r,
DescID  i,
bool  isnla,
const char *  objr 
)
inline

◆ set() [2/3]

void Attrib::SelSpec::set ( const Desc )

◆ set() [3/3]

void Attrib::SelSpec::set ( const NLAModel ,
int   
)

◆ set2DFlag()

void Attrib::SelSpec::set2DFlag ( bool  yn = true)
inline

◆ setDefString()

void Attrib::SelSpec::setDefString ( const char *  def)
inline

◆ setDiscr() [1/2]

void Attrib::SelSpec::setDiscr ( const DescSet )
protected

◆ setDiscr() [2/2]

void Attrib::SelSpec::setDiscr ( const NLAModel )
protected

◆ setDiscrSpec()

void Attrib::SelSpec::setDiscrSpec ( const StepInterval< int > &  ds)
inline

◆ setIDFromRef() [1/2]

void Attrib::SelSpec::setIDFromRef ( const DescSet )

◆ setIDFromRef() [2/2]

void Attrib::SelSpec::setIDFromRef ( const NLAModel )

◆ setObjectRef()

void Attrib::SelSpec::setObjectRef ( const char *  objr)
inline

◆ setRefFromID() [1/2]

void Attrib::SelSpec::setRefFromID ( const DescSet )

◆ setRefFromID() [2/2]

void Attrib::SelSpec::setRefFromID ( const NLAModel )

◆ setUserRef()

void Attrib::SelSpec::setUserRef ( const char *  ref)
inline

◆ setZDomainKey() [1/2]

void Attrib::SelSpec::setZDomainKey ( const char *  key)
inline

◆ setZDomainKey() [2/2]

void Attrib::SelSpec::setZDomainKey ( const Desc )

◆ setZDomainUnit()

void Attrib::SelSpec::setZDomainUnit ( const char *  unitstr)

◆ sKeyDefStr()

static const char* Attrib::SelSpec::sKeyDefStr ( )
staticprotected

◆ sKeyID()

static const char* Attrib::SelSpec::sKeyID ( )
staticprotected

◆ sKeyIs2D()

static const char* Attrib::SelSpec::sKeyIs2D ( )
staticprotected

◆ sKeyIsNLA()

static const char* Attrib::SelSpec::sKeyIsNLA ( )
staticprotected

◆ sKeyObjRef()

static const char* Attrib::SelSpec::sKeyObjRef ( )
staticprotected

◆ sKeyOnlyStoredData()

static const char* Attrib::SelSpec::sKeyOnlyStoredData ( )
staticprotected

◆ sKeyRef()

static const char* Attrib::SelSpec::sKeyRef ( )
staticprotected

◆ usePar()

bool Attrib::SelSpec::usePar ( const IOPar )

◆ userRef()

const char* Attrib::SelSpec::userRef ( ) const
inline

◆ zDomainKey()

const char* Attrib::SelSpec::zDomainKey ( ) const
inline

◆ zDomainUnit()

const char* Attrib::SelSpec::zDomainUnit ( ) const

Member Data Documentation

◆ defstring_

BufferString Attrib::SelSpec::defstring_
protected

◆ discrspec_

StepInterval<int> Attrib::SelSpec::discrspec_
protected

◆ id_

DescID Attrib::SelSpec::id_
protected

◆ is2d_

bool Attrib::SelSpec::is2d_ = false
protected

◆ isnla_

bool Attrib::SelSpec::isnla_ = false
protected

◆ objref_

BufferString Attrib::SelSpec::objref_
protected

◆ ref_

BufferString Attrib::SelSpec::ref_
protected

◆ zdomainkey_

BufferString Attrib::SelSpec::zdomainkey_
protected

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