|
Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
A 2d grid representation. More...
#include <Grid2dRepresentation.h>
Public Member Functions | |
| virtual | ~Grid2dRepresentation ()=default |
| virtual uint64_t | getNodeCountAlongIAxis () const =0 |
| virtual uint64_t | getNodeCountAlongJAxis () const =0 |
| uint64_t | getXyzPointCountOfPatch (unsigned int patchIndex) const final |
| void | getXyzPointsOfPatch (unsigned int patchIndex, double *xyzPoints) const final |
| virtual void | getZValues (double *values) const =0 |
| void | getZValuesInGlobalCrs (double *values) const |
| virtual double | getXOrigin () const =0 |
| virtual double | getYOrigin () const =0 |
| virtual double | getZOrigin () const =0 |
| double | getXOriginInGlobalCrs () const |
| double | getYOriginInGlobalCrs () const |
| double | getZOriginInGlobalCrs () const |
| virtual double | getXJOffset () const =0 |
| virtual double | getYJOffset () const =0 |
| virtual double | getZJOffset () const =0 |
| double | getXJOffsetInGlobalCrs () const |
| double | getYJOffsetInGlobalCrs () const |
| double | getZJOffsetInGlobalCrs () const |
| virtual double | getXIOffset () const =0 |
| virtual double | getYIOffset () const =0 |
| virtual double | getZIOffset () const =0 |
| double | getXIOffsetInGlobalCrs () const |
| double | getYIOffsetInGlobalCrs () const |
| double | getZIOffsetInGlobalCrs () const |
| virtual bool | isJSpacingConstant () const =0 |
| virtual bool | isISpacingConstant () const =0 |
| virtual double | getJSpacing () const =0 |
| virtual void | getJSpacing (double *jSpacings) const =0 |
| virtual double | getISpacing () const =0 |
| virtual void | getISpacing (double *iSpacings) const =0 |
| virtual void | setGeometryAsArray2dOfLatticePoints3d (unsigned int numPointsInFastestDirection, unsigned int numPointsInSlowestDirection, double xOrigin, double yOrigin, double zOrigin, double xOffsetInFastestDirection, double yOffsetInFastestDirection, double zOffsetInFastestDirection, double xOffsetInSlowestDirection, double yOffsetInSlowestDirection, double zOffsetInSlowestDirection, double spacingInFastestDirection, double spacingInSlowestDirection, resqml2 ::AbstractLocal3dCrs *localCrs=nullptr)=0 |
| virtual void | setGeometryAsArray2dOfExplicitZ (double *zValues, unsigned int numI, unsigned int numJ, eml2 ::AbstractHdfProxy *proxy, Grid2dRepresentation *supportingGrid2dRepresentation, resqml2 ::AbstractLocal3dCrs *localCrs=nullptr, unsigned int startIndexI=0, unsigned int startIndexJ=0, int indexIncrementI=1, int indexIncrementJ=1)=0 |
| virtual void | setGeometryAsArray2dOfExplicitZ (double *zValues, unsigned int numI, unsigned int numJ, eml2 ::AbstractHdfProxy *proxy, double originX, double originY, double originZ, double offsetIX, double offsetIY, double offsetIZ, double spacingI, double offsetJX, double offsetJY, double offsetJZ, double spacingJ, resqml2 ::AbstractLocal3dCrs *localCrs=nullptr)=0 |
| virtual common::DataObjectReference | getSupportingRepresentationDor () const =0 |
| Grid2dRepresentation * | getSupportingRepresentation () const |
| virtual uint64_t | getIndexOriginOnSupportingRepresentation () const =0 |
| virtual int | getIndexOriginOnSupportingRepresentation (unsigned int dimension) const =0 |
| virtual uint64_t | getNodeCountOnSupportingRepresentation (unsigned int dimension) const =0 |
| virtual int64_t | getIndexOffsetOnSupportingRepresentation (unsigned int dimension) const =0 |
| Gets the index offset of the nodes of the current geometry on a particular dimension of the supporting representation. | |
| uint64_t | getPatchCount () const final |
| std::string | getXmlTag () const final |
Public Member Functions inherited from resqml2::AbstractSurfaceRepresentation | |
| virtual | ~AbstractSurfaceRepresentation ()=default |
| unsigned int | getBoundariesCount () const |
| common::DataObjectReference | getOuterRingDor (unsigned int index) const |
| void | pushBackOuterRing (PolylineRepresentation *outerRing) |
| void | setSurfaceRole (gsoap_resqml2_0_1::resqml20__SurfaceRole surfaceRole) |
| gsoap_resqml2_0_1::resqml20__SurfaceRole | getSurfaceRole () const |
Public Member Functions inherited from resqml2::AbstractRepresentation | |
| virtual | ~AbstractRepresentation ()=default |
| class AbstractLocal3dCrs * | getLocalCrs (unsigned int patchIndex) const |
| virtual common::DataObjectReference | getLocalCrsDor (unsigned int patchIndex) const |
| virtual common::DataObjectReference | getHdfProxyDor () const =0 |
| Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry). | |
| void | setTimeIndex (uint64_t timeIndex, eml2 ::TimeSeries *timeSeries) |
| uint64_t | getTimeIndex () const |
| Gets the time index of this representation in the associated TimeSeries. Be sure to first check that a TimeSeries is associated this representation by calling getTimeSeriesDor or getTimeSeries;. | |
| eml2::TimeSeries * | getTimeSeries () const |
| common::DataObjectReference | getTimeSeriesDor () const |
| Gets the data object reference of the TimeSeries containing the time of this representation at a particular index. For now, this method only look for a TimeSeries at the first patch containing a point geometry. | |
| std::vector< class AbstractProperty * > | getPropertySet () const |
| void | setInterpretation (class AbstractFeatureInterpretation *interp) |
| class AbstractFeatureInterpretation * | getInterpretation () const |
| common::DataObjectReference | getInterpretationDor () const |
| uint64_t | getXyzPointCountOfAllPatches () const |
| void | getXyzPointsOfPatchInGlobalCrs (unsigned int patchIndex, double *xyzPoints) const |
| Gets all the xyz points of a particular patch of this representation. xyz points are given in the global CRS. | |
| void | getXyzPointsOfAllPatches (double *xyzPoints) const |
| Gets all the xyz points of all patches of this representation. xyz points are given in the local CRS. | |
| bool | isInSingleLocalCrs () const |
| bool | isInSingleGlobalCrs () const |
| void | getXyzPointsOfAllPatchesInGlobalCrs (double *xyzPoints) const |
| AbstractRepresentation * | getSeismicSupportOfPatch (const unsigned int &patchIndex) const |
| std::set< AbstractRepresentation * > | getAllSeismicSupport () const |
| void | pushBackIntoRepresentationSet (class RepresentationSetRepresentation *repSet) |
| void | addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double *inlines, double *crosslines, uint64_t pointCount, resqml2 ::AbstractRepresentation *seismicSupport, eml2 ::AbstractHdfProxy *proxy) |
| void | addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double startInline, double incrInline, unsigned int countInline, double startCrossline, double incrCrossline, unsigned int countCrossline, resqml2 ::AbstractRepresentation *seismicSupport) |
| void | addSeismic2dCoordinatesToPatch (unsigned int patchIndex, double *lineAbscissa, resqml2 ::AbstractRepresentation *seismicSupport, eml2 ::AbstractHdfProxy *proxy) |
| void | getSeismicLineAbscissaOfPointsOfPatch (unsigned int patchIndex, double *values) const |
| void | getInlinesOfPointsOfPatch (unsigned int patchIndex, double *values) const |
| void | getCrosslinesOfPointsOfPatch (unsigned int patchIndex, double *values) const |
Static Public Attributes | |
| static const char * | XML_TAG |
Static Public Attributes inherited from resqml2::AbstractRepresentation | |
| static constexpr char const * | XML_TAG = "AbstractRepresentation" |
A 2d grid representation.
|
virtualdefault |
Destructor does nothing since the memory is managed by the gSOAP context.
|
pure virtual |
Gets the index offset of the nodes of the current geometry on a particular dimension of the supporting representation.
| std::logic_error | If no supporting representation is associated to this 2d grid representation. |
| std::out_of_range | If dimension is out of range. |
| dimension | The dimension for which we look for the index offset. |
dimension.
|
pure virtual |
Gets the index of the origin of the current geometry on the supporting representation. The index is given by means of the formula iOrigin + jOrigin * iNodeCountOnSupportingRepresentation
| std::logic_error | If no supporting representation is associated to this 2d grid representation. |
|
pure virtual |
Gets the index of the origin of the current geometry on a particular dimension of the supporting representation.
| std::logic_error | If no supporting representation is associated to this 2d grid representation. |
| std::invalid_argument | If dimension differs from 0 or 1. |
| dimension | The dimension for which we look for the index of the origin. It can be 0 for J (slowest) dimension or 1 for I (fastest) dimension. |
dimension.
|
pure virtual |
Gets the constant I (fastest) spacing of this 2d grid representation.
| std::logic_error | If the I spacing is not constant or cannot be get. |
|
pure virtual |
Gets all the I (fastest) spacings of this 2d grid representation.
| std::logic_error | If the HDF proxy is missing of if the I spacings cannot be get. |
| [out] | iSpacings | A preallocated array to receive the I spacings. The count of this array must be getNodeCountAlongJAxis() - 1 and it will not be freed by this method. |
|
pure virtual |
Gets the constant J (slowest) spacing of this 2d grid representation.
| std::logic_error | If the J spacing is not constant or cannot be get. |
|
pure virtual |
Gets all the J (slowest) spacings of this 2d grid representation.
| std::logic_error | If the HDF proxy is missing of if the J spacings cannot be get. |
| [out] | jSpacings | A preallocated array to receive the J spacings. The count of this array must be getNodeCountAlongJAxis() - 1 and it will not be freed by this method. |
|
pure virtual |
Gets the number of nodes along the I (fastest) axis of this 2d grid representation.
|
pure virtual |
Gets the number of nodes along the J (slowest) axis of this 2d grid representation.
|
pure virtual |
Gets the number of nodes of the current geometry which is extracted from a particular dimension of the supporting representation.
| std::logic_error | If no supporting representation is associated to this 2d grid representation. |
| std::out_of_range | If dimension is out of range. |
| dimension | The dimension for which we look for the number of nodes. |
dimension.
|
inlinefinalvirtual |
| Grid2dRepresentation * resqml2::Grid2dRepresentation::getSupportingRepresentation | ( | ) | const |
Gets the supporting representation of this 2d grid representation.
nullptr.
|
pure virtual |
Gets the supporting representation data object reference.
|
pure virtual |
Gets the x offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The x coordinate is given in the local CRS.
| std::logic_error | If the x offset along the I axis cannot be get. |
| double resqml2::Grid2dRepresentation::getXIOffsetInGlobalCrs | ( | ) | const |
Gets the x offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The x coordinate is given in the global CRS.
| std::logic_error | If the x offset along the I axis cannot be get. |
|
pure virtual |
Gets the x offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The x coordinate is given in the local CRS.
| std::logic_error | If the x offset along the J axis cannot be get. |
| double resqml2::Grid2dRepresentation::getXJOffsetInGlobalCrs | ( | ) | const |
Gets the x offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The x coordinate is given in the global CRS.
| std::logic_error | If the x offset along the J axis cannot be get. |
|
pure virtual |
Gets the x coordinate of the origin of this 2d grid representation. The x coordinate is given in the local CRS.
| double resqml2::Grid2dRepresentation::getXOriginInGlobalCrs | ( | ) | const |
Gets the x coordinate of the origin of this 2d grid representation. The x coordinate is given in the global CRS.
|
finalvirtual |
Get the xyz point count in a given patch of this representation.
| std::out_of_range | If patchIndex is out of range. |
| std::logic_error | If this representation is partial. |
| patchIndex | Zero-based index of the patch from which we look for the xyz points. |
patchIndex. Implements resqml2::AbstractRepresentation.
|
finalvirtual |
Please do note use: please compute x and y values with the lattice information.
Implements resqml2::AbstractRepresentation.
|
pure virtual |
Gets the y offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The y coordinate is given in the local CRS.
| std::logic_error | If the y offset along the I axis cannot be get. |
| double resqml2::Grid2dRepresentation::getYIOffsetInGlobalCrs | ( | ) | const |
Gets the y offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The y coordinate is given in the global CRS.
| std::logic_error | If the y offset along the I axis cannot be get. |
|
pure virtual |
Gets the y offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The y coordinate is given in the local CRS.
| std::logic_error | If the y offset along the J axis cannot be get. |
| double resqml2::Grid2dRepresentation::getYJOffsetInGlobalCrs | ( | ) | const |
Gets the y offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The y coordinate is given in the global CRS.
| std::logic_error | If the y offset along the J axis cannot be get. |
|
pure virtual |
Gets the y coordinate of the origin of this 2d grid representation. The y coordinate is given in the local CRS.
| double resqml2::Grid2dRepresentation::getYOriginInGlobalCrs | ( | ) | const |
Gets the y coordinate of the origin of this 2d grid representation. The y coordinate is given in the global CRS.
|
pure virtual |
Gets the z offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The z coordinate is given in the local CRS.
| std::logic_error | If the z offset along the I axis cannot be get. |
| double resqml2::Grid2dRepresentation::getZIOffsetInGlobalCrs | ( | ) | const |
Gets the z offset along the I (fastest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The z coordinate is given in the global CRS.
| std::logic_error | If the z offset along the I axis cannot be get. |
|
pure virtual |
Gets the z offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The z coordinate is given in the local CRS.
| std::logic_error | If the z offset along the J axis cannot be get. |
| double resqml2::Grid2dRepresentation::getZJOffsetInGlobalCrs | ( | ) | const |
Gets the z offset along the J (slowest) axis. If the J spacing is constant, the returned offset is exactly the offset between two consecutive nodes lying on the J axis. If not, the offset length does not have any meaning. The z coordinate is given in the global CRS.
| std::logic_error | If the z offset along the J axis cannot be get. |
|
pure virtual |
Gets the z coordinate of the origin of this 2d grid representation. The z coordinate is given in the local CRS.
| double resqml2::Grid2dRepresentation::getZOriginInGlobalCrs | ( | ) | const |
Gets the z coordinate of the origin of this 2d grid representation. The z coordinate is given in the global CRS.
|
pure virtual |
Gets all the z values of this 2d grid representation. The z values are given in the local CRS.
| std::logic_error | If the z values cannot be get from this 2d grid representation. |
| [out] | values | A preallocated array to receive the z values. Its size must be equal to getNodeCountAlongIAxis() * getNodeCountAlongJAxis() and it will not be freed by this method. The I dimension is the fastest. |
| void resqml2::Grid2dRepresentation::getZValuesInGlobalCrs | ( | double * | values | ) | const |
Gets all the z values of this 2d grid representation. The z values are given in the global CRS.
| std::logic_error | If the z values cannot be get from this 2d grid representation. |
| [out] | values | A preallocated array to receive the z values. Its size must be equal to getNodeCountAlongIAxis() * getNodeCountAlongJAxis() and it will not be freed by this method. The I dimension is the fastest. |
|
pure virtual |
Checks whether the spacing between nodes on I (fastest) dimension is constant or not.
| std::logic_error | If the J spacing cannot be get. |
|
pure virtual |
Checks whether the spacing between nodes on J (slowest) dimension is constant or not.
| std::logic_error | If the J spacing cannot be get. |
|
pure virtual |
Sets the geometry of this 2d grid representation. The set geometry is a 2d array of explicit z.
| std::invalid_argument | If proxy == nullptr and no default HDF proxy is defined in the repository. |
| std::invalid_argument | If localCrs == nullptr and no default CRS is defined in the repository. |
| [in] | zValues | An array of numI * numJ z values. |
| numI | The number of points in the I (fastest) direction. | |
| numJ | The number of points in the J (slowest) direction. | |
| [in,out] | proxy | The HDF proxy where to store the z values. If nullptr, the repository default HDF proxy will be used. |
| originX | The origin x coordinate. | |
| originY | The origin y coordinate. | |
| originZ | The origin z coordinate. | |
| offsetIX | The x offset in the I (fastest) direction. | |
| offsetIY | The y offset in the I (fastest) direction. | |
| offsetIZ | The z offset in the I (fastest) direction. | |
| spacingI | The spacing in the I (fastest) direction. | |
| offsetJX | The x offset in the J (slowest) direction. | |
| offsetJY | The y offset in the J (slowest) direction. | |
| offsetJZ | The z offset in the J (slowest) direction. | |
| spacingJ | The spacing in the J (slowest) direction. | |
| [in] | localCrs | (Optional) If non-null, the local CRS. If nullptr (default), the repository default local CRS will be used. |
|
pure virtual |
Sets the geometry of this 2d grid representation. The set geometry is a 2d array of explicit z based on an existing representation.
| std::invalid_argument | If proxy == nullptr and no default HDF proxy is defined in the repository. |
| std::invalid_argument | If supportingGrid2dRepresentation == nullptr. |
| std::invalid_argument | If localCrs == nullptr and no default CRS is defined in the repository. |
| [in] | zValues | An array of numI * numJ z values. |
| numI | The number of points in the I (fastest) direction. | |
| numJ | The number of points in the J (slowest) direction. | |
| [in,out] | proxy | The HDF proxy where to store the z values. If nullptr, the repository default HDF proxy will be used. |
| [in] | supportingGrid2dRepresentation | The supporting 2d grid representation. |
| [in] | localCrs | (Optional) If non-null, the local CRS. If nullptr (default), the repository default CRS will be used. |
| startIndexI | (Optional) The start index in the I (fastest) direction. Default value is 0. | |
| startIndexJ | (Optional) The start index in the J (slowest) direction. Default value is 0. | |
| indexIncrementI | (Optional) The index increment in the I (fastest) direction. Default value is 1. | |
| indexIncrementJ | (Optional) The index increment in the J (slowest) direction. Default value is 1. |
|
pure virtual |
Sets the geometry of this 2d grid representation. The set geometry is a 2d array of 3d lattice points.
| std::invalid_argument | If localCrs == nullptr and no default CRS is defined in the repository. |
| numPointsInFastestDirection | The number of points in the fastest direction. | |
| numPointsInSlowestDirection | The number of points in the slowest direction. | |
| xOrigin | The origin x coordinate. | |
| yOrigin | The origin y coordinate. | |
| zOrigin | The origin z coordinate. | |
| xOffsetInFastestDirection | The x offset in the fastest direction. | |
| yOffsetInFastestDirection | The y offset in the fastest direction. | |
| zOffsetInFastestDirection | The z offset in the fastest direction. | |
| xOffsetInSlowestDirection | The x offset in the slowest direction. | |
| yOffsetInSlowestDirection | The y offset in the slowest direction. | |
| zOffsetInSlowestDirection | The z offset in the slowest direction. | |
| spacingInFastestDirection | The spacing in the fastest direction. | |
| spacingInSlowestDirection | The spacing in the slowest direction. | |
| [in] | localCrs | (Optional) If non-null, the local CRS. If nullptr (default), the repository default CRS will be used. |
|
static |
The standard XML tag without XML namespace for serializing this data object.