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 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
17 #include <boost/variant.hpp>
18 //--------------------------------------------------------------------------------------
20 class ModelAPI_AttributeSelection;
21 class ModelAPI_AttributeSelectionList;
22 class ModelAPI_Result;
23 //--------------------------------------------------------------------------------------
24 typedef std::pair<std::shared_ptr<ModelAPI_Result>, std::shared_ptr<GeomAPI_Shape> > ResultSubShapePair;
25 typedef std::pair<std::string, std::string> TypeSubShapeNamePair;
26 //--------------------------------------------------------------------------------------
27 /**\class ModelHighAPI_Selection
29 * \brief Class for filling ModelAPI_AttributeSelection
31 class ModelHighAPI_Selection
34 /// Constructor for result and sub-shape
36 ModelHighAPI_Selection(const std::shared_ptr<ModelAPI_Result>& theContext = std::shared_ptr<ModelAPI_Result>(),
37 const std::shared_ptr<GeomAPI_Shape>& theSubShape = std::shared_ptr<GeomAPI_Shape>());
38 /// Constructor for sub-shape by the textual Name
40 ModelHighAPI_Selection(const std::string& theType,
41 const std::string& theSubShapeName);
44 virtual ~ModelHighAPI_Selection();
46 /// Fill attribute values
48 virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute) const;
50 /// Append to list attribute
52 virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute) const;
55 boost::variant<ResultSubShapePair, TypeSubShapeNamePair> myValue;
58 //--------------------------------------------------------------------------------------
59 //--------------------------------------------------------------------------------------
60 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_ */