GeoTessCPP
2.6.1
Software to facilitate storage and retrieval of 3D information about the Earth.
|
An abstract class that represents a single "surface" within a model. More...
#include <GeoTessHorizon.h>
Public Member Functions | |
GeoTessHorizon (const int &lyrIndex) | |
virtual | ~GeoTessHorizon () |
virtual string | class_name () |
virtual double | getValue () |
virtual double | getRadius (const double *position, GeoTessProfile **profiles) |
virtual double | getRadius (GeoTessPosition &position) |
virtual int | getLayerIndex () |
virtual string | str () |
Protected Attributes | |
int | layerIndex |
An abstract class that represents a single "surface" within a model.
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.
Definition at line 79 of file GeoTessHorizon.h.
|
inline |
Default constructor.
Definition at line 100 of file GeoTessHorizon.h.
|
inlinevirtual |
Definition at line 102 of file GeoTessHorizon.h.
|
inlinevirtual |
Reimplemented in geotess::GeoTessHorizonRadius, geotess::GeoTessHorizonLayer, and geotess::GeoTessHorizonDepth.
Definition at line 104 of file GeoTessHorizon.h.
|
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.
Definition at line 146 of file GeoTessHorizon.h.
|
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::GeoTessHorizonRadius, geotess::GeoTessHorizonLayer, and geotess::GeoTessHorizonDepth.
|
virtual |
Return the radius of the Horizon at the position of the specified GeoTessPosition object.
position |
GeoTessException |
Reimplemented in geotess::GeoTessHorizonRadius, geotess::GeoTessHorizonLayer, and geotess::GeoTessHorizonDepth.
|
virtual |
HorizonDepth objects return depth, HorizonRadius object return radius, and HorizonLayer object return fraction.
Reimplemented in geotess::GeoTessHorizonRadius, geotess::GeoTessHorizonLayer, and geotess::GeoTessHorizonDepth.
|
virtual |
Reimplemented in geotess::GeoTessHorizonRadius, geotess::GeoTessHorizonLayer, and geotess::GeoTessHorizonDepth.
|
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.
Definition at line 92 of file GeoTessHorizon.h.