Salome HOME
ae35740a39108c8779212149c42c2b2780cc08e5
[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_Integer;
40 class ModelHighAPI_RefAttr;
41 class ModelHighAPI_Selection;
42 //--------------------------------------------------------------------------------------
43 MODELHIGHAPI_EXPORT
44 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
45                    const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute);
46
47 MODELHIGHAPI_EXPORT
48 void fillAttribute(const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
49                    double theX, double theY);
50
51 MODELHIGHAPI_EXPORT
52 void fillAttribute(const std::shared_ptr<GeomAPI_Dir> & theValue,
53                    const std::shared_ptr<GeomDataAPI_Dir> & theAttribute);
54
55 MODELHIGHAPI_EXPORT
56 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt> & theValue,
57                    const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
58
59 //--------------------------------------------------------------------------------------
60 MODELHIGHAPI_EXPORT
61 void fillAttribute(bool theValue,
62                    const std::shared_ptr<ModelAPI_AttributeBoolean> & theAttribute);
63
64 MODELHIGHAPI_EXPORT
65 void fillAttribute(const ModelHighAPI_Double & theValue,
66                    const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
67
68 MODELHIGHAPI_EXPORT
69 void fillAttribute(double theValue,
70                    const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
71
72 MODELHIGHAPI_EXPORT
73 void fillAttribute(const ModelHighAPI_Integer & theValue,
74                    const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
75
76 MODELHIGHAPI_EXPORT
77 void fillAttribute(const ModelHighAPI_RefAttr & theValue,
78                    const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute);
79
80 MODELHIGHAPI_EXPORT
81 void fillAttribute(const std::list<ModelHighAPI_RefAttr> & theValue,
82                    const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute);
83
84 MODELHIGHAPI_EXPORT
85 void fillAttribute(const ModelHighAPI_Selection & theValue,
86                    const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
87
88 MODELHIGHAPI_EXPORT
89 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
90                    const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
91
92 MODELHIGHAPI_EXPORT
93 void fillAttribute(const std::string & theValue,
94                    const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
95 MODELHIGHAPI_EXPORT
96 void fillAttribute(const char * theValue,
97                    const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
98
99 //--------------------------------------------------------------------------------------
100 //--------------------------------------------------------------------------------------
101 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_ */