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 //--------------------------------------------------------------------------------------
38 class ModelHighAPI_Double;
39 class ModelHighAPI_Integer;
40 class ModelHighAPI_Selection;
41 //--------------------------------------------------------------------------------------
43 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
44 const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute);
47 void fillAttribute(const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
48 double theX, double theY);
51 void fillAttribute(const std::shared_ptr<GeomAPI_Dir> & theValue,
52 const std::shared_ptr<GeomDataAPI_Dir> & theAttribute);
55 void fillAttribute(const std::shared_ptr<GeomAPI_Pnt> & theValue,
56 const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
58 //--------------------------------------------------------------------------------------
60 void fillAttribute(bool theValue,
61 const std::shared_ptr<ModelAPI_AttributeBoolean> & theAttribute);
64 void fillAttribute(const ModelHighAPI_Double & theValue,
65 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
68 void fillAttribute(const ModelHighAPI_Integer & theValue,
69 const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
72 void fillAttribute(const ModelHighAPI_Selection & theValue,
73 const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
76 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
77 const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
80 void fillAttribute(const std::string & theValue,
81 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
83 //--------------------------------------------------------------------------------------
84 //--------------------------------------------------------------------------------------
85 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_ */