Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
AbstractSurfaceRepresentation.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/AbstractRepresentation.h"
22 
23 namespace RESQML2_0_1_NS
24 {
26  {
27  protected:
28 
32  AbstractSurfaceRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : RESQML2_NS::AbstractRepresentation(partialObject) {}
33 
39 
43  AbstractSurfaceRepresentation(gsoap_resqml2_0_1::resqml2__AbstractSurfaceRepresentation* fromGsoap) : RESQML2_NS::AbstractRepresentation(fromGsoap) {}
44 
49  gsoap_resqml2_0_1::resqml2__Point3dFromRepresentationLatticeArray* getPoint3dFromRepresentationLatticeArrayFromPointGeometryPatch(gsoap_resqml2_0_1::resqml2__PointGeometry* patch) const;
50 
54  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfLatticePoints3d(
55  const unsigned int & numPointsInFastestDirection, const unsigned int & numPointsInSlowestDirection,
56  const double & xOrigin, const double & yOrigin, const double & zOrigin,
57  const double & xOffsetInFastestDirection, const double & yOffsetInFastestDirection, const double & zOffsetInFastestDirection,
58  const double & xOffsetInSlowestDirection, const double & yOffsetInSlowestDirection, const double & zOffsetInSlowestDirection,
59  const double & spacingInFastestDirection, const double & spacingInSlowestDirection);
60 
72  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfExplicitZ(
73  const unsigned int & patchIndex, double * zValues,
74  const unsigned int & numI, const unsigned int & numJ, COMMON_NS::AbstractHdfProxy* proxy,
75  class Grid2dRepresentation * supportingRepresentation,
76  const unsigned int & startGlobalIndex = 0,
77  const int & indexIncrementI = 1, const int & indexIncrementJ = 1);
78 
86  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfExplicitZ(
87  const unsigned int & patchIndex, double * zValues,
88  const unsigned int & numI, const unsigned int & numJ, COMMON_NS::AbstractHdfProxy* proxy,
89  const double & originX, const double & originY, const double & originZ,
90  const double & offsetIX, const double & offsetIY, const double & offsetIZ, const double & spacingI,
91  const double & offsetJX, const double & offsetJY, const double & offsetJZ, const double & spacingJ);
92 
93  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
94 
95  virtual void importRelationshipSetFromEpc(COMMON_NS::EpcDocument* epcDoc);
96 
97  std::vector<PolylineRepresentation*> outerRingSet; // outer rings are ordered as the patches of the representation are ordered.
98 
99  public:
100 
105 
110  void pushBackOuterRing(PolylineRepresentation * outerRing);
111 
117  void setSurfaceRole(const gsoap_resqml2_0_1::resqml2__SurfaceRole & surfaceRole);
118 
124  const gsoap_resqml2_0_1::resqml2__SurfaceRole & getSurfaceRole() const;
125 
126 
127  };
128 }
129 
Definition: PolylineRepresentation.h:25
AbstractSurfaceRepresentation(RESQML2_NS::AbstractFeatureInterpretation *interp, RESQML2_NS::AbstractLocal3dCrs *crs)
Definition: AbstractSurfaceRepresentation.h:38
Definition: AbstractRepresentation.h:31
Definition: AbstractFeatureInterpretation.h:30
Definition: EpcDocument.h:65
Definition: Grid2dRepresentation.h:25
AbstractSurfaceRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: AbstractSurfaceRepresentation.h:32
Definition: EpcDocument.h:154
AbstractSurfaceRepresentation(gsoap_resqml2_0_1::resqml2__AbstractSurfaceRepresentation *fromGsoap)
Definition: AbstractSurfaceRepresentation.h:43
Definition: AbstractHdfProxy.h:30
Definition: AbstractSurfaceRepresentation.h:25
Definition: AbstractLocal3dCrs.h:25
Definition: EpcDocument.h:49
virtual ~AbstractSurfaceRepresentation()
Definition: AbstractSurfaceRepresentation.h:104