OpendTect  6.3
bendpoints2coords.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: Dec 2009
9 ________________________________________________________________________
10 
11 */
12 
13 #include "algomod.h"
14 #include "coord.h"
15 #include "typeset.h"
16 #include <od_iosfwd.h>
17 
18 
30 {
31 public:
32  BendPoints2Coords(const TypeSet<Coord>&,
33  const int* ids=0);
34  BendPoints2Coords(od_istream&);
35 
36  const TypeSet<Coord>& getCoords() const { return coords_; }
37  const TypeSet<int>& getIDs() const { return nrs_; }
38 
39  Coord coordAt(float) const;
40 
41  void readFrom(od_istream&);
42 
43 protected:
44 
47 
48  void init(const TypeSet<Coord>&,const int*);
49  void getIndexes(float,Interval<int>&) const;
50 };
#define mExpClass(module)
Definition: commondefs.h:157
TypeSet< Coord > coords_
Definition: bendpoints2coords.h:46
bool init()
OD class for stream read.
Definition: od_istream.h:23
Set of (small) copyable elements.
Definition: commontypes.h:26
const TypeSet< int > & getIDs() const
Definition: bendpoints2coords.h:37
const TypeSet< Coord > & getCoords() const
Definition: bendpoints2coords.h:36
Inter/Extra-polate bendpoints to get the coordinates.
Definition: bendpoints2coords.h:29
2D point or vector class.
Definition: commontypes.h:58
TypeSet< int > nrs_
Definition: bendpoints2coords.h:45

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