Fesapi
2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
#include <Grid2dRepresentation.h>
Public Member Functions | |
Grid2dRepresentation (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject) | |
Grid2dRepresentation (resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title) | |
Grid2dRepresentation (gsoap_resqml2_0_1::_resqml20__Grid2dRepresentation *fromGsoap) | |
~Grid2dRepresentation ()=default | |
common::DataObjectReference | getHdfProxyDor () const final |
Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry). More... | |
uint64_t | getNodeCountAlongIAxis () const final |
uint64_t | getNodeCountAlongJAxis () const final |
void | getZValues (double *values) const final |
double | getXOrigin () const final |
double | getYOrigin () const final |
double | getZOrigin () const final |
double | getXJOffset () const final |
double | getYJOffset () const final |
double | getZJOffset () const final |
double | getXIOffset () const final |
double | getYIOffset () const final |
double | getZIOffset () const final |
bool | isJSpacingConstant () const final |
bool | isISpacingConstant () const final |
double | getJSpacing () const final |
void | getJSpacing (double *jSpacings) const final |
double | getISpacing () const final |
void | getISpacing (double *iSpacings) const final |
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) final |
void | setGeometryAsArray2dOfExplicitZ (double *zValues, unsigned int numI, unsigned int numJ, eml2::AbstractHdfProxy *proxy, resqml2::Grid2dRepresentation *supportingGrid2dRepresentation, resqml2::AbstractLocal3dCrs *localCrs=nullptr, unsigned int startIndexI=0, unsigned int startIndexJ=0, int indexIncrementI=1, int indexIncrementJ=1) final |
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) final |
common::DataObjectReference | getSupportingRepresentationDor () const final |
int | getIndexOriginOnSupportingRepresentation () const final |
int | getIndexOriginOnSupportingRepresentation (unsigned int dimension) const final |
int | getNodeCountOnSupportingRepresentation (unsigned int dimension) const final |
int | getIndexOffsetOnSupportingRepresentation (unsigned int dimension) const final |
Gets the index offset of the nodes of the current geometry on a particular dimension of the supporting representation. More... | |
std::string | getXmlNamespace () const final |
Public Member Functions inherited from resqml2::Grid2dRepresentation | |
uint64_t | getXyzPointCountOfPatch (unsigned int patchIndex) const final |
void | getXyzPointsOfPatch (unsigned int patchIndex, double *xyzPoints) const final |
void | getZValuesInGlobalCrs (double *values) const |
double | getXOriginInGlobalCrs () const |
double | getYOriginInGlobalCrs () const |
double | getZOriginInGlobalCrs () const |
double | getXJOffsetInGlobalCrs () const |
double | getYJOffsetInGlobalCrs () const |
double | getZJOffsetInGlobalCrs () const |
double | getXIOffsetInGlobalCrs () const |
double | getYIOffsetInGlobalCrs () const |
double | getZIOffsetInGlobalCrs () const |
Grid2dRepresentation * | getSupportingRepresentation () const |
unsigned int | 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 |
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. More... | |
void | getXyzPointsOfAllPatches (double *xyzPoints) const |
Gets all the xyz points of all patches of this representation. xyz points are given in the local CRS. More... | |
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, unsigned int 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 |
Public Member Functions inherited from common::AbstractObject | |
bool | isPartial () const |
virtual bool | isTopLevelElement () const |
std::string | getUuid () const |
std::string | getTitle () const |
std::string | getEditor () const |
time_t | getCreation () const |
tm | getCreationAsTimeStructure () const |
std::string | getOriginator () const |
std::string | getDescription () const |
time_t | getLastUpdate () const |
tm | getLastUpdateAsTimeStructure () const |
std::string | getFormat () const |
std::string | getDescriptiveKeywords () const |
std::string | getVersion () const |
void | setTitle (const std::string &title) |
void | setEditor (const std::string &editor) |
void | setCreation (time_t creation) |
void | setCreation (const tm &creation) |
void | setOriginator (const std::string &originator) |
void | setDescription (const std::string &description) |
void | setLastUpdate (time_t lastUpdate) |
void | setLastUpdate (const tm &lastUpdate) |
void | setDescriptiveKeywords (const std::string &descriptiveKeywords) |
void | setVersion (const std::string &version) |
void | setMetadata (const std::string &title, const std::string &editor, time_t creation, const std::string &originator, const std::string &description, time_t lastUpdate, const std::string &descriptiveKeywords) |
void | serializeIntoStream (std::ostream *stream) |
void | setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy) |
void | setGsoapProxy (gsoap_eml2_1::eml21__AbstractObject *gsoapProxy) |
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * | getEml20GsoapProxy () const |
gsoap_eml2_1::eml21__AbstractObject * | getEml21GsoapProxy () const |
gsoap_eml2_2::eml22__AbstractObject * | getEml22GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_2::eml22__AbstractObject *gsoapProxy) |
gsoap_eml2_3::eml23__AbstractObject * | getEml23GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_3::eml23__AbstractObject *gsoapProxy) |
soap * | getGsoapContext () const |
int | getGsoapType () const |
gsoap_resqml2_0_1::eml20__DataObjectReference * | newResqmlReference () const |
gsoap_eml2_1::eml21__DataObjectReference * | newEmlReference () const |
gsoap_eml2_2::eml22__DataObjectReference * | newEml22Reference () const |
gsoap_eml2_3::eml23__DataObjectReference * | newEml23Reference () const |
gsoap_resqml2_0_1::resqml20__ContactElementReference * | newContactElementReference2_0_1 () const |
gsoap_eml2_3::resqml22__ContactElement * | newContactElementReference2_2 () const |
common::DataObjectRepository * | getRepository () const |
virtual std::string | getXmlNamespaceVersion () const |
virtual std::string | getContentType () const |
virtual std::string | getQualifiedType () const |
virtual std::string | getPartNameInEpcDocument () const |
std::string | serializeIntoString () |
void | addAlias (const std::string &authority, const std::string &title) |
unsigned int | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (unsigned int index) const |
std::string | getAliasTitleAtIndex (unsigned int index) const |
std::vector< eml2::Activity * > | getActivitySet () const |
unsigned int | getActivityCount () const |
eml2::Activity * | getActivity (unsigned int index) const |
void | pushBackExtraMetadata (const std::string &key, const std::string &value) |
std::unordered_map< std::string, std::string > | getExtraMetadataSet () const |
std::vector< std::string > | getExtraMetadata (const std::string &key) const |
unsigned int | getExtraMetadataCount () const |
std::string | getExtraMetadataKeyAtIndex (unsigned int index) const |
std::string | getExtraMetadataStringValueAtIndex (unsigned int index) const |
Static Public Attributes | |
static const char * | XML_NS |
Static Public Attributes inherited from resqml2::Grid2dRepresentation | |
static const char * | XML_TAG |
Static Public Attributes inherited from resqml2::AbstractRepresentation | |
static const char * | XML_TAG |
Additional Inherited Members | |
Public Types inherited from resqml2::AbstractRepresentation | |
enum | indexableElement { NODE = 0 , EDGE = 1 , FACE = 2 , VOLUME = 3 , PILLAR = 4 } |
Public Types inherited from common::AbstractObject | |
enum | hdfDatatypeEnum { UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , LONG_64 = 3 , ULONG_64 = 4 , INT = 5 , UINT = 6 , SHORT = 7 , USHORT = 8 , CHAR = 9 , UCHAR = 10 } |
Static Public Member Functions inherited from common::AbstractObject | |
static void | setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber) |
A grid 2D representation.
|
inline |
Only to be used in partial transfer context
[in,out] | partialObject | If non-null, the partial object. |
resqml2_0_1::Grid2dRepresentation::Grid2dRepresentation | ( | resqml2::AbstractFeatureInterpretation * | interp, |
const std::string & | guid, | ||
const std::string & | title | ||
) |
Creates an instance of this class in a gsoap context.
[in,out] | interp | The interpretation this representation represents. |
guid | The guid to set to the new instance. If empty then a new guid will be generated. | |
title | A title for the instance to create. |
|
inline |
Creates an instance of this class by wrapping a gsoap instance.
[in,out] | fromGsoap | If non-null, from gsoap. |
|
virtualdefault |
Destructor does nothing since the memory is managed by the gsoap context.
Reimplemented from resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry).
std::logic_error | If this representation is partial. |
Implements resqml2::AbstractRepresentation.
|
finalvirtual |
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
. Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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
. Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the number of nodes along the I (fastest) axis of this 2d grid representation.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the number of nodes along the J (slowest) axis of this 2d grid representation.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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
. Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the supporting representation data object reference.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
inlinefinalvirtual |
Get the standard XML namespace for serializing this data object.
Implements common::AbstractObject.
|
finalvirtual |
Gets the x coordinate of the origin of this 2d grid representation. The x coordinate is given in the local CRS.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the y coordinate of the origin of this 2d grid representation. The y coordinate is given in the local CRS.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Gets the z coordinate of the origin of this 2d grid representation. The z coordinate is given in the local CRS.
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Checks whether the spacing between nodes on I (fastest) dimension is constant or not.
std::logic_error | If the J spacing cannot be get. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
Checks whether the spacing between nodes on J (slowest) dimension is constant or not.
std::logic_error | If the J spacing cannot be get. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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 . |
Implements resqml2::Grid2dRepresentation.
|
finalvirtual |
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. |
Implements resqml2::Grid2dRepresentation.
|
static |
The standard XML namespace for serializing this data object.