OpendTect  7.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
Geometry::RandomLine Class Reference
Inheritance diagram for Geometry::RandomLine:
[legend]

Classes

struct  ChangeData
 

Public Types

enum  DuplicateMode { NoDups =0 , NoConsecutiveDups , AllDups }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 RandomLine (const char *nm=0)
 
int addNode (const BinID &)
 
int addNode (const Coord &)
 
void allNodePositions (TypeSet< BinID > &) const
 
void allNodePositions (TypeSet< Coord > &) const
 
void allNodePositions (TypeSet< TrcKey > &) const
 
MultiID getMultiID () const
 
RandomLineID ID () const
 
void insertNode (int, const BinID &)
 
void insertNode (int, const Coord &)
 
bool isEmpty () const
 
bool isLocked () const
 
void limitTo (const TrcKeyZSampling &)
 
RandomLineSetlineSet ()
 
const RandomLineSetlineSet () const
 
int nearestNode (const Coord &, double &distance) const
 
const CoordnodeCoord (int idx) const
 
int nodeIndex (const BinID &) const
 
BinID nodePosition (int) const
 
int nrNodes () const
 
void removeNode (const BinID &)
 
void removeNode (int)
 
void setLocked (bool yn)
 
void setMultiID (const MultiID &)
 
void setName (const char *) override
 
void setNodePosition (int idx, const BinID &, bool moving=false)
 
void setNodePosition (int idx, const Coord &, bool moving=false)
 
void setNodePositions (const TypeSet< BinID > &)
 
void setNodePositions (const TypeSet< Coord > &)
 
void setZRange (const Interval< float > &)
 
int size () const
 
Interval< float > zRange () const
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=nullptr)
 
 SharedObject (const SharedObject &)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static int getNearestPathPosIdx (const TrcKeyPath &, const TrcKeyPath &, const TrcKey &)
 
static Coord getNormal (const TrcKeyPath &knots, const TrcKey &pos)
 
static void getPathBids (const TrcKeyPath &knots, TrcKeyPath &path, DuplicateMode dupmode=NoConsecutiveDups, TypeSet< int > *segments=nullptr)
 
static void getPathBids (const TypeSet< BinID > &knots, OD::GeomSystem, TypeSet< BinID > &path, bool allowduplicate=false, TypeSet< int > *segments=nullptr)
 
static void getPathBids (const TypeSet< BinID > &knots, OD::GeomSystem, TypeSet< BinID > &path, DuplicateMode dupmode=NoConsecutiveDups, TypeSet< int > *segments=nullptr)
 
static void getPathBids (const TypeSet< BinID > &knots, TypeSet< BinID > &path, bool allowduplicate=false, TypeSet< int > *segments=nullptr)
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Public Attributes

Notifier< RandomLinenameChanged
 
CNotifier< RandomLine, const ChangeData & > nodeChanged
 
Notifier< RandomLinezrangeChanged
 

Protected Member Functions

virtual ~RandomLine ()
 
- Protected Member Functions inherited from SharedObject
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

bool locked_ = false
 
RandomLineSetlset_ = nullptr
 
MultiID mid_ = MultiID::udf()
 
TypeSet< Coordnodes_
 
Interval< float > zrange_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Private Attributes

RandomLineID id_
 

Friends

class RandomLineSet
 

Detailed Description

<>

Member Enumeration Documentation

◆ DuplicateMode

Enumerator
NoDups 
NoConsecutiveDups 
AllDups 

Constructor & Destructor Documentation

◆ RandomLine()

Geometry::RandomLine::RandomLine ( const char *  nm = 0)

◆ ~RandomLine()

virtual Geometry::RandomLine::~RandomLine ( )
protectedvirtual

Member Function Documentation

◆ addNode() [1/2]

int Geometry::RandomLine::addNode ( const BinID )

◆ addNode() [2/2]

int Geometry::RandomLine::addNode ( const Coord )

◆ allNodePositions() [1/3]

void Geometry::RandomLine::allNodePositions ( TypeSet< BinID > &  ) const

◆ allNodePositions() [2/3]

void Geometry::RandomLine::allNodePositions ( TypeSet< Coord > &  ) const

◆ allNodePositions() [3/3]

void Geometry::RandomLine::allNodePositions ( TypeSet< TrcKey > &  ) const

◆ getMultiID()

MultiID Geometry::RandomLine::getMultiID ( ) const
inline

◆ getNearestPathPosIdx()

static int Geometry::RandomLine::getNearestPathPosIdx ( const TrcKeyPath ,
const TrcKeyPath ,
const TrcKey  
)
static

◆ getNormal()

static Coord Geometry::RandomLine::getNormal ( const TrcKeyPath knots,
const TrcKey pos 
)
static

