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
StreamlinesRepresentation.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/StreamlinesRepresentation.h"
22
23namespace RESQML2_NS
24{
25 class GenericFeatureInterpretation;
26}
27
28namespace RESQML2_0_1_NS
29{
37 class StreamlinesRepresentation final : public RESQML2_NS::StreamlinesRepresentation
38 {
39 public:
45 DLL_IMPORT_OR_EXPORT StreamlinesRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::StreamlinesRepresentation(partialObject) {}
46
52 StreamlinesRepresentation(gsoap_resqml2_0_1::_resqml20__StreamlinesRepresentation* fromGsoap) : RESQML2_NS::StreamlinesRepresentation(fromGsoap) {}
53
65 StreamlinesRepresentation(RESQML2_NS::GenericFeatureInterpretation* interp,
66 const std::string & guid, const std::string & title, uint64_t lineCount);
67
72
80 DLL_IMPORT_OR_EXPORT uint64_t getLineCount() const final;
81
82 //********************************
83 //**** WELLBORE INFO ************
84 //********************************
85
94 DLL_IMPORT_OR_EXPORT uint64_t getWellboreTrajectoryCount() const final;
95
106 COMMON_NS::DataObjectReference getWellboreTrajectoryDor(uint64_t index) const final;
107
117 DLL_IMPORT_OR_EXPORT uint32_t getInjectorPerLine(uint32_t* injectorPerLine) const final;
118
128 DLL_IMPORT_OR_EXPORT uint32_t getProducerPerLine(uint32_t* producerPerLine) const final;
129
143 void setWellboreInformation(uint32_t const* injectorPerLine, uint32_t const* producerPerLine, const std::vector<RESQML2_NS::WellboreTrajectoryRepresentation*> & wellboreTrajectories,
144 uint32_t nullValue = (std::numeric_limits<uint32_t>::max)(), EML2_NS::AbstractHdfProxy* hdfProxy = nullptr) final;
145
146 //********************************
147 //********** GEOMETRY ************
148 //********************************
149
157 DLL_IMPORT_OR_EXPORT void getNodeCountPerLine(uint32_t * nodeCountPerPolyline) const final;
158
162 DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int, double *) const final {
163 throw std::logic_error("Streamlines have no XYZ information in version 2.0.1.");
164 }
165
187 DLL_IMPORT_OR_EXPORT void setGeometry(
188 uint32_t const * nodeCountPerPolyline, double const * xyzPoints,
189 EML2_NS::AbstractHdfProxy* hdfProxy = nullptr, EML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
190
191 //********************************
192 //******* GRID INFO *************
193 //********************************
194
234 DLL_IMPORT_OR_EXPORT void setIntervalGridCells(uint16_t const* gridIndices, uint16_t gridIndicesNullValue,
235 int64_t const* cellIndices,
236 uint8_t const* localFacePairPerCellIndices, uint8_t localFacePairPerCellIndicesNullValue,
237 const std::vector<RESQML2_NS::AbstractGridRepresentation*> & supportingGrids,
238 EML2_NS::AbstractHdfProxy * hdfProxy = nullptr) final;
239
254 DLL_IMPORT_OR_EXPORT uint16_t getGridIndices(uint16_t * gridIndices) const final;
255
271 DLL_IMPORT_OR_EXPORT int64_t getCellIndices(int64_t * cellIndices) const final;
272
286 DLL_IMPORT_OR_EXPORT uint8_t getLocalFacePairPerCellIndices(uint8_t * localFacePairPerCellIndices) const final;
287
296 DLL_IMPORT_OR_EXPORT uint64_t getGridRepresentationCount() const final;
297
308 COMMON_NS::DataObjectReference getGridRepresentationDor(uint64_t index) const final;
309
317 COMMON_NS::DataObjectReference getHdfProxyDor() const final;
318
322 DLL_IMPORT_OR_EXPORT static const char* XML_NS;
323
327 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
328 };
329}
Specification of the vector field upon which the streamlines are based.
Definition StreamlinesRepresentation.h:38
uint64_t getLineCount() const final
StreamlinesRepresentation(gsoap_resqml2_0_1::_resqml20__StreamlinesRepresentation *fromGsoap)
Definition StreamlinesRepresentation.h:52
void setGeometry(uint32_t const *nodeCountPerPolyline, double const *xyzPoints, eml2::AbstractHdfProxy *hdfProxy=nullptr, eml2::AbstractLocal3dCrs *localCrs=nullptr) final
StreamlinesRepresentation(resqml2::GenericFeatureInterpretation *interp, const std::string &guid, const std::string &title, uint64_t lineCount)
Creates an instance of this class in a gsoap context.
StreamlinesRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition StreamlinesRepresentation.h:45
Definition WellboreTrajectoryRepresentation.h:27