1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomData_Point.h
4 // Created: 24 Apr 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef GeomData_Point_H_
8 #define GeomData_Point_H_
11 #include "GeomDataAPI_Point.h"
12 #include <TDataStd_RealArray.hxx>
13 #include <TDF_Label.hxx>
15 /**\class GeomData_Point
17 * \brief Attribute that contains 3D point.
20 class GeomData_Point : public GeomDataAPI_Point
22 Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2]
24 /// Defines the double value
25 GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
27 GEOMDATA_EXPORT virtual void setValue(const std::shared_ptr<GeomAPI_Pnt>& thePoint);
29 /// Returns the X double value
30 GEOMDATA_EXPORT virtual double x() const;
31 /// Returns the Y double value
32 GEOMDATA_EXPORT virtual double y() const;
33 /// Returns the Z double value
34 GEOMDATA_EXPORT virtual double z() const;
35 /// Returns the 3D point
36 GEOMDATA_EXPORT virtual std::shared_ptr<GeomAPI_Pnt> pnt();
39 /// Initializes attributes
40 GEOMDATA_EXPORT GeomData_Point(TDF_Label& theLabel);
42 friend class Model_Data;