OTB  6.1.0
Orfeo Toolbox
otbImageToPathFilter.txx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbImageToPathFilter_txx
22 #define otbImageToPathFilter_txx
23 
24 #include "otbImageToPathFilter.h"
25 
26 namespace otb
27 {
31 template <class TInputImage, class TOutputPath>
34 {
35  this->SetNumberOfRequiredInputs(1);
36 }
37 
41 template <class TInputImage, class TOutputPath>
42 void
44 ::SetInput(const InputImageType * image)
45 {
46  this->ProcessObjectType::SetNthInput(0, const_cast<InputImageType *>(image));
47 }
48 
52 template <class TInputImage, class TOutputPath>
56 {
57  return static_cast<const TInputImage *>(this->ProcessObjectType::GetInput(0));
58 }
59 
63 template <class TInputImage, class TOutputPath>
64 void
66 ::PrintSelf(std::ostream& os, itk::Indent indent) const
67 {
68  Superclass::PrintSelf(os, indent);
69 }
70 } // end namespace otb
72 
73 #endif
virtual void SetInput(const InputImageType *Image)
void PrintSelf(std::ostream &os, itk::Indent indent) const ITK_OVERRIDE
const InputImageType * GetInput(void)
TInputImage InputImageType
template parameters typedefs