Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
PointSetRepresentation.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include "../resqml2/PointSetRepresentation.h"
22
23namespace RESQML2_0_1_NS
24{
26 class PointSetRepresentation final : public RESQML2_NS::PointSetRepresentation
27 {
28 private :
29 gsoap_resqml2_0_1::resqml20__PointGeometry* getPointGeometry2_0_1(uint64_t patchIndex) const;
30
31 public:
39 DLL_IMPORT_OR_EXPORT PointSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::PointSetRepresentation(partialObject) {}
40
48 PointSetRepresentation(COMMON_NS::DataObjectRepository* repo, const std::string & guid, const std::string & title);
49
60 PointSetRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
61 const std::string & guid, const std::string & title);
62
68 PointSetRepresentation(gsoap_resqml2_0_1::_resqml20__PointSetRepresentation* fromGsoap) : RESQML2_NS::PointSetRepresentation(fromGsoap) {}
69
72
73 COMMON_NS::DataObjectReference getHdfProxyDor() const final;
74
75 DLL_IMPORT_OR_EXPORT uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const final;
76
86 DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int patchIndex, double * xyzPoints) const final;
87
88 DLL_IMPORT_OR_EXPORT uint64_t getPatchCount() const final;
89
90 DLL_IMPORT_OR_EXPORT void pushBackXyzGeometryPatch(
91 uint64_t xyzPointCount, double const* xyzPoints,
92 EML2_NS::AbstractHdfProxy* proxy = nullptr, EML2_NS::AbstractLocal3dCrs * localCrs = nullptr) final;
93
94 DLL_IMPORT_OR_EXPORT void pushBackXyGeometryPatch(
95 uint64_t xyPointCount, double const* xyPoints,
96 EML2_NS::AbstractHdfProxy* proxy = nullptr, EML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
97
98 DLL_IMPORT_OR_EXPORT bool isIn2D(uint64_t patchIndex) const final {
99 gsoap_resqml2_0_1::resqml20__PointGeometry* pointGeom = getPointGeometry2_0_1(patchIndex);
100 return (pointGeom != nullptr && pointGeom->Points->soap_type() == SOAP_TYPE_gsoap_resqml2_0_1_resqml20__Point2dHdf5Array);
101 }
102
103 DLL_IMPORT_OR_EXPORT void getXyPointsOfPatch(uint64_t patchIndex, double* xyPoints) const final;
104
108 DLL_IMPORT_OR_EXPORT static const char* XML_NS;
109
113 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
114 };
115}
Definition PointSetRepresentation.h:27
void getXyPointsOfPatch(uint64_t patchIndex, double *xyPoints) const final
PointSetRepresentation(resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title)
Creates an instance of this class in a gsoap context.
std::string getXmlNamespace() const final
Definition PointSetRepresentation.h:113
PointSetRepresentation(gsoap_resqml2_0_1::_resqml20__PointSetRepresentation *fromGsoap)
Definition PointSetRepresentation.h:68
PointSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition PointSetRepresentation.h:39
static const char * XML_NS
Definition PointSetRepresentation.h:108
common::DataObjectReference getHdfProxyDor() const final
Gets the data object reference of the HDF proxy which is used for storing the numerical values of thi...
PointSetRepresentation(common::DataObjectRepository *repo, const std::string &guid, const std::string &title)
Constructor.