Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
resqml2::Grid2dRepresentation Class Referenceabstract

A 2d grid representation. More...

#include <Grid2dRepresentation.h>

Inheritance diagram for resqml2::Grid2dRepresentation:
resqml2::AbstractSurfaceRepresentation resqml2::AbstractRepresentation

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
 
Grid2dRepresentationgetSupportingRepresentation () 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 AbstractLocal3dCrsgetLocalCrs (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::TimeSeriesgetTimeSeries () 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 AbstractFeatureInterpretationgetInterpretation () 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
 
AbstractRepresentationgetSeismicSupportOfPatch (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"
 

Detailed Description

A 2d grid representation.

Constructor & Destructor Documentation

◆ ~Grid2dRepresentation()

virtual resqml2::Grid2dRepresentation::~Grid2dRepresentation ( )
virtualdefault

Destructor does nothing since the memory is managed by the gSOAP context.

Member Function Documentation

◆ getIndexOffsetOnSupportingRepresentation()

virtual int64_t resqml2::Grid2dRepresentation::getIndexOffsetOnSupportingRepresentation ( unsigned int dimension) const
pure virtual

Gets the index offset of the nodes of the current geometry on a particular dimension of the supporting representation.

Exceptions
std::logic_errorIf no supporting representation is associated to this 2d grid representation.
std::out_of_rangeIf dimension is out of range.
Parameters
dimensionThe dimension for which we look for the index offset.
Returns
The index offset on the dimension dimension.

◆ getIndexOriginOnSupportingRepresentation() [1/2]

virtual uint64_t resqml2::Grid2dRepresentation::getIndexOriginOnSupportingRepresentation ( ) const
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

Exceptions
std::logic_errorIf no supporting representation is associated to this 2d grid representation.
Returns
The index of the origin on the supporting representation.

◆ getIndexOriginOnSupportingRepresentation() [2/2]

virtual int resqml2::Grid2dRepresentation::getIndexOriginOnSupportingRepresentation ( unsigned int dimension) const
pure virtual

Gets the index of the origin of the current geometry on a particular dimension of the supporting representation.

Exceptions
std::logic_errorIf no supporting representation is associated to this 2d grid representation.
std::invalid_argumentIf dimension differs from 0 or 1.
Parameters
dimensionThe 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.
Returns
The index of the origin on the supporting representation on the dimension dimension.

◆ getISpacing() [1/2]

virtual double resqml2::Grid2dRepresentation::getISpacing ( ) const
pure virtual

Gets the constant I (fastest) spacing of this 2d grid representation.

Exceptions
std::logic_errorIf the I spacing is not constant or cannot be get.
Returns
The constant I (fastest) spacing of this 2d grid representation.

◆ getISpacing() [2/2]

virtual void resqml2::Grid2dRepresentation::getISpacing ( double * iSpacings) const
pure virtual

Gets all the I (fastest) spacings of this 2d grid representation.

Exceptions
std::logic_errorIf the HDF proxy is missing of if the I spacings cannot be get.
Parameters
[out]iSpacingsA 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.

◆ getJSpacing() [1/2]

virtual double resqml2::Grid2dRepresentation::getJSpacing ( ) const
pure virtual

Gets the constant J (slowest) spacing of this 2d grid representation.

Exceptions
std::logic_errorIf the J spacing is not constant or cannot be get.
Returns
The constant J (slowest) spacing of this 2d grid representation.

◆ getJSpacing() [2/2]

virtual void resqml2::Grid2dRepresentation::getJSpacing ( double * jSpacings) const
pure virtual

Gets all the J (slowest) spacings of this 2d grid representation.

Exceptions
std::logic_errorIf the HDF proxy is missing of if the J spacings cannot be get.
Parameters
[out]jSpacingsA 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.

◆ getNodeCountAlongIAxis()

virtual uint64_t resqml2::Grid2dRepresentation::getNodeCountAlongIAxis ( ) const
pure virtual

Gets the number of nodes along the I (fastest) axis of this 2d grid representation.

Returns
The node count along the I (fastest) axis.

◆ getNodeCountAlongJAxis()

virtual uint64_t resqml2::Grid2dRepresentation::getNodeCountAlongJAxis ( ) const
pure virtual

Gets the number of nodes along the J (slowest) axis of this 2d grid representation.

Returns
The node count along the J (slowest) axis.

◆ getNodeCountOnSupportingRepresentation()

virtual uint64_t resqml2::Grid2dRepresentation::getNodeCountOnSupportingRepresentation ( unsigned int dimension) const
pure virtual

Gets the number of nodes of the current geometry which is extracted from a particular dimension of the supporting representation.

Exceptions
std::logic_errorIf no supporting representation is associated to this 2d grid representation.
std::out_of_rangeIf dimension is out of range.
Parameters
dimensionThe dimension for which we look for the number of nodes.
Returns
The number of nodes on the dimension dimension.

◆ getPatchCount()

uint64_t resqml2::Grid2dRepresentation::getPatchCount ( ) const
inlinefinalvirtual

Gets the patch count.

Returns
The patch count.

Implements resqml2::AbstractRepresentation.

◆ getSupportingRepresentation()

Grid2dRepresentation * resqml2::Grid2dRepresentation::getSupportingRepresentation ( ) const

Gets the supporting representation of this 2d grid representation.

Returns
The supporting representation if there exists one, else nullptr.

◆ getSupportingRepresentationDor()

virtual common::DataObjectReference resqml2::Grid2dRepresentation::getSupportingRepresentationDor ( ) const
pure virtual

Gets the supporting representation data object reference.

Returns
The supporting representation data object reference if there exists one, else empty data object reference.

◆ getXIOffset()

virtual double resqml2::Grid2dRepresentation::getXIOffset ( ) const
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.

Exceptions
std::logic_errorIf the x offset along the I axis cannot be get.
Returns
The x offset along the I (fastest) axis.

◆ getXIOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the x offset along the I axis cannot be get.
Returns
The x offset along the I (fastest) axis.

◆ getXJOffset()

virtual double resqml2::Grid2dRepresentation::getXJOffset ( ) const
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.

Exceptions
std::logic_errorIf the x offset along the J axis cannot be get.
Returns
The x offset along the J (slowest) axis.

◆ getXJOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the x offset along the J axis cannot be get.
Returns
The x offset along the J (slowest) axis.

◆ getXOrigin()

virtual double resqml2::Grid2dRepresentation::getXOrigin ( ) const
pure virtual

Gets the x coordinate of the origin of this 2d grid representation. The x coordinate is given in the local CRS.

Returns
NAN if the origin x coordinate cannot be get, the origin x coordinate otherwise.

◆ getXOriginInGlobalCrs()

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.

Returns
NAN if the origin x coordinate cannot be get, the origin x coordinate otherwise.

◆ getXyzPointCountOfPatch()

uint64_t resqml2::Grid2dRepresentation::getXyzPointCountOfPatch ( unsigned int patchIndex) const
finalvirtual

Get the xyz point count in a given patch of this representation.

Exceptions
std::out_of_rangeIf patchIndex is out of range.
std::logic_errorIf this representation is partial.
Parameters
patchIndexZero-based index of the patch from which we look for the xyz points.
Returns
The xyz point count of the patch at position patchIndex.

Implements resqml2::AbstractRepresentation.

◆ getXyzPointsOfPatch()

void resqml2::Grid2dRepresentation::getXyzPointsOfPatch ( unsigned int patchIndex,
double * xyzPoints ) const
finalvirtual

Please do note use: please compute x and y values with the lattice information.

Implements resqml2::AbstractRepresentation.

◆ getYIOffset()

virtual double resqml2::Grid2dRepresentation::getYIOffset ( ) const
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.

Exceptions
std::logic_errorIf the y offset along the I axis cannot be get.
Returns
The y offset along the I (fastest) axis.

◆ getYIOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the y offset along the I axis cannot be get.
Returns
The y offset along the I (fastest) axis.

◆ getYJOffset()

virtual double resqml2::Grid2dRepresentation::getYJOffset ( ) const
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.

Exceptions
std::logic_errorIf the y offset along the J axis cannot be get.
Returns
The y offset along the J (slowest) axis.

◆ getYJOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the y offset along the J axis cannot be get.
Returns
The y offset along the J (slowest) axis.

◆ getYOrigin()

virtual double resqml2::Grid2dRepresentation::getYOrigin ( ) const
pure virtual

Gets the y coordinate of the origin of this 2d grid representation. The y coordinate is given in the local CRS.

Returns
NAN if the origin y coordinate cannot be get, the origin y coordinate otherwise.

◆ getYOriginInGlobalCrs()

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.

Returns
NAN if the origin y coordinate cannot be get, the origin y coordinate otherwise.

◆ getZIOffset()

virtual double resqml2::Grid2dRepresentation::getZIOffset ( ) const
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.

Exceptions
std::logic_errorIf the z offset along the I axis cannot be get.
Returns
The z offset along the I (fastest) axis.

◆ getZIOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the z offset along the I axis cannot be get.
Returns
The z offset along the I (fastest) axis.

◆ getZJOffset()

virtual double resqml2::Grid2dRepresentation::getZJOffset ( ) const
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.

Exceptions
std::logic_errorIf the z offset along the J axis cannot be get.
Returns
The z offset along the J (slowest) axis.

◆ getZJOffsetInGlobalCrs()

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.

Exceptions
std::logic_errorIf the z offset along the J axis cannot be get.
Returns
The z offset along the J (slowest) axis.

◆ getZOrigin()

virtual double resqml2::Grid2dRepresentation::getZOrigin ( ) const
pure virtual

Gets the z coordinate of the origin of this 2d grid representation. The z coordinate is given in the local CRS.

Returns
NAN if the origin z coordinate cannot be get, the origin z coordinate otherwise.

◆ getZOriginInGlobalCrs()

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.

Returns
NAN if the origin z coordinate cannot be get, the origin z coordinate otherwise.

◆ getZValues()

virtual void resqml2::Grid2dRepresentation::getZValues ( double * values) const
pure virtual

Gets all the z values of this 2d grid representation. The z values are given in the local CRS.

Exceptions
std::logic_errorIf the z values cannot be get from this 2d grid representation.
Parameters
[out]valuesA 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.

◆ getZValuesInGlobalCrs()

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.

Exceptions
std::logic_errorIf the z values cannot be get from this 2d grid representation.
Parameters
[out]valuesA 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.

◆ isISpacingConstant()

virtual bool resqml2::Grid2dRepresentation::isISpacingConstant ( ) const
pure virtual

Checks whether the spacing between nodes on I (fastest) dimension is constant or not.

Exceptions
std::logic_errorIf the J spacing cannot be get.
Returns
True if the J (fastest) spacing is constant, false if not.

◆ isJSpacingConstant()

virtual bool resqml2::Grid2dRepresentation::isJSpacingConstant ( ) const
pure virtual

Checks whether the spacing between nodes on J (slowest) dimension is constant or not.

Exceptions
std::logic_errorIf the J spacing cannot be get.
Returns
True if the J (slowest) spacing is constant, false if not.

◆ setGeometryAsArray2dOfExplicitZ() [1/2]

virtual void resqml2::Grid2dRepresentation::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 )
pure virtual

Sets the geometry of this 2d grid representation. The set geometry is a 2d array of explicit z.

Exceptions
std::invalid_argumentIf proxy == nullptr and no default HDF proxy is defined in the repository.
std::invalid_argumentIf localCrs == nullptr and no default CRS is defined in the repository.
Parameters
[in]zValuesAn array of numI * numJ z values.
numIThe number of points in the I (fastest) direction.
numJThe number of points in the J (slowest) direction.
[in,out]proxyThe HDF proxy where to store the z values. If nullptr, the repository default HDF proxy will be used.
originXThe origin x coordinate.
originYThe origin y coordinate.
originZThe origin z coordinate.
offsetIXThe x offset in the I (fastest) direction.
offsetIYThe y offset in the I (fastest) direction.
offsetIZThe z offset in the I (fastest) direction.
spacingIThe spacing in the I (fastest) direction.
offsetJXThe x offset in the J (slowest) direction.
offsetJYThe y offset in the J (slowest) direction.
offsetJZThe z offset in the J (slowest) direction.
spacingJThe 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.

◆ setGeometryAsArray2dOfExplicitZ() [2/2]

virtual void resqml2::Grid2dRepresentation::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 )
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.

