My Project
AbstractSurfaceRepresentation.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2017)
3 
4 philippe.verney@f2i-consulting.com
5 
6 This software is a computer program whose purpose is to access to data formatted using Energistics standards.
7 
8 This software is governed by the CeCILL-B license under French law and
9 abiding by the rules of distribution of free software. You can use,
10 modify and/ or redistribute the software under the terms of the CeCILL-B
11 license as circulated by CEA, CNRS and INRIA at the following URL
12 "http://www.cecill.info".
13 
14 As a counterpart to the access to the source code and rights to copy,
15 modify and redistribute granted by the license, users are provided only
16 with a limited warranty and the software's author, the holder of the
17 economic rights, and the successive licensors have only limited
18 liability.
19 
20 In this respect, the user's attention is drawn to the risks associated
21 with loading, using, modifying and/or developing or reproducing the
22 software by the user in light of its specific status of free software,
23 that may mean that it is complicated to manipulate, and that also
24 therefore means that it is reserved for developers and experienced
25 professionals having in-depth computer knowledge. Users are therefore
26 encouraged to load and test the software's suitability as regards their
27 requirements in conditions enabling the security of their systems and/or
28 data to be ensured and, more generally, to use and operate it in the
29 same conditions as regards security.
30 
31 The fact that you are presently reading this means that you have had
32 knowledge of the CeCILL-B license and that you accept its terms.
33 -----------------------------------------------------------------------*/
34 #pragma once
35 
36 #include "resqml2/AbstractRepresentation.h"
37 
38 namespace resqml2_0_1
39 {
41  {
42  protected:
43 
47  AbstractSurfaceRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : resqml2::AbstractRepresentation(partialObject) {}
48 
54 
58  AbstractSurfaceRepresentation(gsoap_resqml2_0_1::resqml2__AbstractSurfaceRepresentation* fromGsoap) : resqml2::AbstractRepresentation(fromGsoap) {}
59 
64  gsoap_resqml2_0_1::resqml2__Point3dFromRepresentationLatticeArray* getPoint3dFromRepresentationLatticeArrayFromPointGeometryPatch(gsoap_resqml2_0_1::resqml2__PointGeometry* patch) const;
65 
69  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfLatticePoints3d(
70  const unsigned int & numPointsInFastestDirection, const unsigned int & numPointsInSlowestDirection,
71  const double & xOrigin, const double & yOrigin, const double & zOrigin,
72  const double & xOffsetInFastestDirection, const double & yOffsetInFastestDirection, const double & zOffsetInFastestDirection,
73  const double & xOffsetInSlowestDirection, const double & yOffsetInSlowestDirection, const double & zOffsetInSlowestDirection,
74  const double & spacingInFastestDirection, const double & spacingInSlowestDirection);
75 
87  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfExplicitZ(
88  const unsigned int & patchIndex, double * zValues,
89  const unsigned int & numI, const unsigned int & numJ, common::AbstractHdfProxy* proxy,
90  class Grid2dRepresentation * supportingRepresentation,
91  const unsigned int & startGlobalIndex = 0,
92  const int & indexIncrementI = 1, const int & indexIncrementJ = 1);
93 
101  gsoap_resqml2_0_1::resqml2__PointGeometry* createArray2dOfExplicitZ(
102  const unsigned int & patchIndex, double * zValues,
103  const unsigned int & numI, const unsigned int & numJ, common::AbstractHdfProxy* proxy,
104  const double & originX, const double & originY, const double & originZ,
105  const double & offsetIX, const double & offsetIY, const double & offsetIZ, const double & spacingI,
106  const double & offsetJX, const double & offsetJY, const double & offsetJZ, const double & spacingJ);
107 
108  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
109 
110  virtual void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
111 
112  std::vector<PolylineRepresentation*> outerRingSet; // outer rings are ordered as the patches of the representation are ordered.
113 
114  public:
115 
120 
125  void pushBackOuterRing(PolylineRepresentation * outerRing);
126 
132  void setSurfaceRole(const gsoap_resqml2_0_1::resqml2__SurfaceRole & surfaceRole);
133 
139  const gsoap_resqml2_0_1::resqml2__SurfaceRole & getSurfaceRole() const;
140 
141 
142  };
143 }
AbstractSurfaceRepresentation(resqml2::AbstractFeatureInterpretation *interp, resqml2::AbstractLocal3dCrs *crs)
Definition: AbstractSurfaceRepresentation.h:53
Definition: AbstractSurfaceRepresentation.h:40
AbstractSurfaceRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: AbstractSurfaceRepresentation.h:47
Definition: AbstractLocal3dCrs.h:40
Definition: Grid2dRepresentation.h:40
Definition: PolylineRepresentation.h:40
Definition: EpcDocument.h:78
Definition: EpcDocument.h:168
Definition: AbstractRepresentation.h:44
AbstractSurfaceRepresentation(gsoap_resqml2_0_1::resqml2__AbstractSurfaceRepresentation *fromGsoap)
Definition: AbstractSurfaceRepresentation.h:58
virtual ~AbstractSurfaceRepresentation()
Definition: AbstractSurfaceRepresentation.h:119
Definition: EpcDocument.h:62
Definition: AbstractHdfProxy.h:45
Definition: AbstractFeatureInterpretation.h:45