SimpleITK  
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::simple {
33 
42  public:
44 
46  virtual ~PhysicalPointImageSource();
47 
51 
54 
55 
56 
57 \
58 
61  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
62 
65  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }\
66 
69  SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<unsigned int> Size ) { this->m_Size = std::move(Size); return *this; }
70 
73  std::vector<unsigned int> GetSize() const { return this->m_Size; }\
74 
77  SITK_RETURN_SELF_TYPE_HEADER SetOrigin ( std::vector<double> Origin ) { this->m_Origin = std::move(Origin); return *this; }
78 
81  std::vector<double> GetOrigin() const { return this->m_Origin; }\
82 
85  SITK_RETURN_SELF_TYPE_HEADER SetSpacing ( std::vector<double> Spacing ) { this->m_Spacing = std::move(Spacing); return *this; }
86 
89  std::vector<double> GetSpacing() const { return this->m_Spacing; }\
90 
93  SITK_RETURN_SELF_TYPE_HEADER SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction; return *this; }
94 
97  std::vector<double> GetDirection() const { return this->m_Direction; }
98 
100  std::string GetName() const { return std::string ("PhysicalPointImageSource"); }
101 
103  std::string ToString() const;
104 
105 
108  Image Execute ( );
109 
110 
112  void SetReferenceImage(const Image & refImage );
113 
114 
115  private:
116 
119  using MemberFunctionType = Image (Self::*)( );
120  template <class TImageType> Image ExecuteInternal ( );
121 
122 
124 
125  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
126 
127 
128  PixelIDValueEnum m_OutputPixelType{itk::simple::sitkVectorFloat32};
129 
130  std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
131 
132  std::vector<double> m_Origin{std::vector<double>(3, 0.0)};
133 
134  std::vector<double> m_Spacing{std::vector<double>(3, 1.0)};
135 
136  /* 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. */
137  std::vector<double> m_Direction{std::vector<double>()};
138 
139 
140 
141 
142 
143  };
144 
145 
146 
155 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>() );
156 }
157 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::PhysicalPointImageSource::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkPhysicalPointImageSource.h:125
itk::simple::PhysicalPointImageSource::PixelIDTypeList
VectorPixelIDTypeList PixelIDTypeList
Definition: sitkPhysicalPointImageSource.h:53
itk::simple::VectorPixelIDTypeList
typelist2::typelist< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > > VectorPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:136
itk::Size
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::PhysicalPointImageSource::SetSize
Self & SetSize(std::vector< unsigned int > Size)
Definition: sitkPhysicalPointImageSource.h:69
itk::simple::PhysicalPointImageSource::GetName
std::string GetName() const
Definition: sitkPhysicalPointImageSource.h:100
itk::simple::PhysicalPointImageSource::MemberFunctionType
Image(Self::*)() MemberFunctionType
Definition: sitkPhysicalPointImageSource.h:119
itk::simple::PhysicalPointImageSource::SetOrigin
Self & SetOrigin(std::vector< double > Origin)
Definition: sitkPhysicalPointImageSource.h:77
itk::simple::PhysicalPointImageSource::GetSpacing
std::vector< double > GetSpacing() const
Definition: sitkPhysicalPointImageSource.h:89
itk::simple::PhysicalPointImageSource::GetSize
std::vector< unsigned int > GetSize() const
Definition: sitkPhysicalPointImageSource.h:73
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:100
sitkImageFilter.h
itk::simple::PhysicalPointImageSource::SetSpacing
Self & SetSpacing(std::vector< double > Spacing)
Definition: sitkPhysicalPointImageSource.h:85
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:97
itk::simple::PhysicalPointImageSource::SetOutputPixelType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Definition: sitkPhysicalPointImageSource.h:61
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::PhysicalPointImageSource
Generate an image of the physical locations of each pixel.
Definition: sitkPhysicalPointImageSource.h:41
itk::simple::PhysicalPointImageSource::GetOrigin
std::vector< double > GetOrigin() const
Definition: sitkPhysicalPointImageSource.h:81
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::PhysicalPointImageSource::GetOutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Definition: sitkPhysicalPointImageSource.h:65
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple::PhysicalPointImageSource::SetDirection
Self & SetDirection(std::vector< double > Direction)
Definition: sitkPhysicalPointImageSource.h:93
itk::simple
Definition: sitkAdditionalProcedures.h:28