OpendTect-6_4  6.4
bendpoints2coords.h
Go to the documentation of this file.
1 #ifndef bendpoints2coords_h
2 #define bendpoints2coords_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Dec 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "algomod.h"
16 #include "coord.h"
17 #include "typeset.h"
18 #include <od_iosfwd.h>
19 
20 
32 {
33 public:
34  BendPoints2Coords(const TypeSet<Coord>&,
35  const int* ids=0);
36  BendPoints2Coords(od_istream&);
37 
38  const TypeSet<Coord>& getCoords() const { return coords_; }
39  const TypeSet<int>& getIDs() const { return nrs_; }
40 
41  Coord coordAt(float) const;
42 
43  void readFrom(od_istream&);
44 
45 protected:
46 
49 
50  void init(const TypeSet<Coord>&,const int*);
51  void getIndexes(float,Interval<int>&) const;
52 };
53 
54 #endif
#define mExpClass(module)
Definition: commondefs.h:160
TypeSet< Coord > coords_
Definition: bendpoints2coords.h:48
bool init()
A cartesian coordinate in 2D space.
Definition: coord.h:25
OD class for stream read.
Definition: od_istream.h:24
const TypeSet< int > & getIDs() const
Definition: bendpoints2coords.h:39
const TypeSet< Coord > & getCoords() const
Definition: bendpoints2coords.h:38
Inter/Extra-polate bendpoints to get the coordinates.
Definition: bendpoints2coords.h:31
TypeSet< int > nrs_
Definition: bendpoints2coords.h:47

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