20 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
21 #define SRC_MODELHIGHAPI_MODELHIGHAPI_TOOLS_H_
24 #include "ModelHighAPI.h"
25 #include <ModelAPI_AttributeTables.h>
27 #include <GeomAPI_Shape.h>
64 void fillAttribute(
const std::shared_ptr<GeomAPI_Pnt2d> & theValue,
65 const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute);
68 void fillAttribute(
const std::shared_ptr<GeomDataAPI_Point2D> & theAttribute,
69 double theX,
double theY);
72 void fillAttribute(
const std::shared_ptr<GeomAPI_Dir> & theValue,
73 const std::shared_ptr<GeomDataAPI_Dir> & theAttribute);
76 void fillAttribute(
const std::shared_ptr<GeomAPI_Pnt> & theValue,
77 const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
82 const std::shared_ptr<ModelAPI_AttributeBoolean> & theAttribute);
86 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
90 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute);
94 const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
98 const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute);
102 const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute);
105 void fillAttribute(
const std::list<ModelHighAPI_RefAttr> & theValue,
106 const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute);
110 const std::shared_ptr<ModelAPI_AttributeReference> & theAttribute);
113 void fillAttribute(
const std::list<ModelHighAPI_Reference> & theValue,
114 const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute);
117 void fillAttribute(
const std::shared_ptr<ModelAPI_Object> & theValue,
118 const std::shared_ptr<ModelAPI_AttributeReference> & theAttribute);
121 void fillAttribute(
const std::list<std::shared_ptr<ModelAPI_Object> > & theValue,
122 const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute);
125 void fillAttribute(
const std::list<ModelHighAPI_Selection> & theValue,
126 const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute);
130 const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute);
133 void fillAttribute(
const std::list<ModelHighAPI_Selection> & theValue,
134 const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute);
138 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
142 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
146 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute);
150 const std::shared_ptr<ModelAPI_AttributeStringArray> & theAttribute);
153 void fillAttribute(
const std::list<ModelHighAPI_Integer> & theValue,
154 const std::shared_ptr<ModelAPI_AttributeIntArray> & theAttribute);
157 void fillAttribute(
const std::list<ModelHighAPI_Double> & theValue,
158 const std::shared_ptr<ModelAPI_AttributeDoubleArray> & theAttribute);
161 void fillAttribute(
const std::list<std::shared_ptr<GeomAPI_Pnt2d> > & theValue,
162 const std::shared_ptr<GeomDataAPI_Point2DArray> & theAttribute);
168 const std::shared_ptr<GeomDataAPI_Point> & theAttribute);
188 CHECK_GEOMETRICAL = 2,
189 CHECK_NAMING_AND_GEOMETRICAL = 3,
197 bool checkPyDump(
const std::string& theFilenameNaming,
198 const std::string& theFilenameGeo,
199 const std::string& theFilenameWeak,
200 const checkDumpType theCheckType = CHECK_NAMING_AND_GEOMETRICAL);
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
ShapeType
Shape type enum.
Definition: GeomAPI_Shape.h:46
Attribute that contains 3D direction coordinates.
Definition: GeomDataAPI_Dir.h:35
Attribute that contains array of 2D point coordinates.
Definition: GeomDataAPI_Point2DArray.h:34
Attribute that contains 2D point coordinates.
Definition: GeomDataAPI_Point2D.h:37
Attribute that contains 3D point coordinates.
Definition: GeomDataAPI_Point.h:36
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
API for the attribute that contains several double in the array inside.
Definition: ModelAPI_AttributeDoubleArray.h:32
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
API for the attribute that contains several integers in the array inside.
Definition: ModelAPI_AttributeIntArray.h:36
API for the attribute that contains integer (int).
Definition: ModelAPI_AttributeInteger.h:34
Attribute that contains list of references to features (located in the same document) or references t...
Definition: ModelAPI_AttributeRefAttrList.h:34
Attribute that contains reference to an attribute of a feature or reference to a feature (switchable)
Definition: ModelAPI_AttributeRefAttr.h:33
Attribute that contains list of references to features (located in the same document).
Definition: ModelAPI_AttributeRefList.h:33
Attribute that contains reference to feature (located in the same document).
Definition: ModelAPI_AttributeReference.h:32
Attribute that contains list of references to the sub-shapes with possibility to manage them.
Definition: ModelAPI_AttributeSelectionList.h:37
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
API for the attribute that contains several strings in the array inside.
Definition: ModelAPI_AttributeStringArray.h:32
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
ValueType
Type of the value in the table.
Definition: ModelAPI_AttributeTables.h:42
Represents any object in the data model and in the object browser.
Definition: ModelAPI_Object.h:45
Class for filling ModelAPI_AttributeDouble.
Definition: ModelHighAPI_Double.h:37
Class for filling ModelAPI_AttributeInteger.
Definition: ModelHighAPI_Integer.h:36
Class for filling ModelAPI_AttributeRefAttr.
Definition: ModelHighAPI_RefAttr.h:41
Class for filling ModelAPI_AttributeReference.
Definition: ModelHighAPI_Reference.h:41
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
virtual void fillAttribute(const std::shared_ptr< ModelAPI_AttributeSelection > &theAttribute) const
Fill attribute values.
Definition: ModelHighAPI_Selection.cpp:87