OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Survey::GeometryManager Class Reference

Makes geometries accessible from a geometry ID, or a MultiID.
More...

Public Member Functions

 GeometryManager ()
 
 ~GeometryManager ()
 
Pos::GeomID addNewEntry (Geometry *, uiString &)
 
TrcKey::SurvID default3DSurvID () const
 
bool fetchFrom2DGeom (uiString &errmsg)
 
bool fillGeometries (TaskRunner *)
 
Pos::GeomID findRelated (const Geometry &, Geometry::RelationType &, bool usezrg) const
 Returns cUndefGeomID() if none found. More...
 
const Geometry2Dget2D (Pos::GeomID) const
 
Geometry2Dget2D (Pos::SurvID)
 
const GeometrygetGeometry (const char *) const
 
const GeometrygetGeometry (const MultiID &) const
 
GeometrygetGeometry (Pos::GeomID)
 
const GeometrygetGeometry (Pos::GeomID) const
 
const Geometry3DgetGeometry3D (Pos::SurvID) const
 
Pos::GeomID getGeomID (const char *linenm) const
 
Pos::GeomID getGeomID (const char *lsm, const char *linenm) const
 
bool getList (BufferStringSet &names, TypeSet< Pos::GeomID > &ids, bool is2d) const
 
const char * getName (Pos::GeomID) const
 
bool isUsable (Pos::GeomID) const
 
TrcKey nearestTrace (const Coord &, bool is2d, float *dist=nullptr) const
 
int nrGeometries () const
 
bool removeGeometry (Pos::GeomID)
 
Coord toCoord (const TrcKey &) const
 
TrcKey traceKey (Pos::GeomID, Pos::LineID, Pos::TraceID) const
 For 3D. More...
 
TrcKey traceKey (Pos::GeomID, Pos::TraceID) const
 For 2D. More...
 
bool updateGeometries (TaskRunner *)
 
bool write (Geometry &, uiString &)
 
StepInterval< float > zRange (Pos::GeomID) const
 

Static Public Member Functions

static Pos::GeomID cUndefGeomID ()
 
static TrcKey::SurvID get2DSurvID ()
 
static TrcKey::SurvID get3DSurvID ()
 

Protected Member Functions

void addGeometry (Geometry &)
 
void ensureSIPresent () const
 
bool hasDuplicateLineNames ()
 
int indexOf (Pos::GeomID) const
 

Protected Attributes

ObjectSet< Geometrygeometries_
 
bool hasduplnms_
 
Threads::Lock lock_
 

Static Protected Attributes

static const TrcKey::SurvID surv2did_
 
static const TrcKey::SurvID surv3did_
 

Detailed Description

Makes geometries accessible from a geometry ID, or a MultiID.

<>

Constructor & Destructor Documentation

◆ GeometryManager()

Survey::GeometryManager::GeometryManager ( )

◆ ~GeometryManager()

Survey::GeometryManager::~GeometryManager ( )

Member Function Documentation

◆ addGeometry()

void Survey::GeometryManager::addGeometry ( Geometry )
protected

◆ addNewEntry()

Pos::GeomID Survey::GeometryManager::addNewEntry ( Geometry ,
uiString  
)

◆ cUndefGeomID()

static Pos::GeomID Survey::GeometryManager::cUndefGeomID ( )
inlinestatic

◆ default3DSurvID()

TrcKey::SurvID Survey::GeometryManager::default3DSurvID ( ) const

◆ ensureSIPresent()

void Survey::GeometryManager::ensureSIPresent ( ) const
protected

◆ fetchFrom2DGeom()

bool Survey::GeometryManager::fetchFrom2DGeom ( uiString errmsg)

◆ fillGeometries()

bool Survey::GeometryManager::fillGeometries ( TaskRunner )

◆ findRelated()

Pos::GeomID Survey::GeometryManager::findRelated ( const Geometry ,
Geometry::RelationType ,
bool  usezrg 
) const

