GeoTessCPP
2.1
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <GeoTessHorizon.h>
Public Member Functions | |
GeoTessHorizon (const int &lyrIndex) | |
virtual | ~GeoTessHorizon () |
virtual string | class_name () |
virtual int | getLayerIndex () |
virtual double | getRadius (const double *position, GeoTessProfile **profiles) |
virtual double | getRadius (GeoTessPosition &position) |
virtual double | getValue () |
virtual string | str () |
Protected Attributes | |
int | layerIndex |
Horizon is an abstract class that represents a single "surface" within a model. This might be a surface of constant radius, constant depth, the top or bottom of a layer, etc. The surface can be constrained to a specified layer, or can cross layer boundaries. There are derived classes for each of these, HorizonRadius, HorizonDepth, and HorizonLayer. A Horizon class implements a single basic function, getRadius(). That method can take either a GeoTessPosition object or a vertex position and the 1D array of Profiles associated with that vertex.
|
inline |
Default constructor.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in geotess::GeoTessHorizonLayer, geotess::GeoTessHorizonDepth, and geotess::GeoTessHorizonRadius.
|
inlinevirtual |
Retrieve the index of the layer that was specified at construction. If >= 0 and < the number of layers in the model then the radius of this Horizon object will be constrained to be within the radii of the top and bottom of this layer.
|
virtual |
Return the radius of the Horizon at the specified geographic position and constrained by the specified array of Profiles, all of which are assumed to reside at the specified position.
position | the unit vector representing the position where the radius is to be determined. This should correspond to the position of the supplied array of Profiles. |
profiles | a 1D array of profiles at the specified position. The number of elements must be equal to the number of layers in the model with the first layer being the deepest (closest to the center of the Earth) and the last layer being the shallowest (farthest from the center of the Earth). |
Reimplemented in geotess::GeoTessHorizonDepth, geotess::GeoTessHorizonRadius, and geotess::GeoTessHorizonLayer.
|
virtual |
Return the radius of the Horizon at the position of the specified GeoTessPosition object.
position |
GeoTessException |
Reimplemented in geotess::GeoTessHorizonDepth, geotess::GeoTessHorizonRadius, and geotess::GeoTessHorizonLayer.
|
virtual |
HorizonDepth objects return depth, HorizonRadius object return radius, and HorizonLayer object return fraction.
Reimplemented in geotess::GeoTessHorizonDepth, geotess::GeoTessHorizonRadius, and geotess::GeoTessHorizonLayer.
|
virtual |
Reimplemented in geotess::GeoTessHorizonDepth, geotess::GeoTessHorizonRadius, and geotess::GeoTessHorizonLayer.
|
protected |
If layerIndex is >= 0 and < the number of layers represented in a model, then the returned radius will be constrained to be between the top and bottom of the specified layer. Otherwise, the radius will not be so constrained.