Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
PolylineRepresentation.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 #pragma once
20 
21 #include "../resqml2/PolylineRepresentation.h"
22 
23 namespace RESQML2_2_NS
24 {
26  class PolylineRepresentation final : public RESQML2_NS::PolylineRepresentation
27  {
28  public:
29 
37  DLL_IMPORT_OR_EXPORT PolylineRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::PolylineRepresentation(partialObject) {}
38 
51  PolylineRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
52  const std::string & guid, const std::string & title, gsoap_eml2_3::resqml22__LineRole roleKind,
53  bool isClosed = false);
54 
65  PolylineRepresentation(COMMON_NS::DataObjectRepository * repo,
66  const std::string & guid, const std::string & title, bool isClosed = false);
67 
79  PolylineRepresentation(RESQML2_NS::AbstractFeatureInterpretation* interp,
80  const std::string & guid, const std::string & title, bool isClosed = false);
81 
87  PolylineRepresentation(gsoap_eml2_3::_resqml22__PolylineRepresentation* fromGsoap) : RESQML2_NS::PolylineRepresentation(fromGsoap) {}
88 
91 
92  COMMON_NS::DataObjectReference getHdfProxyDor() const final;
93 
94  DLL_IMPORT_OR_EXPORT uint64_t getXyzPointCountOfPatch(unsigned int patchIndex) const final;
95 
96  DLL_IMPORT_OR_EXPORT void getXyzPointsOfPatch(unsigned int patchIndex, double * xyzPoints) const final;
97 
98  DLL_IMPORT_OR_EXPORT void setGeometry(double const* points, unsigned int pointCount, EML2_NS::AbstractHdfProxy* proxy = nullptr, RESQML2_NS::AbstractLocal3dCrs* localCrs = nullptr) final;
99 
100  DLL_IMPORT_OR_EXPORT bool isClosed() const final;
101 
102  DLL_IMPORT_OR_EXPORT bool hasALineRole() const final;
103 
104  DLL_IMPORT_OR_EXPORT gsoap_eml2_3::resqml22__LineRole getLineRole() const final;
105 
106  DLL_IMPORT_OR_EXPORT void setLineRole(gsoap_eml2_3::resqml22__LineRole lineRole) final;
107 
111  DLL_IMPORT_OR_EXPORT static const char* XML_NS;
112 
116  DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
117 
118  private:
119  gsoap_eml2_3::resqml22__PointGeometry* getPointGeometry2_2(unsigned int patchIndex) const final;
120 
129  void init(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title, bool isClosed = false);
130  };
131 }
Definition: PolylineRepresentation.h:27
PolylineRepresentation(resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title, gsoap_eml2_3::resqml22__LineRole roleKind, bool isClosed=false)
Creates an instance of this class in a gsoap context.
PolylineRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: PolylineRepresentation.h:37
common::DataObjectReference getHdfProxyDor() const final
Gets the data object reference of the HDF proxy which is used for storing the numerical values of thi...
PolylineRepresentation(resqml2::AbstractFeatureInterpretation *interp, const std::string &guid, const std::string &title, bool isClosed=false)
Creates an instance of this class in a gsoap context.
PolylineRepresentation(gsoap_eml2_3::_resqml22__PolylineRepresentation *fromGsoap)
Definition: PolylineRepresentation.h:87
PolylineRepresentation(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, bool isClosed=false)