return defaultValue;\r
}\r
\r
+bool BlockParameter::getBooleanValue(bool* ok) {\r
+ if (type == Boolean) {\r
+ *ok = true;\r
+ return getValue().toBool();\r
+ }\r
+ *ok = false;\r
+ return false;\r
+}\r
+\r
+int BlockParameter::getIntValue(bool* ok) {\r
+ if ((type == Natural) || (type == Positive) || (type == Integer)) {\r
+ *ok = true;\r
+ return getValue().toInt();\r
+ }\r
+ *ok = false;\r
+ return 0;\r
+}\r
+\r
+double BlockParameter::getDoubleValue(bool* ok) {\r
+ if ((type == Real) || (type == Natural) || (type == Positive) || (type == Integer)) {\r
+ *ok = true;\r
+ return getValue().toDouble();\r
+ }\r
+ *ok = false;\r
+ return 0.0;\r
+}\r
+\r
+QString BlockParameter::getStringValue() {\r
+ return getValue().toString();\r
+}\r
+\r
bool BlockParameter::isUserParameter() {\r
return false;\r
\r