OpendTect-6_4  6.4
grid2d.h
Go to the documentation of this file.
1 #ifndef grid2d_h
2 #define grid2d_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Raman K Singh
9  Date: Jun 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "generalmod.h"
17 #include "namedobj.h"
18 #include "position.h"
19 
20 class TrcKeySampling;
21 class Line2;
22 
27 mExpClass(General) Grid2D
28 {
29 public:
30 
33  mExpClass(General) Line
34  {
35  public:
36  Line(const BinID&,const BinID&);
37 
38  void limitTo(const TrcKeySampling&);
39  bool isReasonable() const;
40 
43  };
44 
45  Grid2D() {}
46  virtual ~Grid2D();
47 
48  bool isEmpty() const;
49  int size(bool dim) const;
50  int totalSize() const;
51  const Grid2D::Line* getLine(int idx,bool dim) const;
52 
53  void set(const TypeSet<int>& inls,const TypeSet<int>& crls,
54  const TrcKeySampling&);
55  void set(const Grid2D::Line&,double pardist,double perpdist,
56  const TrcKeySampling&);
57 
58  void limitTo(const TrcKeySampling&);
59 
60 protected:
61 
64 
65  void empty();
66  void createParallelLines(const Line2& baseline,double dist,
67  const TrcKeySampling&,
69 };
70 
71 
72 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Represents a grid of 2D lines in an Inl-Crl plane.
Definition: grid2d.h:27
Grid2D()
Definition: grid2d.h:45
BinID stop_
Definition: grid2d.h:42
Set of pointers to objects.
Definition: commontypes.h:32
ObjectSet< Grid2D::Line > dim0lines_
Definition: grid2d.h:62
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
Line in an Inl-Crl plane.
Definition: grid2d.h:33
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
bool isEmpty(const NLAModel *mdl)
ObjectSet< Grid2D::Line > dim1lines_
Definition: grid2d.h:63
BinID start_
Definition: grid2d.h:41
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
Definition: vishorizonsectiondef.h:31

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