My Project
PolylineSetRepresentation.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2016)
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 {
40  class DLL_IMPORT_OR_EXPORT PolylineSetRepresentation : public resqml2::AbstractRepresentation
41  {
42  private :
43  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const;
45  const std::string & guid, const std::string & title);
46 
47  public:
48 
56  const std::string & guid, const std::string & title);
57 
66  const std::string & guid, const std::string & title);
67 
77  const std::string & guid, const std::string & title, const gsoap_resqml2_0_1::resqml2__LineRole & roleKind);
78 
82  PolylineSetRepresentation(gsoap_resqml2_0_1::_resqml2__PolylineSetRepresentation* fromGsoap) : resqml2::AbstractRepresentation(fromGsoap) {}
83 
88 
89  std::string getHdfProxyUuid() const;
90 
94  unsigned int getPolylineCountOfPatch(const unsigned int & patchIndex) const;
95  unsigned int getPolylineCountOfAllPatches() const;
96 
97  static const char* XML_TAG;
98  virtual std::string getXmlTag() const {return XML_TAG;}
99 
100  void getNodeCountPerPolylineInPatch(const unsigned int & patchIndex, unsigned int * NodeCountPerPolyline) const;
101 
106  void getNodeCountPerPolylineOfAllPatches(unsigned int * NodeCountPerPolyline) const;
107 
111  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const;
112 
118  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
119 
123  unsigned int getPatchCount() const;
124 
133  void pushBackGeometryPatch(
134  unsigned int * NodeCountPerPolyline, double * nodes,
135  const unsigned int & polylineCount, const bool & allPolylinesClosedFlag,
137 
146  void pushBackGeometryPatch(
147  unsigned int * NodeCountPerPolyline, double * nodes,
148  const unsigned int & polylineCount, bool * polylineClosedFlags,
150 
157  bool areAllPolylinesClosedOfPatch(const unsigned int & patchIndex) const;
158  bool areAllPolylinesClosedOfAllPatches() const;
159 
166  bool areAllPolylinesNonClosedOfPatch(const unsigned int & patchIndex) const;
167  bool areAllPolylinesNonClosedOfAllPatches() const;
168 
173  void getClosedFlagPerPolylineOfPatch(const unsigned int & patchIndex, bool * closedFlagPerPolyline) const;
174  void getClosedFlagPerPolylineOfAllPatches(bool * closedFlagPerPolyline) const;
175 
179  bool hasALineRole() const;
180 
185  gsoap_resqml2_0_1::resqml2__LineRole getLineRole() const;
186 
190  void setLineRole(const gsoap_resqml2_0_1::resqml2__LineRole & lineRole);
191 
192  };
193 }
~PolylineSetRepresentation()
Definition: PolylineSetRepresentation.h:87
Definition: AbstractHdfProxy.h:44
Definition: AbstractLocal3dCrs.h:40
Definition: PolylineSetRepresentation.h:40
virtual std::string getXmlTag() const
Definition: PolylineSetRepresentation.h:98
Definition: EpcDocument.h:79
PolylineSetRepresentation(gsoap_resqml2_0_1::_resqml2__PolylineSetRepresentation *fromGsoap)
Definition: PolylineSetRepresentation.h:82
Definition: AbstractRepresentation.h:40
Definition: EpcDocument.h:61
Definition: AbstractFeatureInterpretation.h:45