// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Name : ModelHighAPI_Selection.cpp
-// Purpose:
+// Purpose:
//
// History:
// 06/06/16 - Sergey POKHODENKO - Creation of the file
{
switch(myVariantType) {
case VT_Empty: return;
- case VT_ResultSubShapePair:
- theAttribute->setValue(myResultSubShapePair.first, myResultSubShapePair.second);
+ case VT_ResultSubShapePair:
+ theAttribute->setValue(myResultSubShapePair.first, myResultSubShapePair.second);
return;
- case VT_TypeSubShapeNamePair:
+ case VT_TypeSubShapeNamePair:
theAttribute->selectSubShape(myTypeSubShapeNamePair.first, myTypeSubShapeNamePair.second);
return;
}
{
switch(myVariantType) {
case VT_Empty: return;
- case VT_ResultSubShapePair:
- theAttribute->append(myResultSubShapePair.first, myResultSubShapePair.second);
+ case VT_ResultSubShapePair:
+ theAttribute->append(myResultSubShapePair.first, myResultSubShapePair.second);
return;
case VT_TypeSubShapeNamePair:
// Note: the reverse order (first - type, second - sub-shape name)
std::string ModelHighAPI_Selection::shapeType() const
{
switch(myVariantType) {
- case VT_ResultSubShapePair:
- return myResultSubShapePair.second.get() ? myResultSubShapePair.second->shapeTypeStr() :
+ case VT_ResultSubShapePair:
+ return myResultSubShapePair.second.get() ? myResultSubShapePair.second->shapeTypeStr() :
myResultSubShapePair.first->shape()->shapeTypeStr();
case VT_TypeSubShapeNamePair: return myTypeSubShapeNamePair.first;
}
if (myVariantType != VT_ResultSubShapePair)
return;
- AttributeDoublePtr aDeflectionAttr =
+ AttributeDoublePtr aDeflectionAttr =
myResultSubShapePair.first->data()->real(ModelAPI_Result::DEFLECTION_ID());
aDeflectionAttr->setValue(theValue);