OpendTect-6_4  6.4
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Attrib::Texture Class Reference
Inheritance diagram for Attrib::Texture:
[legend]

Classes

struct  PosAndSteeridx
 

Public Member Functions

 Texture (Desc &)
 
void initSteering ()
 
void prepareForComputeData ()
 
- Public Member Functions inherited from Attrib::Provider
virtual bool isOK () const
 
bool is2D () const
 
const DescgetDesc () const
 
DescgetDesc ()
 
const DataHoldergetData (const BinID &relpos=BinID(0, 0), int idx=0)
 
const DataHoldergetDataDontCompute (const BinID &relpos) const
 
int nrOutputs () const
 
void enableOutput (int output, bool yn=true)
 
bool isOutputEnabled (int output) const
 
void setOutputInterestSize (bool preserve=false)
 
void enableAllOutputs (bool yn=true)
 
virtual void getCompNames (BufferStringSet &) const
 
virtual bool isSingleTrace () const
 
virtual bool usesTracePosition () const
 
virtual void setReqBufStepout (const BinID &, bool wait=false)
 
virtual void setDesBufStepout (const BinID &, bool wait=false)
 
const BinIDgetReqBufStepout () const
 
const BinIDgetDesBufStepout () const
 
void setDesiredVolume (const TrcKeyZSampling &)
 
const TrcKeyZSamplinggetDesiredVolume () const
 
void resetDesiredVolume ()
 
void setPossibleVolume (const TrcKeyZSampling &)
 
virtual bool getPossibleVolume (int outp, TrcKeyZSampling &)
 
const TrcKeyZSamplinggetPossibleVolume () const
 
int getTotalNrPos (bool)
 
void setCurLineName (const char *)
 
virtual void adjust2DLineStoredVolume ()
 
virtual Pos::GeomID getGeomID () const
 
virtual void setGeomID (Pos::GeomID)
 
virtual int moveToNextTrace (BinID startpos=BinID(-1,-1), bool firstcheck=false)
 
void computeNewStartPos (BinID &)
 
int alignInputs (ObjectSet< Provider > &)
 
int comparePosAndAlign (Provider *, bool, Provider *, bool, bool)
 
void resetMoved ()
 
void resetZIntervals ()
 
virtual const SeisTrcInfogetCurrentTrcInfo () const
 
BinID getCurrentPosition () const
 
virtual bool setCurrentPosition (const BinID &)
 
void updateCurrentInfo ()
 
virtual bool needStoredInput () const
 
void addLocalCompZIntervals (const TypeSet< Interval< int > > &)
 
const TypeSet< Interval< int > > & localCompZIntervals () const
 
void updateInputReqs (int input=-1)
 
virtual void updateStorageReqs (bool all=false)
 
void setUseSC ()
 
void setSelData (const Seis::SelData *)
 
void setExtraZ (const Interval< float > &)
 
void setNeedInterpol (bool)
 
void setExactZ (const TypeSet< float > &)
 
void computeRefStep ()
 
void setRefStep (float step)
 
float getRefStep () const
 
void computeRefZ0 ()
 
void setRefZ0 (float z0)
 
float getRefZ0 () const
 
virtual BinID getStepoutStep () const
 
ObjectSet< Provider > & getInputs ()
 
BinID getTrcInfoBid () const
 
uiString errMsg () const
 
virtual void prepSteeringForStepout (const BinID &)
 
virtual bool prepPriorToOutputSetup ()
 
virtual void prepPriorToBoundsCalc ()
 
virtual void fillDataPackWithTrc (RegularSeisDataPack *) const
 
virtual void setRdmPaths (TypeSet< BinID > *truepath, TypeSet< BinID > *snappedpath)
 For directional attributes. More...
 
virtual void updateCSIfNeeded (TrcKeyZSampling &) const
 
virtual bool compDistBetwTrcsStats (bool force=false)
 
float getApplicableCrlDist (bool) const
 
virtual float getDistBetwTrcs (bool, const char *linenm=0) const
 
BinID getElementStepout () const
 
void setDataUnavailableFlag (bool yn)
 
bool getDataUnavailableFlag () const
 

Static Public Member Functions

static void initClass ()
 
static const char * attribName ()
 
static const char * steeringStr ()
 
static const char * stepoutStr ()
 
static const char * gateStr ()
 
static const char * glcmsizeStr ()
 
static const char * globalminStr ()
 
static const char * globalmaxStr ()
 
- Static Public Member Functions inherited from Attrib::Provider
static Providercreate (Desc &, uiString &errmsg)
 
static uiString prepare (Desc &)
 

Protected Member Functions

 ~Texture ()
 
bool allowParallelComputation () const
 
