My Project
AbstractLocal3dCrs.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/MdDatum.h"
37 
38 namespace resqml2
39 {
40  class DLL_IMPORT_OR_EXPORT AbstractLocal3dCrs : public common::AbstractObject
41  {
42  protected:
43 
47  AbstractLocal3dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : common::AbstractObject(partialObject) {}
48 
50 
54  AbstractLocal3dCrs(gsoap_resqml2_0_1::resqml2__AbstractLocal3dCrs* fromGsoap):
55  common::AbstractObject(fromGsoap) {}
56 
61  virtual double getZOffset() const = 0;
62 
63  public:
64 
68  virtual ~AbstractLocal3dCrs() {}
69 
74  void addRepresentation(class AbstractRepresentation* rep);
75 
79  double getOriginOrdinal1() const;
80 
84  double getOriginOrdinal2() const;
85 
90  double getOriginDepthOrElevation() const;
91 
97  double getArealRotation() const;
98 
102  bool isDepthOriented() const;
103 
107  bool isProjectedCrsDefinedWithEpsg() const;
108 
112  virtual bool isProjectedCrsUnknown() const;
113 
117  const std::string & getProjectedCrsUnknownReason() const;
118 
122  unsigned long long getProjectedCrsEpsgCode() const;
123 
127  bool isVerticalCrsDefinedWithEpsg() const;
128 
132  bool isVerticalCrsUnknown() const;
133 
137  const std::string & getVerticalCrsUnknownReason() const;
138 
142  unsigned long long getVerticalCrsEpsgCode() const;
143 
147  std::string getVerticalCrsUnitAsString() const;
148 
149  gsoap_resqml2_0_1::eml20__PlaneAngleUom getArealRotationUom() const;
150 
154  gsoap_resqml2_0_1::eml20__LengthUom getProjectedCrsUnit() const;
155 
159  std::string getProjectedCrsUnitAsString() const;
160 
164  gsoap_resqml2_0_1::eml20__LengthUom getVerticalCrsUnit() const;
165 
169  gsoap_resqml2_0_1::eml20__AxisOrder2d getAxisOrder() const;
170 
171  void convertXyzPointsToGlobalCrs(double * xyzPoints, const ULONG64 & xyzPointCount, bool withoutTranslation = false) const;
172 
173  protected:
174 
175  std::vector<epc::Relationship> getAllEpcRelationships() const;
177 
178  // XML backward relationship
179  std::vector<class AbstractRepresentation*> repSet;
180  std::vector<MdDatum*> mdDatumSet;
181 
182  private:
187  void addMdDatum(MdDatum* mdInfo);
188 
189  friend void MdDatum::setLocalCrs(AbstractLocal3dCrs * localCrs);
190  };
191 }
void setLocalCrs(class AbstractLocal3dCrs *localCrs)
Definition: MdDatum.cpp:90
Definition: AbstractLocal3dCrs.h:40
AbstractLocal3dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: AbstractLocal3dCrs.h:47
Definition: EpcDocument.h:168
Definition: AbstractObject.h:42
Definition: AbstractRepresentation.h:44
Definition: AbstractHdfProxy.h:43
Definition: MdDatum.h:46
void importRelationshipSetFromEpc(common::EpcDocument *epcDoc)
Definition: AbstractLocal3dCrs.h:176
Definition: EpcDocument.h:62
virtual ~AbstractLocal3dCrs()
Definition: AbstractLocal3dCrs.h:68
AbstractLocal3dCrs(gsoap_resqml2_0_1::resqml2__AbstractLocal3dCrs *fromGsoap)
Definition: AbstractLocal3dCrs.h:54