1 #ifndef randomlinegeom_h 2 #define randomlinegeom_h 15 #include "geometrymod.h" 36 int ID()
const {
return id_; }
38 int addNode(
const BinID&);
39 void insertNode(
int,
const BinID&);
40 void setName(
const char*);
41 void setNodePosition(
int idx,
const BinID&,
bool moving=
false);
44 void removeNode(
const BinID&);
45 bool isEmpty()
const {
return nodes_.isEmpty(); }
48 int nodeIndex(
const BinID&)
const;
50 const BinID& nodePosition(
int)
const;
55 bool allowduplicate=
false,
60 bool allowduplicate=
false,
65 { zrange_ = rg; zrangeChanged.trigger(); }
68 void setMultiID(
const MultiID&);
76 enum Event {
Undef, Added, Inserted, Moving, Moved, Removed };
110 static int getNearestPathPosIdx(
const TrcKeyPath&,
131 virtual ~RandomLineSet();
132 bool isEmpty()
const {
return lines_.isEmpty(); }
137 int size()
const {
return lines_.size(); }
139 void removeLine(
int idx);
152 void createParallelLines(
const Line2& baseline,
double dist);
168 bool isLoaded(
const MultiID&)
const;
169 bool isLoaded(
int id)
const;
#define mRefCountImpl(ClassName)
Macro to setup a class with destructor for reference counting.
Definition: refcount.h:163
#define mExpClass(module)
Definition: commondefs.h:160
int nodeidx_
Definition: randomlinegeom.h:84
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
DuplicateMode
Definition: randomlinegeom.h:113
FixedString Undef()
Definition: keystrs.h:142
bool locked_
Definition: randomlinegeom.h:100
#define mGlobal(module)
Definition: commondefs.h:163
Event ev_
Definition: randomlinegeom.h:83
Interval< float > zrange_
Definition: randomlinegeom.h:97
MultiID mid_
Definition: randomlinegeom.h:98
Definition: randomlinegeom.h:31
const IOPar & pars() const
Definition: randomlinegeom.h:144
bool isLocked() const
Definition: randomlinegeom.h:72
Definition: randomlinegeom.h:76
Notifier< RandomLine > zrangeChanged
Definition: randomlinegeom.h:89
A cartesian coordinate in 2D space.
Definition: coord.h:25
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
MultiID getMultiID() const
Definition: randomlinegeom.h:69
IOPar & pars()
Definition: randomlinegeom.h:145
Definition: callback.h:254
Set of pointers to objects.
Definition: commontypes.h:32
CNotifier< RandomLine, const ChangeData & > nodeChanged
Definition: randomlinegeom.h:88
Interval< float > zRange() const
Definition: randomlinegeom.h:66
IOPar & pars_
Definition: randomlinegeom.h:150
Definition: randomlinegeom.h:160
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Index_Type SurvID
Definition: commontypes.h:49
ChangeData(Event ev=Undef, int nodeidx=-1)
Definition: randomlinegeom.h:78
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
ObjectSet< RandomLine > lines_
Definition: randomlinegeom.h:149
bool isEmpty() const
Definition: randomlinegeom.h:132
RandomLineSet * lset_
Definition: randomlinegeom.h:99
Definition: randomlinegeom.h:74
TypeSet< BinID > nodes_
Definition: randomlinegeom.h:96
RandomLineManager & RLM()
CNotifier< RandomLineManager, int > removed
Definition: randomlinegeom.h:175
int id_
Definition: randomlinegeom.h:105
void setZRange(const Interval< float > &rg)
Definition: randomlinegeom.h:64
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Object with a name.
Definition: namedobj.h:35
Definition: randomlinegeom.h:122
void setLocked(bool yn)
Definition: randomlinegeom.h:71
Notifier with automatic capsule creation.
Definition: callback.h:395
const ObjectSet< RandomLine > & lines() const
Definition: randomlinegeom.h:138
mRefCountImpl(RandomLine) public int ID() const
Definition: randomlinegeom.h:36
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
bool isEmpty() const
Definition: randomlinegeom.h:45
const RandomLineSet * lineSet() const
Definition: randomlinegeom.h:92
int size() const
Definition: randomlinegeom.h:137
Definition: arraytesselator.h:21
RandomLineSet * lineSet()
Definition: randomlinegeom.h:91
CNotifier< RandomLineManager, int > added
Definition: randomlinegeom.h:174
Notifier< RandomLine > nameChanged
Definition: randomlinegeom.h:87
A Line2 is a line on XY-plane, and it is defined in slope-intercept form y = slope*x + y-intercept; f...
Definition: trigonometry.h:397
Compound key consisting of ints.
Definition: multiid.h:25
Event
Definition: randomlinegeom.h:76