bool getInputOutput (int input, TypeSet< int > &res) const
 
bool getInputData (const BinID &, int zintv)
 
bool computeData (const DataHolder &, const BinID &relpos, int z0, int nrsamples, int threadid) const
 
const BinIDdesStepout (int, int) const
 
const BinIDreqStepout (int, int) const
 
const Interval< int > * desZSampMargin (int, int) const
 
int scaleVal (float) const
 
void setFactorShift (float, float)
 
int computeGLCM (int idx, int z0, Array2D< int > &) const
 
void fillGLCM (int sampleidx, int z0, int posidx1, int posidx2, int &glcmcount, Array2D< int > &glcm) const
 
- Protected Member Functions inherited from Attrib::Provider
 Provider (Desc &)
 
virtual bool checkInpAndParsAtStart ()
 
virtual SeisMSCProvidergetMSCProvider (bool &) const
 
virtual bool preProcCommonToAllThreads (const DataHolder &out, const BinID &relpos)
 
int getDataIndex (int input) const
 
void fillInputRangesArray (Array2DImpl< BasicInterval< int > > &, int, const BasicInterval< int > &)
 
virtual bool setNrThreads (int idx)
 
virtual int minTaskSize () const
 
virtual bool finalizeCalculation (bool scs)
 
DataHoldergetDataHolder (const BinID &relpos)
 
void removeDataHolder (const BinID &relpos)
 
void setInput (int input, Provider *)
 
void addParent (Provider *prov)
 
virtual BinDataDesc getOutputFormat (int output) const
 
virtual bool doNotReUseDH () const
 
void computeDesInputCube (int inp, int out, TrcKeyZSampling &, bool usestepout=true) const
 
void setUsedMultTimes ()
 
bool isUsedMultTimes ()
 
bool isNew2DLine () const
 
virtual const Interval< float > * desZMargin (int input, int output) const
 
virtual const Interval< float > * reqZMargin (int input, int output) const
 
virtual const Interval< int > * reqZSampMargin (int input, int output) const
 
virtual bool getZStepStoredData (float &step) const
 
virtual bool getZ0StoredData (float &z0) const
 
float getInterpolInputValue (const DataHolder &, int inputidx, float zval) const
 
float getInterpolInputValue (const DataHolder &, int inputidx, float sample, int z0) const
 
float getInputValue (const DataHolder &, int inputidx, int sampleidx, int z0) const
 
void setOutputValue (const DataHolder &output, int outputidx, int sampleidx, int z0, float val) const
 
float getExtraZFromSampPos (float) const
 
float getExtraZFromSampInterval (int, int) const
 
virtual bool useInterTrcDist () const
 
float getZAtSample (int idx) const
 
bool zIsTime () const
 
float zFactor () const
 
float dipFactor () const
 
float inlDist () const
 
float crlDist () const
 
float lineDist () const
 
float trcDist () const
 
float maxSecureDip () const
 
void stdPrepSteering (const BinID &)
 

Static Protected Member Functions

static ProvidercreateInstance (Desc &)
 
static void updateDefaults (Desc &)
 
- Static Protected Member Functions inherited from Attrib::Provider
static ProviderinternalCreate (Desc &, ObjectSet< Provider > &, bool &issame, uiString &)
 

Protected Attributes

int glcmsize_
 
float scalingfactor_
 
float scalingshift_
 
float globalmin_
 
float globalmax_
 
Interval< int > sampgate_
 
Interval< float > gate_
 
Interval< int > dessampgate_
 
BinID stepout_
 
PosAndSteeridx posandsteeridx_
 
ObjectSet< const DataHolderinpdata_
 
int dataidx_
 
const DataHoldersteeringdata_
 
- Protected Attributes inherited from Attrib::Provider
ObjectSet< Providerinputs_
 
ObjectSet< Providerparents_
 
Descdesc_
 
TypeSet< int > outputinterest_
 
BinID desbufferstepout_
 
BinID reqbufferstepout_
 
TrcKeyZSamplingdesiredvolume_
 
TrcKeyZSamplingpossiblevolume_
 
TypeSet< Interval< int > > localcomputezintervals_
 
ObjectSet< Providerallexistingprov_
 
TypeSet< float > exactz_
 
ProviderTask * providertask_
 
DataHolderLineBufferlinebuffer_
 
BinID currentbid_
 
int prevtrcnr_
 
Pos::GeomID geomid_
 
const Seis::SelDataseldata_
 
Interval< float > extraz_
 
const SeisTrcInfocurtrcinfo_
 
BinID trcinfobid_
 
bool useshortcuts_
 
float refz0_
 
float refstep_
 
bool alreadymoved_
 
