Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright message
[modules/shaper.git]
/
src
/
FiltersAPI
/
FiltersAPI_Filter.cpp
diff --git
a/src/FiltersAPI/FiltersAPI_Filter.cpp
b/src/FiltersAPI/FiltersAPI_Filter.cpp
index 577e428bc81bca3d78f1d29a5be06396bcdb75be..f3ae4da946e730e4ca15ebdf0a16087f76f49168 100644
(file)
--- a/
src/FiltersAPI/FiltersAPI_Filter.cpp
+++ b/
src/FiltersAPI/FiltersAPI_Filter.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
19 CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-21,6
+21,7
@@
#include <ModelAPI_Attribute.h>
#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_AttributeBoolean.h>
+#include <ModelAPI_AttributeDouble.h>
#include <ModelAPI_AttributeSelectionList.h>
#include <ModelAPI_AttributeString.h>
#include <ModelAPI_AttributeSelectionList.h>
#include <ModelAPI_AttributeString.h>
@@
-72,6
+73,12
@@
FiltersAPI_Filter::FiltersAPI_Filter(const std::string& theName,
continue;
}
continue;
}
+ AttributeDoublePtr aDouble = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(*anArgIt);
+ if (aDouble) {
+ myFilterArguments.push_back(FiltersAPI_Argument(aDouble->value()));
+ continue;
+ }
+
AttributeBooleanPtr aBoolean = std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(*anArgIt);
if (aBoolean) {
myFilterArguments.push_back(FiltersAPI_Argument(aBoolean->value()));
AttributeBooleanPtr aBoolean = std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(*anArgIt);
if (aBoolean) {
myFilterArguments.push_back(FiltersAPI_Argument(aBoolean->value()));