OpendTect-6_4  6.4
Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | List of all members
Attrib::PSAttrib Class Reference

"Prestack Attribute" More...

Inheritance diagram for Attrib::PSAttrib:
[legend]

Protected Member Functions

 ~PSAttrib ()
 
bool allowParallelComputation () const
 
bool getInputOutput (int input, TypeSet< int > &res) const
 
bool getInputData (const BinID &, int idx)
 
bool getAngleInputData ()
 
bool computeData (const DataHolder &, const BinID &relpos, int t0, int nrsamples, int threadid) const
 
void prepPriorToBoundsCalc ()
 
void setSmootheningPar ()
 
float getXscaler (bool isoffset, bool isindegrees) const
 
DataPack::ID getPreProcessedID (const BinID &relbid)
 
bool getGatherData (const BinID &bid, DataPack::ID &gatherid, DataPack::ID &angglegid)
 
- 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 BinIDdesStepout (int input, int output) const
 
virtual const BinIDreqStepout (int input, int output) 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 > * desZSampMargin (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 updateDesc (Desc &)
 
- Static Protected Member Functions inherited from Attrib::Provider
static ProviderinternalCreate (Desc &, ObjectSet< Provider > &, bool &issame, uiString &)
 

Protected Attributes

MultiID psid_
 
IOObjpsioobj_
 
SeisPSReaderpsrdr_
 
int component_
 
PreStack::ProcessManagerpreprocessor_
 
PreStack::PropCalcpropcalc_
 
PreStack::PropCalc::Setup setup_
 
PreStack::AngleComputeranglecomp_
 
int anglegsdpid_
 
MultiID preprocid_
 
int dataidx_
 
const DataHolderinputdata_
 
MultiID velocityid_
 
ObjectSet< PreStack::Gathergatherset_
 
- 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 Types

enum  GatherType { Off, Ang }
 

Private Member Functions

mODTextTranslationClass(PSAttrib) public PSAttrib (Desc &)
 
 mDeclareEnumUtils (GatherType) enum XaxisUnit
 
mDeclareEnumUtils(XaxisUnit) const PreStack void setAngleComp (PreStack::AngleComputer *)
 
void setAngleData (DataPack::ID)
 
PreStack::GatherSetDataPackgetMemoryGatherSetDP () const
 
void setGatherIsAngle (PreStack::Gather &)
 

Static Private Member Functions

static const char * attribName ()
 
static const char * offStartStr ()
 
static const char * offStopStr ()
 
static const char * preProcessStr ()
 
static const char * calctypeStr ()
 
static const char * stattypeStr ()
 
static const char * lsqtypeStr ()
 
static const char * offsaxisStr ()
 
static const char * valaxisStr ()
 
static const char * componentStr ()
 
static const char * apertureStr ()
 
static const char * velocityIDStr ()
 
static const char * useangleStr ()
 
static const char * angleStartStr ()
 
static const char * angleStopStr ()
 
static const char * rayTracerParamStr ()
 
static const char * gathertypeStr ()
 
static const char * xaxisunitStr ()
 
static const char * angleDPIDStr ()
 
static const char * angleSmoothType ()
 
static const char * angleFiltFunction ()
 
static const char * angleFiltValue ()
 
static const char * angleFiltLength ()
 
static const char * angleFFTF3Freq ()
 
static const char * angleFFTF4Freq ()
 

Additional Inherited Members

- 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 initSteering ()
 
virtual void prepSteeringForStepout (const BinID &)
 
virtual bool prepPriorToOutputSetup ()
 
virtual void prepareForComputeData ()
 
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 inherited from Attrib::Provider
static Providercreate (Desc &, uiString &errmsg)
 
static uiString prepare (Desc &)
 

Detailed Description

"Prestack Attribute"

Outputs a standard attribute from prestack data. Classname should really be PreStack, but the compiler complains and mixes up with PreStack namespace.

  PreStack calctype= axistype= lsqtype= offsaxis= valaxis= useazim= comp=
  aperture= preprocessor=
  Input:
  0             Prestack Data
  Output:
  0             Attribute

Member Enumeration Documentation

Enumerator
Off 
Ang 

Constructor & Destructor Documentation

mODTextTranslationClass (PSAttrib) public Attrib::PSAttrib::PSAttrib ( Desc )
private
Attrib::PSAttrib::~PSAttrib ( )
protected

Member Function Documentation

bool Attrib::PSAttrib::allowParallelComputation ( ) const
inlineprotectedvirtual

Reimplemented from Attrib::Provider.

static const char* Attrib::PSAttrib::angleDPIDStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleFFTF3Freq ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleFFTF4Freq ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleFiltFunction ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleFiltLength ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleFiltValue ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleSmoothType ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleStartStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::angleStopStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::apertureStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::attribName ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::calctypeStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::componentStr ( )
inlinestaticprivate
bool Attrib::PSAttrib::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.

static Provider* Attrib::PSAttrib::createInstance ( Desc )
staticprotected
static const char* Attrib::PSAttrib::gathertypeStr ( )
inlinestaticprivate
bool Attrib::PSAttrib::getAngleInputData ( )
protected
bool Attrib::PSAttrib::getGatherData ( const BinID bid,
DataPack::ID gatherid,
DataPack::ID angglegid 
)
protected
bool Attrib::PSAttrib::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::PSAttrib::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.

PreStack::GatherSetDataPack* Attrib::PSAttrib::getMemoryGatherSetDP ( ) const
private
DataPack::ID Attrib::PSAttrib::getPreProcessedID ( const BinID relbid)
protected
float Attrib::PSAttrib::getXscaler ( bool  isoffset,
bool  isindegrees 
) const
protected
static const char* Attrib::PSAttrib::lsqtypeStr ( )
inlinestaticprivate
Attrib::PSAttrib::mDeclareEnumUtils ( GatherType  )
inlineprivate
static const char* Attrib::PSAttrib::offsaxisStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::offStartStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::offStopStr ( )
inlinestaticprivate
void Attrib::PSAttrib::prepPriorToBoundsCalc ( )
protectedvirtual

Z refstep is known now, this is meant to be used before possible- and desired- volumes are computed

Reimplemented from Attrib::Provider.

static const char* Attrib::PSAttrib::preProcessStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::rayTracerParamStr ( )
inlinestaticprivate
mDeclareEnumUtils (XaxisUnit) const PreStack void Attrib::PSAttrib::setAngleComp ( PreStack::AngleComputer )
private
void Attrib::PSAttrib::setAngleData ( DataPack::ID  )
private
void Attrib::PSAttrib::setGatherIsAngle ( PreStack::Gather )
private
void Attrib::PSAttrib::setSmootheningPar ( )
protected
static const char* Attrib::PSAttrib::stattypeStr ( )
inlinestaticprivate
static void Attrib::PSAttrib::updateDesc ( Desc )
staticprotected
static const char* Attrib::PSAttrib::useangleStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::valaxisStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::velocityIDStr ( )
inlinestaticprivate
static const char* Attrib::PSAttrib::xaxisunitStr ( )
inlinestaticprivate

Member Data Documentation

PreStack::AngleComputer* Attrib::PSAttrib::anglecomp_
protected
int Attrib::PSAttrib::anglegsdpid_
protected
int Attrib::PSAttrib::component_
protected
int Attrib::PSAttrib::dataidx_
protected
ObjectSet<PreStack::Gather> Attrib::PSAttrib::gatherset_
protected
const DataHolder* Attrib::PSAttrib::inputdata_
protected
PreStack::ProcessManager* Attrib::PSAttrib::preprocessor_
protected
MultiID Attrib::PSAttrib::preprocid_
protected
PreStack::PropCalc* Attrib::PSAttrib::propcalc_
protected
MultiID Attrib::PSAttrib::psid_
protected
IOObj* Attrib::PSAttrib::psioobj_
protected
SeisPSReader* Attrib::PSAttrib::psrdr_
protected
PreStack::PropCalc::Setup Attrib::PSAttrib::setup_
protected
MultiID Attrib::PSAttrib::velocityid_
protected

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