NRLib::RegularSurface< A > Class Template Reference
Inheritance diagram for NRLib::RegularSurface< A >:
Detailed Descriptiontemplate<class A> class NRLib::RegularSurface< A > Surface represented as a regular grid, where each of the grid cells are modelled as bilinear surfaces. Member Typedef Documentation◆ const_iterator
template<class A >
◆ const_reference
template<class A >
◆ iterator
template<class A >
◆ reference
template<class A >
Constructor & Destructor Documentation◆ RegularSurface() [1/4]
template<class A >
◆ RegularSurface() [2/4]
template<class A >
◆ RegularSurface() [3/4]
template<class A >
References NRLib::Grid2D< A >::GetNI(), and NRLib::Grid2D< A >::GetNJ(). ◆ RegularSurface() [4/4]
template<class A >
Read surface file on given format.
References format, and NRLib::RegularSurface< A >::ReadFromFile(). Member Function Documentation◆ Add()
template<class A >
Implements NRLib::Surface< A >. References NRLib::Grid2D< A >::begin(), and NRLib::Grid2D< A >::end(). ◆ AddNonConform()
template<class A >
The following routines are for binary operations with non-conform grids. Missing areas will shrink. Also works for identical definitions without missing, but is inefficient. References NRLib::Surface< A >::GetZ(), NRLib::Surface< A >::IsMissing(), exprtk::details::value(), and exprtk::details::x(). ◆ Assign()
template<class A >
Sets all values on the surface to a constant value. References NRLib::Grid2D< A >::begin(), and NRLib::Grid2D< A >::end(). ◆ Avg() [1/2]
template<class A >
◆ Avg() [2/2]
template<class A >
References Catch::begin, and count. ◆ begin() [1/2]
template<class A >
◆ begin() [2/2]
template<class A >
◆ Clone()
template<class A >
Generate a copy of the underlying object. Implements NRLib::Surface< A >. ◆ CreateNeighbourAvg()
template<class A >
Returns the arithmetic average of the up to 8 (non-missing)-values from neighbouring grid cells. If no neighborud cells have non-missing values, missing is returned. ◆ DivideNonConform()
template<class A >
◆ EnclosesRectangle()
template<class A >
Implements NRLib::Surface< A >. ◆ end() [1/2]
template<class A >
◆ end() [2/2]
template<class A >
◆ FindContIndex()
template<class A >
References exprtk::details::x(). ◆ FindGeneralIndex()
template<class A >
Gets the index for the nearest point up, and to the left of (x,y), the corner point with the lowest i and j values. May give values outside the grid. Fails if either ni or nj is greater than 2^31. The found index corresponds to the cell index. References exprtk::details::x(). ◆ FindI()
template<class A >
Gets the index to left of x. The found index corresponds to the cell index. References exprtk::details::x(). ◆ FindIndex()
template<class A >
Gets the index for the nearest point up, and to the left of (x,y), the corner point with the lowest i and j values. The found index corresponds to the cell index. References exprtk::details::x(). ◆ FindJ()
template<class A >
Gets the index to left of x. The found index corresponds to the cell index. ◆ FindMax()
template<class A >
References Catch::begin. ◆ FindMin()
template<class A >
References Catch::begin. ◆ FindNearestNodeIndex()
template<class A >
Find nearest node. Similar to FindIndex, but finds index of nearest node instead of cell index. References exprtk::details::x(). ◆ GetCorners()
template<class A >
Returns vector with the four corners around the point (x,y). Fails if failOutside is false and either ni or nj is greater than 2^31.
References exprtk::details::x(). ◆ GetDX()
template<class A >
Referenced by NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetDY()
template<class A >
Referenced by NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetIJ()
template<class A >
References index. Referenced by NRLib::RegularSurface< A >::GetNode(). ◆ GetIndex()
template<class A >
◆ GetLengthX()
template<class A >
◆ GetLengthY()
template<class A >
◆ GetMissingValue()
template<class A >
Referenced by NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetN()
template<class A >
◆ GetName()
template<class A >
◆ GetNI()
template<class A >
◆ GetNJ()
template<class A >
◆ GetNode() [1/2]
template<class A >
References NRLib::RegularSurface< A >::GetXY(), exprtk::details::x(), and exprtk::details::z. ◆ GetNode() [2/2]
template<class A >
References NRLib::Grid2D< A >::GetIJ(), NRLib::RegularSurface< A >::GetNode(), exprtk::details::x(), and exprtk::details::z. Referenced by NRLib::RegularSurface< A >::GetNode(). ◆ GetX()
template<class A >
◆ GetXMax()
template<class A >
Implements NRLib::Surface< A >. Referenced by NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetXMin()
template<class A >
Implements NRLib::Surface< A >. Referenced by NRLib::RegularSurfaceRotated< A >::RegularSurfaceRotated(), NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetXY() [1/2]
template<class A >
References exprtk::details::x(). Referenced by NRLib::RegularSurface< A >::GetNode(), and NRLib::RegularSurface< A >::GetXY(). ◆ GetXY() [2/2]
template<class A >
References NRLib::Grid2D< A >::GetNI(), NRLib::RegularSurface< A >::GetXY(), index, and exprtk::details::x(). ◆ GetY()
template<class A >
◆ GetYMax()
template<class A >
Implements NRLib::Surface< A >. Referenced by NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetYMin()
template<class A >
Implements NRLib::Surface< A >. Referenced by NRLib::RegularSurfaceRotated< A >::RegularSurfaceRotated(), NRLib::WriteIrapClassicAsciiSurf(), and NRLib::WriteStormBinarySurf(). ◆ GetZ()
template<class A >
Return z. Returns missing if we are outside the grid. Returns also values when not all grid cell corners are present, e.g. when (x,y) is just outside the grid. Implements NRLib::Surface< A >. References exprtk::details::x(). ◆ GetZInside()
template<class A >
Return z. Returns missing if not all grid cell corners are present, e.g. when (x,y) is just outside the grid. References exprtk::details::x(). ◆ IsInsideSurface()
template<class A >
Checks if point is inside definition area for surface. Implements NRLib::Surface< A >. References exprtk::details::x(). ◆ IsMissing()
template<class A >
Check if grid value is missing. Reimplemented from NRLib::Surface< A >. Referenced by NRLib::WriteIrapClassicAsciiSurf(). ◆ IsMissingAt()
template<class A >
Check if grid value is missing. ◆ IsValidIndex()
template<class A >
◆ Max()
template<class A >
Implements NRLib::Surface< A >. References Catch::begin. ◆ MaxNode()
template<class A >
References Catch::begin. ◆ Min()
template<class A >
Implements NRLib::Surface< A >. References Catch::begin. ◆ MinNode()
template<class A >
References Catch::begin. ◆ Multiply()
template<class A >
Implements NRLib::Surface< A >. References NRLib::Grid2D< A >::begin(), and NRLib::Grid2D< A >::end(). ◆ MultiplyNonConform()
template<class A >
◆ operator()() [1/4]
template<class A >
◆ operator()() [2/4]
template<class A >
◆ operator()() [3/4]
template<class A >
References index. ◆ operator()() [4/4]
template<class A >
References index. ◆ ReadFromFile()
template<class A >
Read surface file on given format.
References NRLib::FindSurfaceFileType(), format, NRLib::ReadIrapClassicAsciiSurf(), NRLib::ReadSgriSurf(), NRLib::ReadStormBinarySurf(), NRLib::SURF_IRAP_CLASSIC_ASCII, NRLib::SURF_SGRI, NRLib::SURF_STORM_BINARY, NRLib::SURF_UNKNOWN, and NRLib::ToString(). Referenced by NRLib::RegularSurface< A >::RegularSurface(). ◆ Resize()
template<class A >
Resize grid. Overrides Grid2D's resize. Reimplemented from NRLib::Grid2D< A >. References NRLib::Grid2D< A >::Resize(), and exprtk::details::value(). Referenced by NRLib::ReadIrapClassicAsciiSurf(), NRLib::ReadSgriSurf(), and NRLib::ReadStormBinarySurf(). ◆ SetDimensions()
template<class A >
References NRLib::Grid2D< A >::GetNI(), and NRLib::Grid2D< A >::GetNJ(). Referenced by NRLib::ReadIrapClassicAsciiSurf(), NRLib::ReadSgriSurf(), and NRLib::ReadStormBinarySurf(). ◆ SetMissing()
template<class A >
Set missing. ◆ SetMissingValue()
template<class A >
◆ SetName()
template<class A >
References name. Referenced by NRLib::ReadIrapClassicAsciiSurf(), NRLib::ReadMulticolumnAsciiSurf(), NRLib::ReadSgriSurf(), and NRLib::ReadStormBinarySurf(). ◆ Subtract()
template<class A >
References NRLib::Grid2D< A >::begin(), and NRLib::Grid2D< A >::end(). ◆ SubtractNonConform()
template<class A >
◆ Swap() [1/2]
template<class A >
Referenced by NRLib::RegularSurface< A >::Swap(). ◆ Swap() [2/2]
template<class A >
References NRLib::Grid2D< A >::Swap(). ◆ WriteToFile()
template<class A >
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||