My Project
RepresentationSetRepresentation.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
39 {
41  {
42  protected:
44 
45  RepresentationSetRepresentation() : AbstractRepresentation(nullptr, static_cast<resqml2::AbstractLocal3dCrs*>(nullptr)) {}
46 
50  RepresentationSetRepresentation(gsoap_resqml2_0_1::_resqml2__RepresentationSetRepresentation* fromGsoap) : resqml2::AbstractRepresentation(fromGsoap) {}
51 
52  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const { return nullptr; }
53 
54  public:
55 
59  RepresentationSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) :
60  resqml2::AbstractRepresentation(partialObject)
61  {
62  }
63 
68 
69  static const char* XML_TAG;
70  virtual std::string getXmlTag() const;
71 
72  std::string getHdfProxyUuid() const {return "";}
73 
74 
75  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const;
76 
82  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
83 
84  unsigned int getPatchCount() const {return 0;}
85 
89  bool isHomogeneous() const;
90 
94  unsigned int getRepresentationCount() const;
95 
99  resqml2::AbstractRepresentation* getRepresentation(const unsigned int & index) const;
100 
104  gsoap_resqml2_0_1::eml20__DataObjectReference* getRepresentationDor(const unsigned int & index) const;
105 
109  std::string getRepresentationUuid(const unsigned int & index) const;
110 
111  protected:
112 
113  void pushBackXmlRepresentation(resqml2::AbstractRepresentation* rep);
114 
115  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
116  virtual void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
117 
119  };
120 }
virtual ~RepresentationSetRepresentation()
Definition: RepresentationSetRepresentation.h:67
RepresentationSetRepresentation(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: RepresentationSetRepresentation.h:59
void pushBackIntoRepresentationSet(class RepresentationSetRepresentation *repSet, bool xml=true)
Definition: AbstractRepresentation.cpp:424
Definition: EpcDocument.h:168
Definition: AbstractRepresentation.h:44
RepresentationSetRepresentation(gsoap_resqml2_0_1::_resqml2__RepresentationSetRepresentation *fromGsoap)
Definition: RepresentationSetRepresentation.h:50
Definition: EpcDocument.h:62
gsoap_resqml2_0_1::resqml2__PointGeometry * getPointGeometry2_0_1(const unsigned int &patchIndex) const
Definition: RepresentationSetRepresentation.h:52
Definition: RepresentationSetRepresentation.h:40
Definition: AbstractFeatureInterpretation.h:45