1 // Name : ModelHighAPI_Selection.h
5 // 06/06/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_
10 //--------------------------------------------------------------------------------------
15 #include <boost/variant.hpp>
16 //--------------------------------------------------------------------------------------
18 class ModelAPI_AttributeSelection;
19 class ModelAPI_Result;
20 //--------------------------------------------------------------------------------------
21 typedef std::pair<std::shared_ptr<ModelAPI_Result>, std::shared_ptr<GeomAPI_Shape> > ResultSubShapePair;
22 typedef std::pair<std::string, std::string> TypeSubShapeNamePair;
23 //--------------------------------------------------------------------------------------
24 /**\class ModelHighAPI_Selection
26 * \brief Class for filling ModelAPI_AttributeSelection
28 class ModelHighAPI_Selection
31 /// Constructor for result and sub-shape
32 ModelHighAPI_Selection(const std::shared_ptr<ModelAPI_Result>& theContext = std::shared_ptr<ModelAPI_Result>(),
33 const std::shared_ptr<GeomAPI_Shape>& theSubShape = std::shared_ptr<GeomAPI_Shape>());
34 /// Constructor for sub-shape by the textual Name
35 ModelHighAPI_Selection(const std::string& theType,
36 const std::string& theSubShapeName);
38 virtual ~ModelHighAPI_Selection();
40 /// Fill attribute values
41 virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute) const;
44 boost::variant<ResultSubShapePair, TypeSubShapeNamePair> myValue;
47 //--------------------------------------------------------------------------------------
48 //--------------------------------------------------------------------------------------
49 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_ */