From 1c1dd53d60659b8adb1d17be34365e8f11b4c20f Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Mon, 17 Oct 2011 14:53:41 +0200 Subject: [PATCH] ENH: add new value mode: AutomaticValue --- Code/ApplicationEngine/otbWrapperParameter.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Code/ApplicationEngine/otbWrapperParameter.h b/Code/ApplicationEngine/otbWrapperParameter.h index 58605ad0da..73a85a8139 100644 --- a/Code/ApplicationEngine/otbWrapperParameter.h +++ b/Code/ApplicationEngine/otbWrapperParameter.h @@ -105,6 +105,15 @@ public: /** Toogle the parameter mandatory flag */ itkBooleanMacro(Mandatory); + /** Set the parameter mandatory flag */ + itkSetMacro(AutomaticValue, bool); + + /** Get the parameter mandatory flag */ + itkGetConstMacro(AutomaticValue, bool); + + /** Toogle the parameter mandatory flag */ + itkBooleanMacro(AutomaticValue); + /** Set the default value mode */ itkSetEnumMacro(DefaultValueMode, DefaultValueMode); @@ -201,6 +210,7 @@ protected: m_UserValue(false), m_DefaultValueMode(DefaultValueMode_UNKNOWN), m_UserLevel(UserLevel_Basic), + m_AutomaticValue(false), m_IsChecked(false) {} @@ -226,6 +236,9 @@ protected: /** True if the value is set in user mode */ bool m_UserValue; + /** True if the application change the value of this parameter */ + bool m_AutomaticValue; + /** Default value behaviour */ DefaultValueMode m_DefaultValueMode; -- GitLab