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_2_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_eml2_3::resqml22__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 patchIndex, double * xyzPoints) const final;
163
185 DLL_IMPORT_OR_EXPORT void setGeometry(
186 uint32_t const * nodeCountPerPolyline, double const * xyzPoints,
187 EML2_NS::AbstractHdfProxy* hdfProxy = nullptr, EML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
188
189 //********************************
190 //******* GRID INFO *************
191 //********************************
192
232 DLL_IMPORT_OR_EXPORT void setIntervalGridCells(uint16_t const* gridIndices, uint16_t gridIndicesNullValue,
233 int64_t const* cellIndices,
234 uint8_t const* localFacePairPerCellIndices, uint8_t localFacePairPerCellIndicesNullValue,
235 const std::vector<RESQML2_NS::AbstractGridRepresentation*> & supportingGrids,
236 EML2_NS::AbstractHdfProxy * hdfProxy = nullptr) final;
237
252 DLL_IMPORT_OR_EXPORT uint16_t getGridIndices(uint16_t * gridIndices) const final;
253
269 DLL_IMPORT_OR_EXPORT int64_t getCellIndices(int64_t * cellIndices) const final;
270
284 DLL_IMPORT_OR_EXPORT uint8_t getLocalFacePairPerCellIndices(uint8_t * localFacePairPerCellIndices) const final;
285
294 DLL_IMPORT_OR_EXPORT uint64_t getGridRepresentationCount() const final;
295
306 COMMON_NS::DataObjectReference getGridRepresentationDor(uint64_t index) const final;
307
315 COMMON_NS::DataObjectReference getHdfProxyDor() const final;
316
320 DLL_IMPORT_OR_EXPORT static const char* XML_NS;
321
325 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
326
327 private:
328 gsoap_eml2_3::resqml22__PointGeometry* getPointGeometry2_2(uint64_t patchIndex) const final;
329 };
330}
Specification of the vector field upon which the streamlines are based.
Definition StreamlinesRepresentation.h:38
StreamlinesRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition StreamlinesRepresentation.h:45
StreamlinesRepresentation(gsoap_eml2_3::resqml22__StreamlinesRepresentation *fromGsoap)
Definition StreamlinesRepresentation.h:52
uint64_t getLineCount() const 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.
Definition WellboreTrajectoryRepresentation.h:27