SimpleITK  2.0.0
sitkPhysicalPointImageSource.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 sitkPhysicalPointImageSource_h
19 #define sitkPhysicalPointImageSource_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 sitkImageSourceTemplate.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 
43  public:
45 
47  virtual ~PhysicalPointImageSource();
48 
52 
55 
56 
57 
58 \
59 
62  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
63 
66  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }\
67 
70  SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<unsigned int> Size ) { this->m_Size = std::move(Size); return *this; }
71 
74  std::vector<unsigned int> GetSize() const { return this->m_Size; }\
75 
78  SITK_RETURN_SELF_TYPE_HEADER SetOrigin ( std::vector<double> Origin ) { this->m_Origin = std::move(Origin); return *this; }
79 
82  std::vector<double> GetOrigin() const { return this->m_Origin; }\
83 
86  SITK_RETURN_SELF_TYPE_HEADER SetSpacing ( std::vector<double> Spacing ) { this->m_Spacing = std::move(Spacing); return *this; }
87 
90  std::vector<double> GetSpacing() const { return this->m_Spacing; }\
91 
94  SITK_RETURN_SELF_TYPE_HEADER SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction; return *this; }
95 
98  std::vector<double> GetDirection() const { return this->m_Direction; }
99 
101  std::string GetName() const { return std::string ("PhysicalPointImageSource"); }
102 
104  std::string ToString() const;
105 
106 
109  Image Execute ( );
110 
111 
113  void SetReferenceImage(const Image & refImage );
114 
115 
116  private:
117 
120  using MemberFunctionType = Image (Self::*)( );
121  template <class TImageType> Image ExecuteInternal ( );
122 
123 
125 
126  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
127 
128 
130 
131  std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
132 
133  std::vector<double> m_Origin{std::vector<double>(3, 0.0)};
134 
135  std::vector<double> m_Spacing{std::vector<double>(3, 1.0)};
136 
137  /* Passing a zero sized array, defaults to identiy matrix. The size of the array must exactly match the direction matrix for the dimension of the image. */
138  std::vector<double> m_Direction{std::vector<double>()};
139 
140 
141 
142 
143 
144  };
145 
146 
147 
156 SITKBasicFilters_EXPORT Image PhysicalPointSource ( PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> origin = std::vector<double>(3, 0.0), std::vector<double> spacing = std::vector<double>(3, 1.0), std::vector<double> direction = std::vector<double>() );
157  }
158 }
159 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::PhysicalPointImageSource::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkPhysicalPointImageSource.h:126
itk::simple::PhysicalPointImageSource::PixelIDTypeList
VectorPixelIDTypeList PixelIDTypeList
Definition: sitkPhysicalPointImageSource.h:54
itk::Size
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::PhysicalPointImageSource::SetSize
Self & SetSize(std::vector< unsigned int > Size)
Definition: sitkPhysicalPointImageSource.h:70
itk::simple::PhysicalPointImageSource::GetName
std::string GetName() const
Definition: sitkPhysicalPointImageSource.h:101
itk::simple::PhysicalPointImageSource::MemberFunctionType
Image(Self::*)() MemberFunctionType
Definition: sitkPhysicalPointImageSource.h:120
itk::simple::PhysicalPointImageSource::SetOrigin
Self & SetOrigin(std::vector< double > Origin)
Definition: sitkPhysicalPointImageSource.h:78
itk::simple::PhysicalPointImageSource::GetSpacing
std::vector< double > GetSpacing() const
Definition: sitkPhysicalPointImageSource.h:90
itk::simple::PhysicalPointImageSource::GetSize
std::vector< unsigned int > GetSize() const
Definition: sitkPhysicalPointImageSource.h:74
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:90
sitkImageFilter.h
itk::simple::PhysicalPointImageSource::SetSpacing
Self & SetSpacing(std::vector< double > Spacing)
Definition: sitkPhysicalPointImageSource.h:86
itk::simple::PhysicalPointSource
Image PhysicalPointSource(PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat32, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), std::vector< double > origin=std::vector< double >(3, 0.0), std::vector< double > spacing=std::vector< double >(3, 1.0), std::vector< double > direction=std::vector< double >())
Generate an image of the physical locations of each pixel.
itk::simple::PhysicalPointImageSource::GetDirection
std::vector< double > GetDirection() const
Definition: sitkPhysicalPointImageSource.h:98
itk::simple::PhysicalPointImageSource::SetOutputPixelType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Definition: sitkPhysicalPointImageSource.h:62
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::VectorPixelIDTypeList
typelist::MakeTypeList< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > >::Type VectorPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:134
itk
itk::simple::PhysicalPointImageSource
Generate an image of the physical locations of each pixel.
Definition: sitkPhysicalPointImageSource.h:42
itk::simple::PhysicalPointImageSource::GetOrigin
std::vector< double > GetOrigin() const
Definition: sitkPhysicalPointImageSource.h:82
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::PhysicalPointImageSource::GetOutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Definition: sitkPhysicalPointImageSource.h:66
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::sitkVectorFloat32
@ sitkVectorFloat32
Multi-component of 32 bit float.
Definition: sitkPixelIDValues.h:112
itk::simple::PhysicalPointImageSource::SetDirection
Self & SetDirection(std::vector< double > Direction)
Definition: sitkPhysicalPointImageSource.h:94