+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
// File: Model_ResultValidators.cpp
// Created: 23 July 2014
// Author: Vitaly SMETANNIKOV
ResultPtr result(const ObjectPtr theObject)
{
- return boost::dynamic_pointer_cast<ModelAPI_Result>(theObject);
+ return std::dynamic_pointer_cast<ModelAPI_Result>(theObject);
}
bool SketchPlugin_ResultPointValidator::isValid(const ObjectPtr theObject) const
ResultPtr aResult = result(theObject);
if (!aResult)
return false;
- boost::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
+ std::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
return aShape && aShape->isVertex();
}
ResultPtr aResult = result(theObject);
if (!aResult)
return false;
- boost::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
+ std::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
return aShape && aShape->isEdge() && GeomAPI_Curve(aShape).isLine();
}
ResultPtr aResult = result(theObject);
if (!aResult)
return false;
- boost::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
+ std::shared_ptr<GeomAPI_Shape> aShape = ModelAPI_Tools::shape(aResult);
return aShape && aShape->isEdge() && GeomAPI_Curve(aShape).isCircle();
}
-