bool isusedmulttimes_
 
bool needinterp_
 
uiString errmsg_
 
bool dataunavailableflag_
 

Private Member Functions

 mODTextTranslationClass (Texture)
 

Detailed Description

Constructor & Destructor Documentation

Attrib::Texture::Texture ( Desc )
Attrib::Texture::~Texture ( )
inlineprotected

Member Function Documentation

bool Attrib::Texture::allowParallelComputation ( ) const
protectedvirtual

Reimplemented from Attrib::Provider.

static const char* Attrib::Texture::attribName ( )
inlinestatic
bool Attrib::Texture::computeData ( const DataHolder output,
const BinID relpos,
int  t0,
int  nrsamples,
int  threadidx 
) const
protectedvirtual

The system will use the algorithm specified in this function to compute the attribute's outputs. The results will be stored as different series in the DataHolder output.

Parameters
threadidthread identifier that may be handy when using multiple threads.

Implements Attrib::Provider.

int Attrib::Texture::computeGLCM ( int  idx,
int  z0,
Array2D< int > &   
) const
protected
static Provider* Attrib::Texture::createInstance ( Desc )
staticprotected
const BinID* Attrib::Texture::desStepout ( int  input,
int  output 
) const
protectedvirtual

The system will try to supply the attribute with the desired stepout, but will not take the desired stepout into account when computing the volume that can be computed.

Returns
the desired stepout on input if output is going to be computed, or NULL if no stepout is desired.

Reimplemented from Attrib::Provider.

const Interval<int>* Attrib::Texture::desZSampMargin ( int  input,
int  output 
) const
protectedvirtual

The gate is specified in the trace samples, and is in addition to the gate specified in desZMargin. The system will try to supply the attribute with the desired gate, but will not take the desired gate into account when computing the volume that can be computed.

Returns
the extra gate desired on input if output is going to be computed, or NULL if no extra gate is desired.

Reimplemented from Attrib::Provider.

void Attrib::Texture::fillGLCM ( int  sampleidx,
int  z0,
int  posidx1,
int  posidx2,
int &  glcmcount,
Array2D< int > &  glcm 
) const
protected
static const char* Attrib::Texture::gateStr ( )
inlinestatic
bool Attrib::Texture::getInputData ( const BinID relpos,
int  idx 
)
protectedvirtual

Gets all imput data, including data for which a stepout is required

Reimplemented from Attrib::Provider.

bool Attrib::Texture::getInputOutput ( int  input,
TypeSet< int > &   
) const
protectedvirtual

Specifies the outputs needed for calculation among all those provided by the input data; very usefull when steering used as input data

Reimplemented from Attrib::Provider.

static const char* Attrib::Texture::glcmsizeStr ( )
inlinestatic
static const char* Attrib::Texture::globalmaxStr ( )
inlinestatic
static const char* Attrib::Texture::globalminStr ( )
inlinestatic
static void Attrib::Texture::initClass ( )
static
void Attrib::Texture::initSteering ( )
inlinevirtual

Reimplemented from Attrib::Provider.

Attrib::Texture::mODTextTranslationClass ( Texture  )
private
void Attrib::Texture::prepareForComputeData ( )
virtual

Everything is known now.

Reimplemented from Attrib::Provider.

const BinID* Attrib::Texture::reqStepout ( int  input,
int  output 
) const
protectedvirtual

The system will supply the attribute with the required stepout, and use it to compute the volume that can be computed.

Returns
the required stepout on input if output is going to be computed, or NULL if no stepout is required.

Reimplemented from Attrib::Provider.

int Attrib::Texture::scaleVal ( float  ) const
protected
void Attrib::Texture::setFactorShift ( float  ,
float   
)
protected
static const char* Attrib::Texture::steeringStr ( )
inlinestatic
static const char* Attrib::Texture::stepoutStr ( )
inlinestatic
static void Attrib::Texture::updateDefaults ( Desc )
staticprotected

Member Data Documentation

int Attrib::Texture::dataidx_
protected
Interval<int> Attrib::Texture::dessampgate_
protected
Interval<float> Attrib::Texture::gate_
protected
int Attrib::Texture::glcmsize_
protected
float Attrib::Texture::globalmax_
protected
float Attrib::Texture::globalmin_
protected
ObjectSet<const DataHolder> Attrib::Texture::inpdata_
protected
PosAndSteeridx Attrib::Texture::posandsteeridx_
protected
Interval<int> Attrib::Texture::sampgate_
protected
float Attrib::Texture::scalingfactor_
protected
float Attrib::Texture::scalingshift_
protected
const DataHolder* Attrib::Texture::steeringdata_
protected
BinID Attrib::Texture::stepout_
protected

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