OpendTect  6.3
offsetazimuth.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: K. Tingdahl
8  Date: March 2007
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seiscommon.h"
14 #include "coord.h"
15 
25 {
26 public:
27  OffsetAzimuth() : offsetazi_( 0 ) {}
28  OffsetAzimuth(float off,float azi);
29  bool operator==(const OffsetAzimuth&) const;
30  bool operator!=(const OffsetAzimuth&) const;
31 
32  int asInt() const;
33  void setFrom(int);
34 
35  float offset() const;
36  float azimuth() const;
37  bool isAzimuthUndef() const;
38  bool isOffsetUndef() const;
39  void setOffset(float);
40  void setAzimuth(float);
41  float distanceTo(const OffsetAzimuth&,bool sq=false) const;
44  Coord srcRcvPos(const Coord& center,bool add=true) const;
48 protected:
49 
51 
52 };
#define mExpClass(module)
Definition: commondefs.h:157
Seismics.
Definition: segydirectdef.h:20
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
int offsetazi_
Definition: offsetazimuth.h:50
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
Definition: offsetazimuth.h:24
OffsetAzimuth()
Definition: offsetazimuth.h:27
2D point or vector class.
Definition: commontypes.h:58

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