Salome HOME
b7217a62ccfd7aa679a787d095f722a6e7521a37
[modules/shaper.git] / src / ConstructionAPI / ConstructionAPI_Point.h
1 // Name   : ConstructionAPI_Point.h
2 // Purpose: 
3 //
4 // History:
5 // 29/03/16 - Sergey POKHODENKO - Creation of the file
6
7 #ifndef SRC_CONSTRUCTIONAPI_CONSTRUCTIONAPI_POINT_H_
8 #define SRC_CONSTRUCTIONAPI_CONSTRUCTIONAPI_POINT_H_
9
10 //--------------------------------------------------------------------------------------
11 #include "ConstructionAPI.h"
12
13 #include <ModelHighAPI_Interface.h>
14 //--------------------------------------------------------------------------------------
15 class ModelAPI_AttributeDouble;
16 class ModelHighAPI_Double;
17 //--------------------------------------------------------------------------------------
18 /*
19  *
20  */
21 class ConstructionAPI_Point : public ModelHighAPI_Interface
22 {
23 public:
24   ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature);
25   ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature,
26                         const ModelHighAPI_Double & theX,
27                         const ModelHighAPI_Double & theY,
28                         const ModelHighAPI_Double & theZ);
29   virtual ~ConstructionAPI_Point();
30
31   void setPoint(const ModelHighAPI_Double & theX,
32                 const ModelHighAPI_Double & theY,
33                 const ModelHighAPI_Double & theZ);
34
35   std::shared_ptr<ModelAPI_AttributeDouble> x() const;
36   std::shared_ptr<ModelAPI_AttributeDouble> y() const;
37   std::shared_ptr<ModelAPI_AttributeDouble> z() const;
38
39 protected:
40   std::shared_ptr<ModelAPI_AttributeDouble> myX, myY, myZ;
41
42   bool initialize();
43 };
44
45 //--------------------------------------------------------------------------------------
46 //--------------------------------------------------------------------------------------
47 #endif /* SRC_CONSTRUCTIONAPI_CONSTRUCTIONAPI_POINT_H_ */