Salome HOME
Add SketchAPI and Line feature. Also fix tests.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.h
1 // Name   : ModelHighAPI_Tools.h
2 // Purpose: 
3 //
4 // History:
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
6
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
9
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
12
13 #include <list>
14 #include <memory>
15 #include <string>
16 //--------------------------------------------------------------------------------------
17 class GeomAPI_Dir;
18 class GeomAPI_Pnt;
19 class GeomAPI_Pnt2d;
20 //--------------------------------------------------------------------------------------
21 class GeomDataAPI_Dir;
22 class GeomDataAPI_Point;
23 class GeomDataAPI_Point2D;
24 //--------------------------------------------------------------------------------------
25 class ModelAPI_AttributeBoolean;
26 class ModelAPI_AttributeDocRef;
27 class ModelAPI_AttributeDouble;
28 class ModelAPI_AttributeIntArray;
29 class ModelAPI_AttributeInteger;
30 class ModelAPI_AttributeRefAttr;
31 class ModelAPI_AttributeRefAttrList;
32 class ModelAPI_AttributeReference;
33 class ModelAPI_AttributeRefList;
34 class ModelAPI_AttributeSelection;
35 class ModelAPI_AttributeSelectionList;
36 class ModelAPI_AttributeString;
37 //--------------------------------------------------------------------------------------
38 class ModelHighAPI_Double;
39 class ModelHighAPI_Selection;
40 //--------------------------------------------------------------------------------------
41 MODELHIGHAPI_EXPORT
42 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
43                    const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute);
44
45 MODELHIGHAPI_EXPORT
46 void fillAttribute(const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
47                    double theX, double theY);
48
49 MODELHIGHAPI_EXPORT
50 void fillAttribute(const std::shared_ptr<GeomAPI_Dir> & theValue,
51                    const std::shared_ptr<GeomDataAPI_Dir> & theAttribute);
52
53 MODELHIGHAPI_EXPORT
54 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt> & theValue,
55                    const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
56
57 //--------------------------------------------------------------------------------------
58 MODELHIGHAPI_EXPORT
59 void fillAttribute(bool theValue,
60                    const std::shared_ptr<ModelAPI_AttributeBoolean> & theAttribute);
61
62 MODELHIGHAPI_EXPORT
63 void fillAttribute(const ModelHighAPI_Double & theValue,
64                    const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
65
66 MODELHIGHAPI_EXPORT
67 void fillAttribute(const ModelHighAPI_Selection & theValue,
68                    const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
69
70 MODELHIGHAPI_EXPORT
71 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
72                    const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
73
74 MODELHIGHAPI_EXPORT
75 void fillAttribute(const std::string & theValue,
76                    const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
77
78 //--------------------------------------------------------------------------------------
79 //--------------------------------------------------------------------------------------
80 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_ */