SimpleITK  1.2.4
sitkPhysicalPointImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
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 ( const std::vector<unsigned int> & Size ) { this->m_Size = Size; return *this; }
71 
74  std::vector<unsigned int> GetSize() const { return this->m_Size; }
75 
78  SITK_RETURN_SELF_TYPE_HEADER SetOrigin ( const std::vector<double> & Origin ) { this->m_Origin = Origin; return *this; }
79 
82  std::vector<double> GetOrigin() const { return this->m_Origin; }
83 
86  SITK_RETURN_SELF_TYPE_HEADER SetSpacing ( const std::vector<double> & Spacing ) { this->m_Spacing = 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; }
100  std::string GetName() const { return std::string ("PhysicalPointImageSource"); }
101 
103  std::string ToString() const;
104 
105 
107  Image Execute ( );
108 
109 
111  Image Execute ( PixelIDValueEnum outputPixelType, const std::vector<unsigned int> & size, const std::vector<double> & origin, const std::vector<double> & spacing, std::vector<double> direction );
112 
113 
115  void SetReferenceImage(const Image & refImage );
116 
117 
118  private:
119 
122  typedef Image (Self::*MemberFunctionType)( );
123  template <class TImageType> Image ExecuteInternal ( );
124 
125 
126  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
127 
128  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
129 
130 
132  std::vector<unsigned int> m_Size;
133  std::vector<double> m_Origin;
134  std::vector<double> m_Spacing;
135  /* 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. */
136  std::vector<double> m_Direction;
137 
138 
139 
140  };
141 
142 
143 
152 SITKBasicFilters_EXPORT Image PhysicalPointSource ( PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat32, const std::vector<unsigned int> & size = std::vector<unsigned int>(3, 64), const std::vector<double> & origin = std::vector<double>(3, 0.0), const std::vector<double> & spacing = std::vector<double>(3, 1.0), std::vector<double> direction = std::vector<double>() );
153  }
154 }
155 #endif
Self & SetSpacing(const std::vector< double > &Spacing)
#define SITKBasicFilters_EXPORT
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< unsigned int > GetSize() const
Self & SetDirection(std::vector< double > Direction)
Self & SetOrigin(const std::vector< double > &Origin)
The Image class for SimpleITK.
Definition: sitkImage.h:78
Self & SetSize(const std::vector< unsigned int > &Size)
Multi-component of 32 bit float.
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
Generate an image of the physical locations of each pixel.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image PhysicalPointSource(PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat32, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 64), const std::vector< double > &origin=std::vector< double >(3, 0.0), const 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.
The base interface for SimpleITK filters that take one input image.