Skip to content
Snippets Groups Projects
Commit 1c1dd53d authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: add new value mode: AutomaticValue

parent dd84cd6d
Branches
Tags
No related merge requests found
...@@ -105,6 +105,15 @@ public: ...@@ -105,6 +105,15 @@ public:
/** Toogle the parameter mandatory flag */ /** Toogle the parameter mandatory flag */
itkBooleanMacro(Mandatory); 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 */ /** Set the default value mode */
itkSetEnumMacro(DefaultValueMode, DefaultValueMode); itkSetEnumMacro(DefaultValueMode, DefaultValueMode);
...@@ -201,6 +210,7 @@ protected: ...@@ -201,6 +210,7 @@ protected:
m_UserValue(false), m_UserValue(false),
m_DefaultValueMode(DefaultValueMode_UNKNOWN), m_DefaultValueMode(DefaultValueMode_UNKNOWN),
m_UserLevel(UserLevel_Basic), m_UserLevel(UserLevel_Basic),
m_AutomaticValue(false),
m_IsChecked(false) m_IsChecked(false)
{} {}
...@@ -226,6 +236,9 @@ protected: ...@@ -226,6 +236,9 @@ protected:
/** True if the value is set in user mode */ /** True if the value is set in user mode */
bool m_UserValue; bool m_UserValue;
/** True if the application change the value of this parameter */
bool m_AutomaticValue;
/** Default value behaviour */ /** Default value behaviour */
DefaultValueMode m_DefaultValueMode; DefaultValueMode m_DefaultValueMode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment