Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
33147549
Commit
33147549
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add missing methods and enums to be wrapped via SWIG
parent
a52c997a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Wrappers/SWIG/otbApplication.i
+36
-2
36 additions, 2 deletions
Code/Wrappers/SWIG/otbApplication.i
with
36 additions
and
2 deletions
Code/Wrappers/SWIG/otbApplication.i
+
36
−
2
View file @
33147549
...
...
@@ -57,13 +57,14 @@ namespace Wrapper
ParameterType_Choice,
ParameterType_InputImage,
ParameterType_InputImageList,
ParameterType_ComplexInputImage,
ParameterType_InputVectorData,
ParameterType_OutputImage,
ParameterType_OutputVectorData,
ParameterType_Radius,
ParameterType_Group,
ParameterType_ListView,
ParameterType_ComplexInputImage,
ParameterType_ComplexOutputImage
} ParameterType;
typedef enum
...
...
@@ -83,6 +84,18 @@ namespace Wrapper
ImagePixelType_float,
ImagePixelType_double,
} ImagePixelType;
typedef enum
{
Role_Input,
Role_Output
} Role;
typedef enum
{
ComplexImagePixelType_float,
ComplexImagePixelType_double,
} ComplexImagePixelType;
}
}
...
...
@@ -110,11 +123,13 @@ public:
void DisableParameter(std::string paramKey);
bool IsParameterEnabled(std::string paramKey) const;
bool IsMandatory(std::string paramKey) const;
bool HasAutomaticValue(std::string paramKey) const;
bool HasUserValue(std::string paramKey) const;
void ClearValue(std::string paramKey);
bool HasValue(std::string paramKey) const;
otb::Wrapper::UserLevel GetParameterUserLevel(std::string paramKey) const;
otb::Wrapper::ParameterType GetParameterType(std::string paramKey) const;
otb::Wrapper::Role GetParameterRole(std::string paramKey) const;
std::vector<std::string> GetChoiceKeys(std::string choiceKey);
std::vector<std::string> GetChoiceNames(std::string choiceKey);
...
...
@@ -126,18 +141,37 @@ public:
void SetParameterString(std::string parameter, std::string value);
void SetParameterStringList(std::string parameter, std::vector<std::string> value);
void SetParameterOutputImagePixelType(std::string parameter, otb::Wrapper::ImagePixelType pixelType);
void SetParameterComplexOutputImagePixelType(std::string parameter, otb::Wrapper::ComplexImagePixelType cpixelType);
otb::Wrapper::ImagePixelType GetParameterOutputImagePixelType(std::string parameter);
otb::Wrapper::ComplexImagePixelType GetParameterComplexOutputImagePixelType(std::string parameter);
int GetParameterInt(std::string parameter);
float GetParameterFloat(std::string parameter);
std::string GetParameterString(std::string parameter);
std::vector<std::string> GetParameterStringList(std::string parameter);
std::string GetParameterAsString(std::string paramKey);
itkProcessObject* GetProgressSource() const;
std::string GetProgressDescription() const;
itkSetStringMacro(DocName);
itkGetStringMacro(DocName);
itkSetStringMacro(DocLongDescription);
itkGetStringMacro(DocLongDescription);
itkSetStringMacro(DocCLExample);
itkGetStringMacro(DocCLExample);
itkSetStringMacro(DocAuthors);
itkGetStringMacro(DocAuthors);
itkSetStringMacro(DocLimitations);
itkGetStringMacro(DocLimitations);
itkSetStringMacro(DocSeeAlso);
itkGetStringMacro(DocSeeAlso);
void SetDocTags( std::vector<std::string> val );
void AddDocTag( const std::string & tag );
protected:
Application();
//virtual ~Application();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment