]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchAPI/SketchAPI_Constraint.h
Salome HOME
Dump Python in the High Level Parameterized Geometry API (issue #1648)
[modules/shaper.git] / src / SketchAPI / SketchAPI_Constraint.h
1 // Name   : SketchAPI_Constraint.h
2 // Purpose: 
3 //
4 // History:
5 // 08/08/16 - Artem ZHIDKOV - Creation of the file
6
7 #ifndef SRC_SKETCHAPI_SKETCHAPI_CONSTRAINT_H_
8 #define SRC_SKETCHAPI_SKETCHAPI_CONSTRAINT_H_
9
10 #include "SketchAPI.h"
11
12 #include <ModelHighAPI_Interface.h>
13 #include <ModelHighAPI_Macro.h>
14 #include <ModelHighAPI_RefAttr.h>
15
16 #include <SketchPlugin_Constraint.h>
17
18 /**\class SketchAPI_Constraint
19  * \ingroup CPPHighAPI
20  * \brief Interface for Constraint feature
21  */
22 class SketchAPI_Constraint : public ModelHighAPI_Interface
23 {
24 public:
25   /// Constructor without values
26   SKETCHAPI_EXPORT
27   explicit SketchAPI_Constraint(const std::shared_ptr<ModelAPI_Feature> & theFeature);
28
29   /// Destructor
30   SKETCHAPI_EXPORT
31   virtual ~SketchAPI_Constraint();
32
33   static std::string ID()
34   {
35     static const std::string DUMMY;
36     return DUMMY;
37   }
38   virtual std::string getID() { return ID(); }
39
40   SKETCHAPI_EXPORT
41   bool initialize();
42
43   /// Dump wrapped feature
44   SKETCHAPI_EXPORT
45   virtual void dump(ModelHighAPI_Dumper& theDumper) const;
46 };
47
48 #endif