OpendTect  6.6
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FaultTrace Class Reference

Subclass of Coord3List that represents a fault trace. More...

Inheritance diagram for FaultTrace:
[legend]

Public Types

enum  Act {
  AllowCrossing , ForbidCrossing , ForbidCrossHigher , ForbidCrossLower ,
  AllowMinTraceToFault , AllowMaxTraceToFault , AllowMinInlToFault , AllowMaxInlToFault ,
  AllowMinCrlToFault , AllowMaxCrlToFault
}
 

Public Member Functions

int add (const Coord3 &)
 Return new id, or -1 if unsuccessful. More...
 
int add (const Coord3 &, float trcnr)
 
void addValue (int id, const Coord3 &)
 Adds value to existing value at id. More...
 
FaultTraceclone () const
 
void computeRange ()
 
Coord3 get (int) const
 
bool getCoordsBetween (int trc0, float z0, int trc1, float z1, TypeSet< Coord > &coords) const
 
bool getFaultTraceIntersection (const FaultTrace &, int &trace, float &zval) const
 
bool getHorCrossings (const BinIDValueSet &, Interval< float > &topzvals, Interval< float > &botzvals) const
 
bool getHorIntersection (const EM::Horizon &, BinID &) const
 
bool getHorizonIntersectionInfo (const EM::Horizon &hor, Pos::GeomID geomid, TypeSet< BinID > &pos1bids, TypeSet< float > &pos1zs, TypeSet< BinID > &pos2bids, TypeSet< float > &pos2zs, TypeSet< Coord > &intersections, bool findfirstonly=true, bool allowextention=false) const
 
bool getImage (const BinID &srcbid, float srcz, const Interval< float > &tophorzvals, const Interval< float > &bothorzvals, const StepInterval< int > &trcrg, BinID &imgbid, float &imgz, bool forward) const
 
const TypeSet< int > & getIndices () const
 
bool getIntersection (const BinID &, float, const BinID &, float, BinID &, float &, const StepInterval< int > *trcrg=0, bool snappositive=true) const
 
bool getIntersectionTraces (float zval, TypeSet< int > &trcs) const
 
bool getIntersectionZs (int trcnr, TypeSet< float > &zs) const
 
float getTrcNr (int) const
 
float getZValFor (const BinID &) const
 
bool includes (const BinID &) const
 
bool isCrossing (const BinID &, float, const BinID &, float) const
 
bool isDefined (int) const
 
bool isEditedOnCrl () const
 
bool isInl () const
 
bool isOK () const
 
bool isOnFault (const BinID &, float z, float threshold) const
 
bool isOnPosSide (const BinID &, float) const
 
int lineNr () const
 
int nextID (int) const
 
void remove (const TypeSet< int > &)
 May contain duplicates. More...
 
void remove (int)
 
void set (int, const Coord3 &)
 
void set (int, const Coord3 &, float)
 
void setEditedOnCrl (bool yn)
 
void setIndices (const TypeSet< int > &)
 
void setIsInl (bool yn)
 
void setLineNr (int nr)
 
int size () const
 
const Interval< int > & trcRange () const
 
const Interval< float > & zRange () const
 
- Public Member Functions inherited from Coord3List
Coord3 center () const
 

Static Public Member Functions

static void getActNames (BufferStringSet &, bool is2d)
 
static void getAllActNames (BufferStringSet &)
 
static const char * sKeyFaultAct ()
 

Protected Member Functions

 ~FaultTrace ()
 
void computeTraceSegments ()
 
Coord getIntersection (const BinID &, float, const BinID &, float) const
 
bool handleUntrimmed (const BinIDValueSet &, Interval< float > &, const BinID &, const BinID &, bool) const
 

Protected Attributes

TypeSet< int > coordindices_
 
TypeSet< Coord3coords_
 
bool editedoncrl_
 
bool isinl_
 
Threads::Lock lock_
 
int nr_
 
TypeSet< Line2tracesegs_
 
TypeSet< float > trcnrs_
 
Interval< int > trcrange_
 
Interval< float > zrange_
 

Detailed Description

Subclass of Coord3List that represents a fault trace.

<>

Member Enumeration Documentation

◆ Act

Enumerator
AllowCrossing 
ForbidCrossing 
ForbidCrossHigher 
ForbidCrossLower 
AllowMinTraceToFault 
AllowMaxTraceToFault 
AllowMinInlToFault 
AllowMaxInlToFault 
AllowMinCrlToFault 
AllowMaxCrlToFault 

Constructor & Destructor Documentation

◆ ~FaultTrace()

FaultTrace::~FaultTrace ( )
inlineprotected

Member Function Documentation

◆ add() [1/2]

int FaultTrace::add ( const Coord3 )
virtual

Return new id, or -1 if unsuccessful.

Implements Coord3List.

◆ add() [2/2]

int FaultTrace::add ( const Coord3 ,
float  trcnr 
)

◆ addValue()

void FaultTrace::addValue ( int  id,
const Coord3  
)
inlinevirtual

Adds value to existing value at id.

Implements Coord3List.

◆ clone()

FaultTrace* FaultTrace::clone ( ) const

◆ computeRange()

void FaultTrace::computeRange ( )

◆ computeTraceSegments()

void FaultTrace::computeTraceSegments ( )
protected

◆ get()

Coord3 FaultTrace::get ( int  ) const
virtual

Implements Coord3List.

◆ getActNames()

static void FaultTrace::getActNames ( BufferStringSet ,
bool  is2d 
)
static

◆ getAllActNames()

static void FaultTrace::getAllActNames ( BufferStringSet )
static

◆ getCoordsBetween()

