OpendTect  6.6
emrandlinegen.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Nov 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "earthmodelmod.h"
17 #include "ranges.h"
18 #include "coord.h"
19 class RandomLineSet;
20 template <class T> class ODPolygon;
21 namespace Geometry { class RandomLine; class RandomLineSet; }
22 
23 
24 namespace EM
25 {
26 class Horizon3D;
27 class Horizon3DGeometry;
28 
34 {
35 public:
36 
37  mStruct(EarthModel) Setup
38  {
39  Setup(bool linezrgisrelative=true);
40 
43  mDefSetupMemb(bool,isrel)
44  mDefSetupMemb(int,sectionnr)
45  mDefSetupMemb(const ODPolygon<float>*,selpoly)
47  mDefSetupMemb(int,nrlargestonly)
48  mDefSetupMemb(int,minnrvertices)
49  };
50 
52  const Setup&);
53  Setup& setup() { return setup_; }
54 
56 
57 protected:
58 
59  const Horizon3D& hor_;
62 
63 };
64 
65 
71 {
72 public:
73 
75  const Geometry::RandomLineSet& rls,
76  float d=1, int s=0 )
77  : rls_(rls), dist_(d), side_(s) {}
78 
80  float dist_;
81  int side_;
82 
84  int linenr_in_inp_set=0) const;
85 
86 protected:
87 
88  void crLine(const Geometry::RandomLine&,bool,
90  bool getShifted(Coord,Coord,Coord&,Coord&,bool) const;
92 
93 };
94 
95 } // namespace EM
96 
ODPolygon
(Closed) sequence of connected 2-D coordinates.
Definition: polygon.h:27
EM::RandomLineByShiftGenerator::rls_
const Geometry::RandomLineSet & rls_
Definition: emrandlinegen.h:79
Geometry::RandomLineSet
Definition: randomlinegeom.h:122
sKey::RandomLine
FixedString RandomLine()
Definition: keystrs.h:127
Geometry
Definition: arraytesselator.h:21
EM::RandomLineByShiftGenerator::dist_
float dist_
Definition: emrandlinegen.h:80
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
sKey::Setup
FixedString Setup()
Definition: keystrs.h:139
EM
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: bulk2dhorizonscanner.h:26
EM::RandomLineByShiftGenerator::crLine
void crLine(const Geometry::RandomLine &, bool, Geometry::RandomLineSet &) const
EM::RandomLineSetByContourGenerator::geom_
const Horizon3DGeometry & geom_
Definition: emrandlinegen.h:60
Geometry::RandomLine
Definition: randomlinegeom.h:31
StepInterval< float >
Coord
A cartesian coordinate in 2D space.
Definition: coord.h:25
EM::RandomLineSetByContourGenerator::RandomLineSetByContourGenerator
RandomLineSetByContourGenerator(const Horizon3D &, const Setup &)
mStruct
#define mStruct(module)
Definition: commondefs.h:182
EM::RandomLineSetByContourGenerator::hor_
const Horizon3D & hor_
Definition: emrandlinegen.h:59
Setup
Definition: ceemdalgo.h:161
EM::RandomLineByShiftGenerator
Creates random line from another by shifting it.
Definition: emrandlinegen.h:71
EM::RandomLineByShiftGenerator::RandomLineByShiftGenerator
RandomLineByShiftGenerator(const Geometry::RandomLineSet &rls, float d=1, int s=0)
Definition: emrandlinegen.h:74
EM::RandomLineSetByContourGenerator::createLines
void createLines(Geometry::RandomLineSet &) const
EM::RandomLineByShiftGenerator::generate
void generate(Geometry::RandomLineSet &, int linenr_in_inp_set=0) const
, -1=left, 0=both, 1=right
EM::RandomLineByShiftGenerator::getIntersection
bool getIntersection(Coord, Coord, Coord, Coord, Coord &) const
EM::RandomLineByShiftGenerator::getShifted
bool getShifted(Coord, Coord, Coord &, Coord &, bool) const
EM::RandomLineSetByContourGenerator::setup
Setup & setup()
Definition: emrandlinegen.h:53
EM::RandomLineSetByContourGenerator
Creates random lines along the contours of a surface.
Definition: emrandlinegen.h:34
EM::RandomLineByShiftGenerator::side_
int side_
Definition: emrandlinegen.h:81
EM::Horizon3DGeometry
3D HorizonGeometry
Definition: emhorizon3d.h:40
ranges.h
Interval< float >
EM::RandomLineSetByContourGenerator::setup_
Setup setup_
Definition: emrandlinegen.h:61
EM::Horizon3D
3D Horizon. A Horizon is made up of one or more grids (so they can overlap at faults)....
Definition: emhorizon3d.h:96
coord.h

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