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 "AbstractRepresentation.h"
22 
23 namespace RESQML2_NS
24 {
38  {
39  public:
40 
42  virtual ~PolylineRepresentation() = default;
43 
62  DLL_IMPORT_OR_EXPORT virtual void setGeometry(double const* points, unsigned int pointCount, EML2_NS::AbstractHdfProxy* proxy = nullptr, RESQML2_NS::AbstractLocal3dCrs* localCrs = nullptr) = 0;
63 
71  DLL_IMPORT_OR_EXPORT virtual bool isClosed() const = 0;
72 
78  DLL_IMPORT_OR_EXPORT virtual bool hasALineRole() const = 0;
79 
85  DLL_IMPORT_OR_EXPORT bool isASeismicLine() const;
86 
92  DLL_IMPORT_OR_EXPORT bool isAFaciesLine() const;
93 
101  DLL_IMPORT_OR_EXPORT virtual gsoap_eml2_3::resqml22__LineRole getLineRole() const = 0;
102 
108  DLL_IMPORT_OR_EXPORT virtual void setLineRole(gsoap_eml2_3::resqml22__LineRole lineRole) = 0;
109 
110  DLL_IMPORT_OR_EXPORT unsigned int getPatchCount() const final {return 1;}
111 
113  DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
114 
115  DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const final { return XML_TAG; }
116 
117  protected:
118 
126  DLL_IMPORT_OR_EXPORT PolylineRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractRepresentation(partialObject) {}
127 
131  PolylineRepresentation() {}
132 
138  PolylineRepresentation(gsoap_resqml2_0_1::_resqml20__PolylineRepresentation* fromGsoap) : AbstractRepresentation(fromGsoap) {}
139 
145  PolylineRepresentation(gsoap_eml2_3::_resqml22__PolylineRepresentation* fromGsoap) : AbstractRepresentation(fromGsoap) {}
146 
155  void init(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title, bool isClosed = false);
156  };
157 }
Proxy class for an abstract representation.
Definition: AbstractRepresentation.h:32
A representation made up of a single polyline or "polygonal chain", which may be closed or not....
Definition: PolylineRepresentation.h:38
virtual std::string getXmlTag() const final
Definition: PolylineRepresentation.h:115
virtual gsoap_eml2_3::resqml22__LineRole getLineRole() const =0
unsigned int getPatchCount() const final
Definition: PolylineRepresentation.h:110
virtual void setGeometry(double const *points, unsigned int pointCount, eml2::AbstractHdfProxy *proxy=nullptr, resqml2::AbstractLocal3dCrs *localCrs=nullptr)=0
virtual ~PolylineRepresentation()=default
virtual void setLineRole(gsoap_eml2_3::resqml22__LineRole lineRole)=0
static const char * XML_TAG
Definition: PolylineRepresentation.h:113
virtual bool hasALineRole() const =0
virtual bool isClosed() const =0