Returns cUndefGeomID() if none found.

◆ get2D() [1/2]

const Geometry2D& Survey::GeometryManager::get2D ( Pos::GeomID  ) const

◆ get2D() [2/2]

Geometry2D& Survey::GeometryManager::get2D ( Pos::SurvID  )

◆ get2DSurvID()

static TrcKey::SurvID Survey::GeometryManager::get2DSurvID ( )
inlinestatic

◆ get3DSurvID()

static TrcKey::SurvID Survey::GeometryManager::get3DSurvID ( )
inlinestatic

◆ getGeometry() [1/4]

const Geometry* Survey::GeometryManager::getGeometry ( const char *  ) const

◆ getGeometry() [2/4]

const Geometry* Survey::GeometryManager::getGeometry ( const MultiID ) const

◆ getGeometry() [3/4]

Geometry* Survey::GeometryManager::getGeometry ( Pos::GeomID  )

Admin functions: Use the following functions only when you know what you are doing.

◆ getGeometry() [4/4]

const Geometry* Survey::GeometryManager::getGeometry ( Pos::GeomID  ) const

◆ getGeometry3D()

const Geometry3D* Survey::GeometryManager::getGeometry3D ( Pos::SurvID  ) const

◆ getGeomID() [1/2]

Pos::GeomID Survey::GeometryManager::getGeomID ( const char *  linenm) const

◆ getGeomID() [2/2]

Pos::GeomID Survey::GeometryManager::getGeomID ( const char *  lsm,
const char *  linenm 
) const

Use only if you are converting od4 geometries to od5 geometries

◆ getList()

bool Survey::GeometryManager::getList ( BufferStringSet names,
TypeSet< Pos::GeomID > &  ids,
bool  is2d 
) const

◆ getName()

const char* Survey::GeometryManager::getName ( Pos::GeomID  ) const

◆ hasDuplicateLineNames()

bool Survey::GeometryManager::hasDuplicateLineNames ( )
protected

◆ indexOf()

int Survey::GeometryManager::indexOf ( Pos::GeomID  ) const
protected

◆ isUsable()

bool Survey::GeometryManager::isUsable ( Pos::GeomID  ) const

◆ nearestTrace()

TrcKey Survey::GeometryManager::nearestTrace ( const Coord ,
bool  is2d,
float *  dist = nullptr 
) const

◆ nrGeometries()

int Survey::GeometryManager::nrGeometries ( ) const

◆ removeGeometry()

bool Survey::GeometryManager::removeGeometry ( Pos::GeomID  )

Returns new GeomID.

◆ toCoord()

Coord Survey::GeometryManager::toCoord ( const TrcKey ) const

◆ traceKey() [1/2]

TrcKey Survey::GeometryManager::traceKey ( Pos::GeomID  ,
Pos::LineID  ,
Pos::TraceID   
) const

For 3D.

◆ traceKey() [2/2]

TrcKey Survey::GeometryManager::traceKey ( Pos::GeomID  ,
Pos::TraceID   
) const

For 2D.

◆ updateGeometries()

bool Survey::GeometryManager::updateGeometries ( TaskRunner )

◆ write()

bool Survey::GeometryManager::write ( Geometry ,
uiString  
)

◆ zRange()

StepInterval<float> Survey::GeometryManager::zRange ( Pos::GeomID  ) const

Member Data Documentation

◆ geometries_

ObjectSet<Geometry> Survey::GeometryManager::geometries_
protected

◆ hasduplnms_

bool Survey::GeometryManager::hasduplnms_
protected

◆ lock_

Threads::Lock Survey::GeometryManager::lock_
protected

◆ surv2did_

const TrcKey::SurvID Survey::GeometryManager::surv2did_
staticprotected

◆ surv3did_

const TrcKey::SurvID Survey::GeometryManager::surv3did_
staticprotected

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