bool FaultTrace::getCoordsBetween ( int  trc0,
float  z0,
int  trc1,
float  z1,
TypeSet< Coord > &  coords 
) const

◆ getFaultTraceIntersection()

bool FaultTrace::getFaultTraceIntersection ( const FaultTrace ,
int &  trace,
float &  zval 
) const

◆ getHorCrossings()

bool FaultTrace::getHorCrossings ( const BinIDValueSet ,
Interval< float > &  topzvals,
Interval< float > &  botzvals 
) const

◆ getHorIntersection()

bool FaultTrace::getHorIntersection ( const EM::Horizon ,
BinID  
) const

◆ getHorizonIntersectionInfo()

bool FaultTrace::getHorizonIntersectionInfo ( const EM::Horizon hor,
Pos::GeomID  geomid,
TypeSet< BinID > &  pos1bids,
TypeSet< float > &  pos1zs,
TypeSet< BinID > &  pos2bids,
TypeSet< float > &  pos2zs,
TypeSet< Coord > &  intersections,
bool  findfirstonly = true,
bool  allowextention = false 
) const

◆ getImage()

bool FaultTrace::getImage ( const BinID srcbid,
float  srcz,
const Interval< float > &  tophorzvals,
const Interval< float > &  bothorzvals,
const StepInterval< int > &  trcrg,
BinID imgbid,
float &  imgz,
bool  forward 
) const

◆ getIndices()

const TypeSet<int>& FaultTrace::getIndices ( ) const

◆ getIntersection() [1/2]

Coord FaultTrace::getIntersection ( const BinID ,
float  ,
const BinID ,
float   
) const
protected

◆ getIntersection() [2/2]

bool FaultTrace::getIntersection ( const BinID ,
float  ,
const BinID ,
float  ,
BinID ,
float &  ,
const StepInterval< int > *  trcrg = 0,
bool  snappositive = true 
) const

◆ getIntersectionTraces()

bool FaultTrace::getIntersectionTraces ( float  zval,
TypeSet< int > &  trcs 
) const

◆ getIntersectionZs()

bool FaultTrace::getIntersectionZs ( int  trcnr,
TypeSet< float > &  zs 
) const

◆ getTrcNr()

float FaultTrace::getTrcNr ( int  ) const

◆ getZValFor()

float FaultTrace::getZValFor ( const BinID ) const

◆ handleUntrimmed()

bool FaultTrace::handleUntrimmed ( const BinIDValueSet ,
Interval< float > &  ,
const BinID ,
const BinID ,
bool   
) const
protected

◆ includes()

bool FaultTrace::includes ( const BinID ) const

◆ isCrossing()

bool FaultTrace::isCrossing ( const BinID ,
float  ,
const BinID ,
float   
) const

◆ isDefined()

bool FaultTrace::isDefined ( int  ) const
virtual

Implements Coord3List.

◆ isEditedOnCrl()

bool FaultTrace::isEditedOnCrl ( ) const
inline

◆ isInl()

bool FaultTrace::isInl ( ) const
inline

◆ isOK()

bool FaultTrace::isOK ( ) const

◆ isOnFault()

bool FaultTrace::isOnFault ( const BinID ,
float  z,
float  threshold 
) const

◆ isOnPosSide()

bool FaultTrace::isOnPosSide ( const BinID ,
float   
) const

◆ lineNr()

int FaultTrace::lineNr ( ) const
inline

◆ nextID()

int FaultTrace::nextID ( int  previd) const
virtual

If previd == -1, first id is returned. If -1 is returned, no more id's are available.

Implements Coord3List.

◆ remove() [1/2]

void FaultTrace::remove ( const TypeSet< int > &  )
inlinevirtual

May contain duplicates.

Implements Coord3List.

◆ remove() [2/2]

void FaultTrace::remove ( int  )
virtual

Implements Coord3List.

◆ set() [1/2]

void FaultTrace::set ( int  ,
const Coord3  
)
virtual

Implements Coord3List.

◆ set() [2/2]

void FaultTrace::set ( int  ,
const Coord3 ,
float   
)

◆ setEditedOnCrl()

void FaultTrace::setEditedOnCrl ( bool  yn)
inline

◆ setIndices()

void FaultTrace::setIndices ( const TypeSet< int > &  )

◆ setIsInl()

void FaultTrace::setIsInl ( bool  yn)
inline

◆ setLineNr()

void FaultTrace::setLineNr ( int  nr)
inline

◆ size()

int FaultTrace::size ( ) const
inlinevirtual

Implements Coord3List.

◆ sKeyFaultAct()

static const char* FaultTrace::sKeyFaultAct ( )
inlinestatic

◆ trcRange()

const Interval<int>& FaultTrace::trcRange ( ) const
inline

◆ zRange()

const Interval<float>& FaultTrace::zRange ( ) const
inline

Member Data Documentation

◆ coordindices_

TypeSet<int> FaultTrace::coordindices_
protected

◆ coords_

TypeSet<Coord3> FaultTrace::coords_
protected

◆ editedoncrl_

bool FaultTrace::editedoncrl_
protected

◆ isinl_

bool FaultTrace::isinl_
protected

◆ lock_

Threads::Lock FaultTrace::lock_
mutableprotected

◆ nr_

int FaultTrace::nr_
protected

◆ tracesegs_

TypeSet<Line2> FaultTrace::tracesegs_
protected

◆ trcnrs_

TypeSet<float> FaultTrace::trcnrs_
protected

◆ trcrange_

Interval<int> FaultTrace::trcrange_
protected

◆ zrange_

Interval<float> FaultTrace::zrange_
protected

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