My Project
WellboreFrameRepresentation.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 #include "resqml2/AbstractValuesProperty.h"
38 
39 namespace witsml1_4_1_1
40 {
41  class Log;
42 }
43 
44 namespace resqml2_0_1
45 {
47  {
48  protected:
49  gsoap_resqml2_0_1::resqml2__PointGeometry* getPointGeometry2_0_1(const unsigned int & patchIndex) const {return nullptr;}
50 
51  WellboreFrameRepresentation(resqml2::AbstractFeatureInterpretation* interp, resqml2::AbstractLocal3dCrs * crs) : AbstractRepresentation(interp, crs), trajectory(nullptr), witsmlLog(nullptr) {}
52 
53  public:
54 
62  WellboreFrameRepresentation(class WellboreInterpretation* interp, const std::string & guid, const std::string & title, class WellboreTrajectoryRepresentation * traj);
63 
67  WellboreFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreFrameRepresentation* fromGsoap): AbstractRepresentation(fromGsoap), trajectory(nullptr), witsmlLog(nullptr) {}
68 
70 
77  void setMdValues(double * mdValues, const unsigned int & mdValueCount, resqml2::AbstractHdfProxy* proxy);
78 
85  void setMdValues(const double & firstMdValue, const double & incrementMdValue, const unsigned int & mdValueCount);
86 
91  bool areMdValuesRegularlySpaced() const;
92 
97  double getMdConstantIncrementValue() const;
98 
102  double getMdFirstValue() const;
103 
107  unsigned int getMdValuesCount() const;
108 
112  ULONG64 getXyzPointCountOfPatch(const unsigned int & patchIndex) const {return getMdValuesCount();}
113 
119  void getXyzPointsOfPatch(const unsigned int & patchIndex, double * xyzPoints) const;
120 
124  resqml2::AbstractValuesProperty::hdfDatatypeEnum getMdHdfDatatype() const;
125 
129  void getMdAsDoubleValues(double * values);
130 
134  void getMdAsFloatValues(float * values);
135 
139  std::string getWellboreTrajectoryUuid() const;
140 
145 
146  std::string getLocalCrsUuid() const;
147 
148  std::string getHdfProxyUuid() const;
149 
150  unsigned int getPatchCount() const {return 1;}
151 
152  void setWitsmlLog(witsml1_4_1_1::Log * witsmlLogToSet);
153  witsml1_4_1_1::Log* getWitsmlLog() {return witsmlLog;}
154 
155  static const char* XML_TAG;
156  virtual std::string getXmlTag() const {return XML_TAG;}
157 
158  protected:
159 
160  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
161  virtual void importRelationshipSetFromEpc(common::EpcDocument* epcDoc);
162 
163  class WellboreTrajectoryRepresentation * trajectory;
164  witsml1_4_1_1::Log * witsmlLog;
165  };
166 }
Definition: EpcDocument.h:142
WellboreFrameRepresentation(gsoap_resqml2_0_1::_resqml2__WellboreFrameRepresentation *fromGsoap)
Definition: WellboreFrameRepresentation.h:67
Definition: WellboreInterpretation.h:40
Definition: AbstractHdfProxy.h:44
gsoap_resqml2_0_1::resqml2__PointGeometry * getPointGeometry2_0_1(const unsigned int &patchIndex) const
Definition: WellboreFrameRepresentation.h:49
Definition: AbstractLocal3dCrs.h:40
Definition: Log.h:42
class WellboreTrajectoryRepresentation * getWellboreTrajectory()
Definition: WellboreFrameRepresentation.h:144
Definition: EpcDocument.h:79
ULONG64 getXyzPointCountOfPatch(const unsigned int &patchIndex) const
Definition: WellboreFrameRepresentation.h:112
Definition: EpcDocument.h:155
Definition: WellboreTrajectoryRepresentation.h:50
Definition: AbstractRepresentation.h:40
Definition: WellboreFrameRepresentation.h:46
virtual std::string getXmlTag() const
Definition: WellboreFrameRepresentation.h:156
Definition: AbstractFeatureInterpretation.h:45