◆ getPathBids() [1/4]

static void Geometry::RandomLine::getPathBids ( const TrcKeyPath knots,
TrcKeyPath path,
DuplicateMode  dupmode = NoConsecutiveDups,
TypeSet< int > *  segments = nullptr 
)
static

◆ getPathBids() [2/4]

static void Geometry::RandomLine::getPathBids ( const TypeSet< BinID > &  knots,
OD::GeomSystem  ,
TypeSet< BinID > &  path,
bool  allowduplicate = false,
TypeSet< int > *  segments = nullptr 
)
static

◆ getPathBids() [3/4]

static void Geometry::RandomLine::getPathBids ( const TypeSet< BinID > &  knots,
OD::GeomSystem  ,
TypeSet< BinID > &  path,
DuplicateMode  dupmode = NoConsecutiveDups,
TypeSet< int > *  segments = nullptr 
)
static

◆ getPathBids() [4/4]

static void Geometry::RandomLine::getPathBids ( const TypeSet< BinID > &  knots,
TypeSet< BinID > &  path,
bool  allowduplicate = false,
TypeSet< int > *  segments = nullptr 
)
static

◆ ID()

RandomLineID Geometry::RandomLine::ID ( ) const
inline

◆ insertNode() [1/2]

void Geometry::RandomLine::insertNode ( int  ,
const BinID  
)

◆ insertNode() [2/2]

void Geometry::RandomLine::insertNode ( int  ,
const Coord  
)

◆ isEmpty()

bool Geometry::RandomLine::isEmpty ( ) const

◆ isLocked()

bool Geometry::RandomLine::isLocked ( ) const
inline

◆ limitTo()

void Geometry::RandomLine::limitTo ( const TrcKeyZSampling )

◆ lineSet() [1/2]

RandomLineSet* Geometry::RandomLine::lineSet ( )
inline

◆ lineSet() [2/2]

const RandomLineSet* Geometry::RandomLine::lineSet ( ) const
inline

◆ nearestNode()

int Geometry::RandomLine::nearestNode ( const Coord ,
double &  distance 
) const

◆ nodeCoord()

const Coord& Geometry::RandomLine::nodeCoord ( int  idx) const

◆ nodeIndex()

int Geometry::RandomLine::nodeIndex ( const BinID ) const

◆ nodePosition()

BinID Geometry::RandomLine::nodePosition ( int  ) const

◆ nrNodes()

int Geometry::RandomLine::nrNodes ( ) const

◆ removeNode() [1/2]

void Geometry::RandomLine::removeNode ( const BinID )

◆ removeNode() [2/2]

void Geometry::RandomLine::removeNode ( int  )

◆ setLocked()

void Geometry::RandomLine::setLocked ( bool  yn)
inline

◆ setMultiID()

void Geometry::RandomLine::setMultiID ( const MultiID )

◆ setName()

void Geometry::RandomLine::setName ( const char *  )
overridevirtual

Reimplemented from NamedObject.

◆ setNodePosition() [1/2]

void Geometry::RandomLine::setNodePosition ( int  idx,
const BinID ,
bool  moving = false 
)

◆ setNodePosition() [2/2]

void Geometry::RandomLine::setNodePosition ( int  idx,
const Coord ,
bool  moving = false 
)

◆ setNodePositions() [1/2]

void Geometry::RandomLine::setNodePositions ( const TypeSet< BinID > &  )

◆ setNodePositions() [2/2]

void Geometry::RandomLine::setNodePositions ( const TypeSet< Coord > &  )

◆ setZRange()

void Geometry::RandomLine::setZRange ( const Interval< float > &  )

◆ size()

int Geometry::RandomLine::size ( ) const
inline

◆ zRange()

Interval<float> Geometry::RandomLine::zRange ( ) const
inline

Friends And Related Function Documentation

◆ RandomLineSet

friend class RandomLineSet
friend

Member Data Documentation

◆ id_

RandomLineID Geometry::RandomLine::id_
private

◆ locked_

bool Geometry::RandomLine::locked_ = false
protected

◆ lset_

RandomLineSet* Geometry::RandomLine::lset_ = nullptr
protected

◆ mid_

MultiID Geometry::RandomLine::mid_ = MultiID::udf()
protected

◆ nameChanged

Notifier<RandomLine> Geometry::RandomLine::nameChanged

◆ nodeChanged

CNotifier<RandomLine,const ChangeData&> Geometry::RandomLine::nodeChanged

◆ nodes_

TypeSet<Coord> Geometry::RandomLine::nodes_
protected

◆ zrange_

Interval<float> Geometry::RandomLine::zrange_
protected

◆ zrangeChanged

Notifier<RandomLine> Geometry::RandomLine::zrangeChanged

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