1 // Name : ModelHighAPI_Tools.h
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
16 //--------------------------------------------------------------------------------------
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 class ModelAPI_Object;
38 //--------------------------------------------------------------------------------------
39 class ModelHighAPI_Double;
40 class ModelHighAPI_Integer;
41 class ModelHighAPI_RefAttr;
42 class ModelHighAPI_Selection;
43 //--------------------------------------------------------------------------------------
45 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
46 const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute);
49 void fillAttribute(const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
50 double theX, double theY);
53 void fillAttribute(const std::shared_ptr<GeomAPI_Dir> & theValue,
54 const std::shared_ptr<GeomDataAPI_Dir> & theAttribute);
57 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt> & theValue,
58 const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
60 //--------------------------------------------------------------------------------------
62 void fillAttribute(bool theValue,
63 const std::shared_ptr<ModelAPI_AttributeBoolean> & theAttribute);
66 void fillAttribute(const ModelHighAPI_Double & theValue,
67 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
70 void fillAttribute(double theValue,
71 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
74 void fillAttribute(const ModelHighAPI_Integer & theValue,
75 const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
78 void fillAttribute(const ModelHighAPI_RefAttr & theValue,
79 const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute);
82 void fillAttribute(const std::list<ModelHighAPI_RefAttr> & theValue,
83 const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute);
86 void fillAttribute(const std::shared_ptr<ModelAPI_Object> & theValue,
87 const std::shared_ptr<ModelAPI_AttributeReference> & theAttribute);
90 void fillAttribute(const std::list<std::shared_ptr<ModelAPI_Object> > & theValue,
91 const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute);
94 void fillAttribute(const ModelHighAPI_Selection & theValue,
95 const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
98 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
99 const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
102 void fillAttribute(const std::string & theValue,
103 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
105 void fillAttribute(const char * theValue,
106 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
108 //--------------------------------------------------------------------------------------
109 //--------------------------------------------------------------------------------------
110 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_ */