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

ENH: add the concept of Role for parameters (input/output)

parent 13bed5d4
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,12 @@ public: ...@@ -126,6 +126,12 @@ public:
/** Get the user access level */ /** Get the user access level */
itkGetEnumMacro(UserLevel, UserLevel); itkGetEnumMacro(UserLevel, UserLevel);
/** Set the parameter io type*/
itkSetEnumMacro(Role, Role);
/** Get the user access level */
itkGetEnumMacro(Role, Role);
/** Reset to the the default value. Default implementation does /** Reset to the the default value. Default implementation does
* nothing * nothing
*/ */
...@@ -210,6 +216,7 @@ protected: ...@@ -210,6 +216,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_Role(Role_Input),
m_AutomaticValue(false), m_AutomaticValue(false),
m_IsChecked(false) m_IsChecked(false)
{} {}
...@@ -244,6 +251,9 @@ protected: ...@@ -244,6 +251,9 @@ protected:
UserLevel m_UserLevel; UserLevel m_UserLevel;
/** Default iotype mode */
Role m_Role;
/** List of parents Parameters */ /** List of parents Parameters */
Parameter::Pointer m_Root; Parameter::Pointer m_Root;
......
...@@ -69,6 +69,13 @@ typedef enum ...@@ -69,6 +69,13 @@ typedef enum
ImagePixelType_double, ImagePixelType_double,
} ImagePixelType; } ImagePixelType;
typedef enum
{
Role_Input,
Role_Output
} Role;
typedef otb::Image<char> Int8ImageType; typedef otb::Image<char> Int8ImageType;
typedef otb::Image<unsigned char> UInt8ImageType; typedef otb::Image<unsigned char> UInt8ImageType;
typedef otb::Image<short> Int16ImageType; typedef otb::Image<short> Int16ImageType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment