+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Name : ModelHighAPI_Selection.h
-// Purpose:
+// Purpose:
//
// History:
// 06/06/16 - Sergey POKHODENKO - Creation of the file
class ModelAPI_AttributeSelectionList;
class ModelAPI_Result;
//--------------------------------------------------------------------------------------
-typedef std::pair<std::shared_ptr<ModelAPI_Result>, std::shared_ptr<GeomAPI_Shape> > ResultSubShapePair;
+typedef std::pair<std::shared_ptr<ModelAPI_Result>, std::shared_ptr<GeomAPI_Shape> >
+ ResultSubShapePair;
typedef std::pair<std::string, std::string> TypeSubShapeNamePair;
//--------------------------------------------------------------------------------------
/**\class ModelHighAPI_Selection
/// Constructor for result and sub-shape
MODELHIGHAPI_EXPORT
ModelHighAPI_Selection(const std::shared_ptr<ModelAPI_Result>& theContext,
- const std::shared_ptr<GeomAPI_Shape>& theSubShape = std::shared_ptr<GeomAPI_Shape>());
+ const std::shared_ptr<GeomAPI_Shape>& theSubShape =
+ std::shared_ptr<GeomAPI_Shape>());
/// Constructor for sub-shape by the textual Name
MODELHIGHAPI_EXPORT
ModelHighAPI_Selection(const std::string& theType,
virtual ~ModelHighAPI_Selection();
/// Fill attribute values
- MODELHIGHAPI_EXPORT
- virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute) const;
+ MODELHIGHAPI_EXPORT virtual
+ void fillAttribute(const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute) const;
/// Append to list attribute
- MODELHIGHAPI_EXPORT
- virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute) const;
+ MODELHIGHAPI_EXPORT virtual
+ void appendToList(const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute) const;
/// \return variant type.
MODELHIGHAPI_EXPORT
MODELHIGHAPI_EXPORT
void setColor(int theRed, int theGreen, int theBlue);
+ /// Change result's deflection
+ MODELHIGHAPI_EXPORT
+ void setDeflection(double theValue);
+
private:
VariantType myVariantType;
ResultSubShapePair myResultSubShapePair;