OTB  9.0.0
Orfeo Toolbox
otbImageToPathFilter.hxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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_hxx
22 #define otbImageToPathFilter_hxx
23 
24 #include "otbImageToPathFilter.h"
25 
26 namespace otb
27 {
31 template <class TInputImage, class TOutputPath>
33 {
34  this->SetNumberOfRequiredInputs(1);
35 }
36 
40 template <class TInputImage, class TOutputPath>
42 {
43  this->ProcessObjectType::SetNthInput(0, const_cast<InputImageType*>(image));
44 }
45 
49 template <class TInputImage, class TOutputPath>
51 {
52  return static_cast<const TInputImage*>(this->ProcessObjectType::GetInput(0));
53 }
54 
58 template <class TInputImage, class TOutputPath>
59 void ImageToPathFilter<TInputImage, TOutputPath>::PrintSelf(std::ostream& os, itk::Indent indent) const
60 {
61  Superclass::PrintSelf(os, indent);
62 }
63 } // end namespace otb
65 
66 #endif
otb::ImageToPathFilter::SetInput
virtual void SetInput(const InputImageType *Image)
Definition: otbImageToPathFilter.hxx:41
otb::ImageToPathFilter::GetInput
const InputImageType * GetInput(void)
Definition: otbImageToPathFilter.hxx:50
otb::ImageToPathFilter::InputImageType
TInputImage InputImageType
template parameters typedefs
Definition: otbImageToPathFilter.h:48
otb::ImageToPathFilter::ImageToPathFilter
ImageToPathFilter()
Definition: otbImageToPathFilter.hxx:32
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageToPathFilter::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbImageToPathFilter.hxx:59
otbImageToPathFilter.h