SimpleITK  2.0.0rc2.post17
sitkPasteImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18 #ifndef sitkPasteImageFilter_h
19 #define sitkPasteImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
45  public:
47 
49  virtual ~PasteImageFilter();
50 
54 
57 \
58 
61  SITK_RETURN_SELF_TYPE_HEADER SetSourceSize ( std::vector<unsigned int> SourceSize ) { this->m_SourceSize = std::move(SourceSize); return *this; }
62 
65  std::vector<unsigned int> GetSourceSize() const { return this->m_SourceSize; }\
66 
69  SITK_RETURN_SELF_TYPE_HEADER SetSourceIndex ( std::vector<int> SourceIndex ) { this->m_SourceIndex = std::move(SourceIndex); return *this; }
70 
73  std::vector<int> GetSourceIndex() const { return this->m_SourceIndex; }\
74 
78  SITK_RETURN_SELF_TYPE_HEADER SetDestinationIndex ( std::vector<int> DestinationIndex ) { this->m_DestinationIndex = std::move(DestinationIndex); return *this; }
79 
83  std::vector<int> GetDestinationIndex() const { return this->m_DestinationIndex; }
84 
86  std::string GetName() const { return std::string ("PasteImageFilter"); }
87 
89  std::string ToString() const;
90 
91 
93 #ifndef SWIG
94  Image Execute ( Image && destinationImage, const Image & sourceImage );
95 #endif
96  Image Execute ( const Image & destinationImage, const Image & sourceImage );
97 
98  private:
99 
102  using MemberFunctionType = Image (Self::*)( const Image * destinationImage, const Image * sourceImage );
103  template <class TImageType> Image ExecuteInternal ( const Image * destinationImage, const Image * sourceImage );
104 
105 
107 
108  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
109 
110 
111  std::vector<unsigned int> m_SourceSize{std::vector<unsigned int>(SITK_MAX_DIMENSION, 1)};
112 
113  std::vector<int> m_SourceIndex{std::vector<int>(SITK_MAX_DIMENSION, 0)};
114 
115  std::vector<int> m_DestinationIndex{std::vector<int>(SITK_MAX_DIMENSION, 0)};
116 
117 
118  bool m_InPlace{false};
119  };
120 
130 #ifndef SWIG
131  SITKBasicFilters_EXPORT Image Paste ( Image && destinationImage, const Image & sourceImage, std::vector<unsigned int> sourceSize = std::vector<unsigned int>(SITK_MAX_DIMENSION, 1), std::vector<int> sourceIndex = std::vector<int>(SITK_MAX_DIMENSION, 0), std::vector<int> destinationIndex = std::vector<int>(SITK_MAX_DIMENSION, 0) );
132 #endif
133  SITKBasicFilters_EXPORT Image Paste ( const Image & destinationImage, const Image & sourceImage, std::vector<unsigned int> sourceSize = std::vector<unsigned int>(SITK_MAX_DIMENSION, 1), std::vector<int> sourceIndex = std::vector<int>(SITK_MAX_DIMENSION, 0), std::vector<int> destinationIndex = std::vector<int>(SITK_MAX_DIMENSION, 0) );
134 
136  }
137 }
138 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::NonLabelPixelIDTypeList
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:180
itk::simple::PasteImageFilter::GetSourceIndex
std::vector< int > GetSourceIndex() const
Definition: sitkPasteImageFilter.h:73
itk::simple::PasteImageFilter::GetDestinationIndex
std::vector< int > GetDestinationIndex() const
Definition: sitkPasteImageFilter.h:83
sitkImageFilter.h
itk::simple::PasteImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkPasteImageFilter.h:108
SITK_MAX_DIMENSION
#define SITK_MAX_DIMENSION
Definition: sitkConfigure.h:30
itk::simple::PasteImageFilter::PixelIDTypeList
NonLabelPixelIDTypeList PixelIDTypeList
Definition: sitkPasteImageFilter.h:56
itk::simple::PasteImageFilter::MemberFunctionType
Image(Self::*)(const Image *destinationImage, const Image *sourceImage) MemberFunctionType
Definition: sitkPasteImageFilter.h:102
itk::simple::PasteImageFilter
Paste an image into another image.
Definition: sitkPasteImageFilter.h:44
itk::simple::PasteImageFilter::SetDestinationIndex
Self & SetDestinationIndex(std::vector< int > DestinationIndex)
Definition: sitkPasteImageFilter.h:78
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::PasteImageFilter::SetSourceIndex
Self & SetSourceIndex(std::vector< int > SourceIndex)
Definition: sitkPasteImageFilter.h:69
itk::simple::PasteImageFilter::SetSourceSize
Self & SetSourceSize(std::vector< unsigned int > SourceSize)
Definition: sitkPasteImageFilter.h:61
itk
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::Paste
Image Paste(Image &&destinationImage, const Image &sourceImage, std::vector< unsigned int > sourceSize=std::vector< unsigned int >(SITK_MAX_DIMENSION, 1), std::vector< int > sourceIndex=std::vector< int >(SITK_MAX_DIMENSION, 0), std::vector< int > destinationIndex=std::vector< int >(SITK_MAX_DIMENSION, 0))
Paste an image into another image.
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::PasteImageFilter::GetSourceSize
std::vector< unsigned int > GetSourceSize() const
Definition: sitkPasteImageFilter.h:65
itk::simple::PasteImageFilter::GetName
std::string GetName() const
Definition: sitkPasteImageFilter.h:86