]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_CenterPrs.h
Salome HOME
External points manager object created
[modules/shaper.git] / src / PartSet / PartSet_CenterPrs.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_CenterPrs.h
4 // Created:     25 April 2017
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef PartSet_CenterPrs_H
8 #define PartSet_CenterPrs_H
9
10 #include <ModelAPI_Object.h>
11 #include <GeomAPI_Shape.h>
12
13 #include <AIS_Point.hxx>
14 #include <Standard_DefineHandle.hxx>
15 #include <gp_Pnt.hxx>
16
17 DEFINE_STANDARD_HANDLE(PartSet_CenterPrs, AIS_Point)
18
19 class PartSet_CenterPrs: public AIS_Point
20 {
21 public:
22   /// Constructor
23   /// \param theResult a result object
24   Standard_EXPORT PartSet_CenterPrs(const ObjectPtr& theObject,
25                                     const GeomShapePtr& theEdge,
26                                     const gp_Pnt& theCenter);
27
28   ObjectPtr object() const { return myObject; }
29   GeomShapePtr edge() const { return myEdge; }
30
31   DEFINE_STANDARD_RTTIEXT(PartSet_CenterPrs, AIS_Point)
32 private:
33   ObjectPtr myObject;
34   GeomShapePtr myEdge;
35 };
36
37 #endif