OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Static Private Member Functions | List of all members
Survey::GeometryManager Class Reference

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

Public Member Functions

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

Static Public Member Functions

static TrcKey::SurvID get2DSurvID ()
 
static Geometry::ID cUndefGeomID ()
 

Protected Member Functions

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

Protected Attributes

Threads::Lock lock_
 
ObjectSet< Geometrygeometries_
 
bool hasduplnms_
 

Static Protected Attributes

static const TrcKey::SurvID surv2did_
 

Static Private Member Functions

static uiString tr (const char *text, const char *disambiguation=0, int pluralnr=-1)
 
static uiString legacyTr (const char *text, const char *disambiguation=0, int pluralnr=-1)
 

Detailed Description

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

Constructor & Destructor Documentation

Survey::GeometryManager::GeometryManager ( )
Survey::GeometryManager::~GeometryManager ( )

Member Function Documentation

void Survey::GeometryManager::addGeometry ( Geometry )
protected
Geometry::ID Survey::GeometryManager::addNewEntry ( Geometry ,
uiString  
)
static Geometry::ID Survey::GeometryManager::cUndefGeomID ( )
inlinestatic
TrcKey::SurvID Survey::GeometryManager::default3DSurvID ( ) const
void Survey::GeometryManager::ensureSIPresent ( ) const
protected
bool Survey::GeometryManager::fetchFrom2DGeom ( uiString errmsg)
bool Survey::GeometryManager::fillGeometries ( TaskRunner )
Geometry::ID Survey::GeometryManager::findRelated ( const Geometry ,
Geometry::RelationType ,
bool  usezrg 
) const

Returns cUndefGeomID() if none found.

static TrcKey::SurvID Survey::GeometryManager::get2DSurvID ( )
inlinestatic
const Geometry* Survey::GeometryManager::getGeometry ( Geometry::ID  ) const
const Geometry* Survey::GeometryManager::getGeometry ( const char *  ) const
const Geometry* Survey::GeometryManager::getGeometry ( const MultiID ) const
Geometry* Survey::GeometryManager::getGeometry ( Geometry::ID  )

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

const Geometry3D* Survey::GeometryManager::getGeometry3D ( Pos::SurvID  ) const
Geometry::ID Survey::GeometryManager::getGeomID ( const char *  linenm) const
Geometry::ID Survey::GeometryManager::getGeomID ( const char *  lsm,
const char *  linenm 
) const

Use only if you are converting od4 geometries to od5 geometries

bool Survey::GeometryManager::getList ( BufferStringSet names,
TypeSet< Geometry::ID > &  ids,
bool  is2d 
) const
const char* Survey::GeometryManager::getName ( Geometry::ID  ) const
bool Survey::GeometryManager::hasDuplicateLineNames ( )
protected
int Survey::GeometryManager::indexOf ( Geometry::ID  ) const
protected
static uiString Survey::GeometryManager::legacyTr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate
int Survey::GeometryManager::nrGeometries ( ) const
bool Survey::GeometryManager::removeGeometry ( Geometry::ID  )

Returns new GeomID.

Coord Survey::GeometryManager::toCoord ( const TrcKey ) const
static uiString Survey::GeometryManager::tr ( const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)
inlinestaticprivate
TrcKey Survey::GeometryManager::traceKey ( Geometry::ID  ,
Pos::LineID  ,
Pos::TraceID   
) const

For 3D.

TrcKey Survey::GeometryManager::traceKey ( Geometry::ID  ,
Pos::TraceID   
) const

For 2D.

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

Member Data Documentation

ObjectSet<Geometry> Survey::GeometryManager::geometries_
protected
bool Survey::GeometryManager::hasduplnms_
protected
Threads::Lock Survey::GeometryManager::lock_
protected
const TrcKey::SurvID Survey::GeometryManager::surv2did_
staticprotected

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