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
7f5cb7ff
Commit
7f5cb7ff
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add test application
parent
8d76e711
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Example/CMakeLists.txt
+2
-1
2 additions, 1 deletion
Example/CMakeLists.txt
Example/otbTestApplication.cxx
+85
-0
85 additions, 0 deletions
Example/otbTestApplication.cxx
with
87 additions
and
1 deletion
Example/CMakeLists.txt
+
2
−
1
View file @
7f5cb7ff
include
(
WrapperMacros
)
OTB_CREATE_APPLICATION
(
NAME Addition SOURCES otbAddition.cxx
)
OTB_CREATE_APPLICATION
(
NAME Smoothing SOURCES otbSmoothing.cxx
)
\ No newline at end of file
OTB_CREATE_APPLICATION
(
NAME Smoothing SOURCES otbSmoothing.cxx
)
OTB_CREATE_APPLICATION
(
NAME TestApplication SOURCES otbTestApplication.cxx
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Example/otbTestApplication.cxx
0 → 100644
+
85
−
0
View file @
7f5cb7ff
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include
"otbWrapperApplication.h"
#include
"otbWrapperApplicationFactory.h"
namespace
otb
{
namespace
Wrapper
{
class
TestApplication
:
public
Application
{
public:
/** Standard class typedefs. */
typedef
TestApplication
Self
;
typedef
Application
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Standard macro */
itkNewMacro
(
Self
);
itkTypeMacro
(
TestApplication
,
otb
::
Application
);
private:
TestApplication
()
{
SetName
(
"TestApplication"
);
SetDescription
(
"This application demonstrate the use of all parameters types"
);
std
::
cout
<<
">>>>>>>>>>>>>> TestApplication"
<<
std
::
endl
;
}
virtual
~
TestApplication
()
{
std
::
cout
<<
">>>>>>>>>>>>>> ~TestApplication"
<<
std
::
endl
;
}
void
DoCreateParameters
()
{
std
::
cout
<<
"TestApplication::DoCreateParameters"
<<
std
::
endl
;
AddParameter
(
ParameterType_Empty
,
"boolean"
,
"Boolean"
);
AddParameter
(
ParameterType_Int
,
"int"
,
"Integer"
);
AddParameter
(
ParameterType_Float
,
"float"
,
"Float"
);
AddParameter
(
ParameterType_String
,
"string"
,
"String"
);
AddParameter
(
ParameterType_Filename
,
"filename"
,
"File name"
);
AddParameter
(
ParameterType_Directory
,
"directory"
,
"Directory name"
);
AddParameter
(
ParameterType_InputImage
,
"inputimage"
,
"Input Image"
);
AddParameter
(
ParameterType_InputComplexImage
,
"inputcompleximage"
,
"Input Complex Image"
);
AddParameter
(
ParameterType_InputVectorData
,
"inputvectordata"
,
"Input Vector Data"
);
AddParameter
(
ParameterType_OutputImage
,
"outputimage"
,
"Output Image"
);
AddParameter
(
ParameterType_OutputVectorData
,
"outputvectordata"
,
"Output Vector Data"
);
AddParameter
(
ParameterType_Radius
,
"radius"
,
"Radius"
);
//AddParameter(ParameterType_Group, "group", "Group");
}
void
DoUpdateParameters
()
{
std
::
cout
<<
"TestApplication::DoUpdateParameters"
<<
std
::
endl
;
}
void
DoExecute
()
{
std
::
cout
<<
"TestApplication::DoExecute"
<<
std
::
endl
;
}
};
}
}
OTB_APPLICATION_EXPORT
(
otb
::
Wrapper
::
TestApplication
)
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