My Project
Grid2dSetRepresentation.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_0_1/AbstractSurfaceRepresentation.h"
37 
38 namespace resqml2_0_1
39 {
40  class DLL_IMPORT_OR_EXPORT Grid2dSetRepresentation : public AbstractSurfaceRepresentation
41  {
42  private :
43  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const;
44 
45  public:
46 
50  Grid2dSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractSurfaceRepresentation(partialObject) {}
51 
59  const std::string & guid, const std::string & title);
60 
64  Grid2dSetRepresentation(gsoap_resqml2_0_1::_resqml2__Grid2dSetRepresentation* fromGsoap): AbstractSurfaceRepresentation(fromGsoap) {}
65 
70 
71  static const char* XML_TAG;
72  virtual std::string getXmlTag() const {return XML_TAG;}
73 
74  std::string getHdfProxyUuid() const;
75 
76  unsigned int getNodeCountAlongIAxis(const unsigned int & patchIndex) const;
77 
78  unsigned int getNodeCountAlongJAxis(const unsigned int & patchIndex) const;
79 
83  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const {return getNodeCountAlongIAxis(patchIndex) * getNodeCountAlongJAxis(patchIndex);}
84 
90  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
91 
95  unsigned int getPatchCount() const;
96 
102  void getZValuesOfPatch(const unsigned int & patchIndex, double* values) const;
103 
109  void getZValuesOfPatchInGlobalCrs(const unsigned int & patchIndex, double* values) const;
110 
123  void pushBackGeometryPatch(
124  double * zValues,
125  const unsigned int & numI, const unsigned int & numJ, common::AbstractHdfProxy* proxy,
126  Grid2dRepresentation * supportingGrid2dRepresentation,
127  const unsigned int & startIndexI = 0, const unsigned int & startIndexJ = 0,
128  const int & indexIncrementI = 1, const int & indexIncrementJ = 1);
129 
133  std::vector<Grid2dRepresentation *> getSupportingRepresentationSet() const {return supportingRepresentationSet;}
134 
139  std::string getSupportingRepresentationUuid(const unsigned int & patchIndex) const;
140 
144  Grid2dRepresentation * getSupportingRepresentation(const unsigned int & patchIndex) {return supportingRepresentationSet[patchIndex];}
145 
149  int getIndexOriginOnSupportingRepresentation(const unsigned int & patchIndex, const unsigned int & dimension) const;
150 
154  int getNodeCountOnSupportingRepresentation(const unsigned int & patchIndex, const unsigned int & dimension) const;
155 
159  int getIndexOffsetOnSupportingRepresentation(const unsigned int & patchIndex, const unsigned int & dimension) const;
160 
161  private:
162  std::vector<epc::Relationship> getAllEpcRelationships() const;
163  void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
164 
165  std::vector<Grid2dRepresentation *> supportingRepresentationSet;
166  };
167 }
Grid2dSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: Grid2dSetRepresentation.h:50
Definition: AbstractSurfaceRepresentation.h:40
Definition: Grid2dSetRepresentation.h:40
Definition: AbstractLocal3dCrs.h:40
virtual std::string getXmlTag() const
Definition: Grid2dSetRepresentation.h:72
Definition: Grid2dRepresentation.h:40
Definition: EpcDocument.h:78
Definition: EpcDocument.h:168
Grid2dRepresentation * getSupportingRepresentation(const unsigned int &patchIndex)
Definition: Grid2dSetRepresentation.h:144
std::vector< Grid2dRepresentation * > getSupportingRepresentationSet() const
Definition: Grid2dSetRepresentation.h:133
Grid2dSetRepresentation(gsoap_resqml2_0_1::_resqml2__Grid2dSetRepresentation *fromGsoap)
Definition: Grid2dSetRepresentation.h:64
~Grid2dSetRepresentation()
Definition: Grid2dSetRepresentation.h:69
Definition: AbstractHdfProxy.h:45
ULONG64 getXyzPointCountOfPatch(const unsigned int &patchIndex) const
Definition: Grid2dSetRepresentation.h:83
Definition: AbstractFeatureInterpretation.h:45