typedef std::map<std::string, GeomValidators_ShapeType::TypeOfShape> EdgeTypes;
static EdgeTypes MyShapeTypes;
-GeomValidators_ShapeType::TypeOfShape
+GeomValidators_ShapeType::TypeOfShape
GeomValidators_ShapeType::shapeType(const std::string& theType)
{
if (MyShapeTypes.size() == 0) {
std::string aValue = "";
if (MyShapeTypes.size() != 0) {
- std::map<std::string, GeomValidators_ShapeType::TypeOfShape>::const_iterator
+ std::map<std::string, GeomValidators_ShapeType::TypeOfShape>::const_iterator
anIt = MyShapeTypes.begin(), aLast = MyShapeTypes.end();
for (; anIt != aLast; anIt++) {
if (anIt->second == theType)
std::string anAttributeType = theAttribute->attributeType();
if (anAttributeType == ModelAPI_AttributeSelection::typeId()) {
- AttributeSelectionPtr anAttr =
+ AttributeSelectionPtr anAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
GeomShapePtr aShape = anAttr->value();
if (aShape.get())
ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(theObject);
if( theShapeType==Plane )
{
- ResultConstructionPtr aResultConstruction =
+ ResultConstructionPtr aResultConstruction =
std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(theObject);
FeaturePtr aFeature = ModelAPI_Feature::feature(theObject);
const std::string& aKind = aFeature->getKind();