Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
PolylineRepresentation.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 "AbstractRepresentation.h"
22
23namespace 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 uint64_t 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:37
A representation made up of a single polyline or "polygonal chain", which may be closed or not....
Definition PolylineRepresentation.h:38
virtual gsoap_eml2_3::resqml22__LineRole getLineRole() const =0
uint64_t getPatchCount() const final
Definition PolylineRepresentation.h:110
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
virtual void setGeometry(double const *points, unsigned int pointCount, eml2 ::AbstractHdfProxy *proxy=nullptr, resqml2 ::AbstractLocal3dCrs *localCrs=nullptr)=0