Exceptions
std::invalid_argumentIf proxy == nullptr and no default HDF proxy is defined in the repository.
std::invalid_argumentIf supportingGrid2dRepresentation == nullptr.
std::invalid_argumentIf localCrs == nullptr and no default CRS is defined in the repository.
Parameters
[in]zValuesAn array of numI * numJ z values.
numIThe number of points in the I (fastest) direction.
numJThe number of points in the J (slowest) direction.
[in,out]proxyThe HDF proxy where to store the z values. If nullptr, the repository default HDF proxy will be used.
[in]supportingGrid2dRepresentationThe 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.

◆ setGeometryAsArray2dOfLatticePoints3d()

virtual void resqml2::Grid2dRepresentation::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 )
pure virtual

Sets the geometry of this 2d grid representation. The set geometry is a 2d array of 3d lattice points.

Exceptions
std::invalid_argumentIf localCrs == nullptr and no default CRS is defined in the repository.
Parameters
numPointsInFastestDirectionThe number of points in the fastest direction.
numPointsInSlowestDirectionThe number of points in the slowest direction.
xOriginThe origin x coordinate.
yOriginThe origin y coordinate.
zOriginThe origin z coordinate.
xOffsetInFastestDirectionThe x offset in the fastest direction.
yOffsetInFastestDirectionThe y offset in the fastest direction.
zOffsetInFastestDirectionThe z offset in the fastest direction.
xOffsetInSlowestDirectionThe x offset in the slowest direction.
yOffsetInSlowestDirectionThe y offset in the slowest direction.
zOffsetInSlowestDirectionThe z offset in the slowest direction.
spacingInFastestDirectionThe spacing in the fastest direction.
spacingInSlowestDirectionThe spacing in the slowest direction.
[in]localCrs(Optional) If non-null, the local CRS. If nullptr (default), the repository default CRS will be used.

Member Data Documentation

◆ XML_TAG

const char* resqml2::Grid2dRepresentation::XML_TAG
static

The standard XML tag without XML namespace for serializing this data object.


The documentation for this class was generated from the following file: