theDumper << "model.selection()"; // mySelectionAttr;
}
else if (mySelection.variantType() == ModelHighAPI_Selection::VT_Empty) {
- if (myDouble.value() > -100000000000 ){
+ if (myDouble.value() > -100000000000 ) {
theDumper << myDouble.value();
}
- else if (myValue.empty()){
+ else if (myValue.empty()) {
theDumper << myBoolean;
}
else{
else if (anIt->dble().value() > -100000000000) {
theDoubleArgs.push_back(anIt->dble());
}
- else if (anIt->string().empty()){
+ else if (anIt->string().empty()) {
theBoolArgs.push_back(anIt->boolean());
}
else
if (aBoolean) {
if (aBools.size() == 1)
fillAttribute(aBools.front(), aBoolean);
- }else {
+ } else {
AttributeDoublePtr aDouble =
std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(*aFIt);
if (aDouble) {
return false;
double aValMax = aValue->value();
- if (aVal < 0.0)
+ if (aVal < 0.0)
return false;
double aTolerance = 0.0001;
double aSurfArea;
double aVolume;
std::string aError;
- if( !GetBasicProperties(theShape,
+ if (!GetBasicProperties(theShape,
aTolerance,
aLength,
aSurfArea,
aVolume,
- aError) )
+ aError))
return false;
anAttr = theArgs.argument("comparatorType");
anEdge->middlePoint(),
theAngle,
anError)) {
- if( anError.empty())
+ if (anError.empty())
theCache.insert(anEdge);
}
}
{
AttributePtr anAttr = theArgs.argument("value");
AttributeDoublePtr aValue = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(anAttr);
- if (!aValue.get()|| !anAttr->isInitialized() )
+ if (!aValue.get()|| !anAttr->isInitialized())
return false;
double aVal = aValue->value();
anAttr = theArgs.argument("valueMax");
aValue = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(anAttr);
- if (!aValue.get()|| !anAttr->isInitialized() )
+ if (!aValue.get()|| !anAttr->isInitialized())
return false;
double aValMax = aValue->value();
double aSurfArea;
double aVolume;
std::string aError;
- if( !GetBasicProperties(theShape,
+ if (!GetBasicProperties(theShape,
aTolerance,
aLength,
aSurfArea,
aVolume,
- aError) )
+ aError))
return false;
anAttr = theArgs.argument("comparatorType");
Events_InfoMessage& theError) const
{
double aMinValue = 1.e-12;
- if(theArguments.size() == 1) {
+ if (theArguments.size() == 1) {
std::list<std::string>::const_iterator anIt = theArguments.begin();
double aValue = Config_PropManager::stringToDouble((*anIt).c_str());
- if(aValue != 0) {
+ if (aValue != 0) {
// very probably ok
aMinValue = aValue;
}