36 #ifndef HORIZONDEPTH_H_
37 #define HORIZONDEPTH_H_
136 double radius = GeoTessUtils::getEarthRadius(position)-depth;
141 if (radius <= bottom)
155 if (radius <= bottom)
165 string s =
"depth " + CPPUtils::dtos(depth) +
" " + CPPUtils::itos(layerIndex);
double getEarthRadius()
Retrieve the radius of the Earth at this position, in km.
Definition: GeoTessPosition.h:840
GeoTessHorizonDepth(GeoTessHorizonDepth &other)
Copy constructor.
Definition: GeoTessHorizonDepth.h:116
Information about an interpolated point at an arbitrary position in a model.
Definition: GeoTessPosition.h:101
virtual string class_name()
Definition: GeoTessHorizonDepth.h:130
Definition: ArrayReuse.h:55
GeoTessHorizonDepth(const double &dpth)
Constructor for a Horizon object that represents a constant depth within the Earth.
Definition: GeoTessHorizonDepth.h:92
virtual double getRadius(GeoTessPosition &position)
Return the radius of the Horizon at the position of the specified GeoTessPosition object...
Definition: GeoTessHorizonDepth.h:149
virtual double getRadius(const double *position, GeoTessProfile **profiles)
Return the radius of the Horizon at the specified geographic position and constrained by the specifie...
Definition: GeoTessHorizonDepth.h:134
An abstract class that represents a single "surface" within a model.
Definition: GeoTessHorizon.h:79
GeoTessHorizonDepth & operator=(const GeoTessHorizonDepth &other)
Overloaded assignment operator.
Definition: GeoTessHorizonDepth.h:123
virtual float getRadiusTop() const
Get the radius at the top of the profile, in km.
Abstract class that manages the radii and data values that span a single layer associated with a sing...
Definition: GeoTessProfile.h:96
GeoTessHorizonDepth(const double &dpth, const int &lyrIndex)
Constructor for a Horizon object that represents a constant depth in the Earth, in km...
Definition: GeoTessHorizonDepth.h:105
virtual ~GeoTessHorizonDepth()
Destructor.
Definition: GeoTessHorizonDepth.h:111
virtual string str()
Definition: GeoTessHorizonDepth.h:163
Defines a "surface" in a model that resides at a constant depth.
Definition: GeoTessHorizonDepth.h:72
double getRadiusTop(int layid)
Retrieve an interpolated value of the radius of the top of the specified layer, in km...
double getRadiusBottom(int layid)
Retrieve an interpolated value of the radius of the bottom of the specified layer, in km.
#define GEOTESS_EXP_IMP
Definition: CPPGlobals.h:71
int layerIndex
If layerIndex is >= 0 and < the number of layers represented in a model, then the returned radius wil...
Definition: GeoTessHorizon.h:92
virtual double getValue()
HorizonDepth objects return depth, HorizonRadius object return radius, and HorizonLayer object return...
Definition: GeoTessHorizonDepth.h:132
virtual float getRadiusBottom() const
Get the radius at the bottom of the profile, in km.