Fesapi  0.13.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_0_1/AbstractSurfaceRepresentation.h"
22 
23 namespace RESQML2_0_1_NS
24 {
25  class DLL_IMPORT_OR_EXPORT PolylineRepresentation : public RESQML2_NS::AbstractRepresentation
26  {
27  private :
28  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const;
29 
34  void pushBackRepresentationOuterRing(AbstractSurfaceRepresentation* rep) {outerRingOfSet.push_back(rep);}
36 
41  void pushBackRepresentationInnerRing(AbstractSurfaceRepresentation* rep) {innerRingOfSet.push_back(rep);}
42 
43  // Backward relationships
44  std::vector<AbstractSurfaceRepresentation*> outerRingOfSet;
45  std::vector<AbstractSurfaceRepresentation*> innerRingOfSet;
46 
48  const std::string & guid, const std::string & title, bool isClosed = false);
49 
50  public:
51 
55  PolylineRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::AbstractRepresentation(partialObject) {}
56 
67  const std::string & guid, const std::string & title, const gsoap_resqml2_0_1::resqml2__LineRole & roleKind,
68  bool isClosed = false);
69 
78  const std::string & guid, const std::string & title, bool isClosed = false);
79 
89  const std::string & guid, const std::string & title, bool isClosed = false);
90 
94  PolylineRepresentation(gsoap_resqml2_0_1::_resqml2__PolylineRepresentation* fromGsoap) : RESQML2_NS::AbstractRepresentation(fromGsoap) {}
95 
100 
101  std::string getHdfProxyUuid() const;
102 
106  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const;
107 
113  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
114 
120  void setGeometry(double * points, const unsigned int & pointCount, COMMON_NS::AbstractHdfProxy* proxy);
121 
122  static const char* XML_TAG;
123  virtual std::string getXmlTag() const {return XML_TAG;}
124 
128  bool isClosed() const;
129 
133  bool hasALineRole() const;
134 
138  bool isASeismicLine() const;
139 
143  bool isAFaciesLine() const;
144 
149  gsoap_resqml2_0_1::resqml2__LineRole getLineRole() const;
150 
154  void setLineRole(const gsoap_resqml2_0_1::resqml2__LineRole & lineRole);
155 
156  unsigned int getPatchCount() const {return 1;}
157 
158  protected:
159  std::vector<epc::Relationship> getAllEpcRelationships() const;
160  };
161 }
162 
virtual std::string getXmlTag() const
Definition: PolylineRepresentation.h:123
Definition: PolylineRepresentation.h:25
Definition: AbstractRepresentation.h:31
Definition: AbstractFeatureInterpretation.h:30
Definition: EpcDocument.h:65
~PolylineRepresentation()
Definition: PolylineRepresentation.h:99
PolylineRepresentation(gsoap_resqml2_0_1::_resqml2__PolylineRepresentation *fromGsoap)
Definition: PolylineRepresentation.h:94
void pushBackOuterRing(PolylineRepresentation *outerRing)
Definition: AbstractSurfaceRepresentation.cpp:262
Definition: AbstractHdfProxy.h:30
PolylineRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: PolylineRepresentation.h:55
Definition: AbstractSurfaceRepresentation.h:25
Definition: AbstractLocal3dCrs.h:25
Definition: EpcDocument.h:49