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
c7487a9a
Commit
c7487a9a
authored
12 years ago
by
Sébastien Dinot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: Code formatting
parent
562980aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/ApplicationEngine/otbWrapperInputVectorDataListParameter.cxx
+14
-16
14 additions, 16 deletions
...licationEngine/otbWrapperInputVectorDataListParameter.cxx
with
14 additions
and
16 deletions
Code/ApplicationEngine/otbWrapperInputVectorDataListParameter.cxx
+
14
−
16
View file @
c7487a9a
...
...
@@ -58,19 +58,19 @@ InputVectorDataListParameter::SetListFromFileName(const std::vector<std::string>
{
reader
->
UpdateOutputInformation
();
}
catch
(
itk
::
ExceptionObject
&
)
catch
(
itk
::
ExceptionObject
&
/*err*/
)
{
this
->
ClearValue
();
isOk
=
false
;
break
;
}
// everything went fine, store the object references
m_ReaderList
->
PushBack
(
reader
);
m_VectorDataList
->
PushBack
(
reader
->
GetOutput
());
}
}
if
(
!
isOk
)
{
return
false
;
...
...
@@ -87,8 +87,8 @@ InputVectorDataListParameter::AddNullElement()
{
m_ReaderList
->
PushBack
(
NULL
);
m_VectorDataList
->
PushBack
(
NULL
);
SetActive
(
false
);
this
->
Modified
();
SetActive
(
false
);
this
->
Modified
();
}
bool
...
...
@@ -101,7 +101,6 @@ InputVectorDataListParameter::AddFromFileName(const std::string & filename)
{
VectorDataFileReaderType
::
Pointer
reader
=
VectorDataFileReaderType
::
New
();
reader
->
SetFileName
(
filename
);
try
{
reader
->
UpdateOutputInformation
();
...
...
@@ -110,7 +109,7 @@ InputVectorDataListParameter::AddFromFileName(const std::string & filename)
{
return
false
;
}
// everything went fine, store the object references
m_ReaderList
->
PushBack
(
reader
);
m_VectorDataList
->
PushBack
(
reader
->
GetOutput
());
...
...
@@ -137,7 +136,6 @@ InputVectorDataListParameter::SetNthFileName( const unsigned int id, const std::
{
VectorDataFileReaderType
::
Pointer
reader
=
VectorDataFileReaderType
::
New
();
reader
->
SetFileName
(
filename
);
try
{
reader
->
UpdateOutputInformation
();
...
...
@@ -150,10 +148,11 @@ InputVectorDataListParameter::SetNthFileName( const unsigned int id, const std::
m_ReaderList
->
SetNthElement
(
id
,
reader
);
m_VectorDataList
->
SetNthElement
(
id
,
reader
->
GetOutput
());
this
->
Modified
();
return
true
;
}
return
false
;
}
...
...
@@ -169,11 +168,10 @@ InputVectorDataListParameter::GetFileNameList() const
if
(
m_ReaderList
->
GetNthElement
(
i
)
)
filenames
.
push_back
(
m_ReaderList
->
GetNthElement
(
i
)
->
GetFileName
()
);
}
return
filenames
;
}
itkExceptionMacro
(
<<
"No filename value"
);
}
...
...
@@ -187,10 +185,10 @@ InputVectorDataListParameter::GetNthFileName( unsigned int i ) const
{
itkExceptionMacro
(
<<
"No vector data "
<<
i
<<
". Only "
<<
m_ReaderList
->
Size
()
<<
" vector data available."
);
}
return
m_ReaderList
->
GetNthElement
(
i
)
->
GetFileName
();
}
itkExceptionMacro
(
<<
"No filename value"
);
}
...
...
@@ -227,7 +225,7 @@ InputVectorDataListParameter::SetVectorDataList(VectorDataListType* vdList)
{
return
;
}
m_VectorDataList
=
vdList
;
m_ReaderList
=
VectorDataFileReaderListType
::
Pointer
();
for
(
unsigned
int
i
=
0
;
i
<
m_VectorDataList
->
Size
();
i
++
)
...
...
@@ -253,7 +251,7 @@ InputVectorDataListParameter::AddVectorData(VectorDataType* vectorData)
{
return
;
}
m_VectorDataList
->
PushBack
(
vectorData
);
m_ReaderList
->
PushBack
(
VectorDataFileReaderType
::
Pointer
()
);
...
...
@@ -287,7 +285,7 @@ InputVectorDataListParameter::Erase( unsigned int id )
{
itkExceptionMacro
(
<<
"No vector data "
<<
id
<<
". Only "
<<
m_VectorDataList
->
Size
()
<<
" vector data available."
);
}
m_VectorDataList
->
Erase
(
id
);
m_ReaderList
->
Erase
(
id
);
...
...
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