OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | 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 &)
 
Pos::GeomID default2DGeomID () const
 
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...
 
Geometry2Dget2D (Pos::GeomID)
 
const Geometry2Dget2D (Pos::GeomID) const
 
const GeometrygetGeometry (const char *) const
 
const GeometrygetGeometry (const MultiID &) const
 
GeometrygetGeometry (Pos::GeomID)
 
const GeometrygetGeometry (Pos::GeomID) const
 
const Geometry3DgetGeometry3D (OD::GeomSystem) 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 has2D () const
 
bool isUsable (Pos::GeomID) const
 
TrcKey nearestTrace (const Coord &, bool is2d, float *dist=nullptr) const
 
TrcKey nearestTrace (const TypeSet< Pos::GeomID > &, const Coord &, 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
 
const GeometrygetGeometry (OD::GeomSystem) const =delete
 
bool hasDuplicateLineNames ()
 
int indexOf (Pos::GeomID) const
 

Protected Attributes

ObjectSet< Geometrygeometries_
 
bool hasduplnms_
 
Threads::Lock lock_
 

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

◆ default2DGeomID()

Pos::GeomID Survey::GeometryManager::default2DGeomID ( ) const

◆ default3DSurvID()

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

◆ 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]

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

◆ get2D() [2/2]

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

◆ get2DSurvID()

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

◆ get3DSurvID()

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

◆ getGeometry() [1/5]

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

◆ getGeometry() [2/5]

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

◆ getGeometry() [3/5]

const Geometry* Survey::GeometryManager::getGeometry ( OD::GeomSystem  ) const
protecteddelete

◆ getGeometry() [4/5]

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

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

◆ getGeometry() [5/5]

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

◆ getGeometry3D()

const Geometry3D* Survey::GeometryManager::getGeometry3D ( OD::GeomSystem  ) 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

◆ has2D()

bool Survey::GeometryManager::has2D ( ) 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() [1/2]

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

◆ nearestTrace() [2/2]

TrcKey Survey::GeometryManager::nearestTrace ( const TypeSet< Pos::GeomID > &  ,
const Coord ,
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

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