Orfeo Toolbox  4.0
itkPointSetToImageFilter.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 __itkPointSetToImageFilter_h
19 #define __itkPointSetToImageFilter_h
20 
21 #include "itkImageSource.h"
22 #include "itkConceptChecking.h"
23 
24 namespace itk
25 {
33 template< typename TInputPointSet, typename TOutputImage >
34 class PointSetToImageFilter:public ImageSource< TOutputImage >
35 {
36 public:
42  typedef typename TOutputImage::SizeType SizeType;
43  typedef TOutputImage OutputImageType;
44  typedef typename OutputImageType::Pointer OutputImagePointer;
45  typedef typename OutputImageType::ValueType ValueType;
46 
48  itkNewMacro(Self);
49 
52 
55 
57  typedef TInputPointSet InputPointSetType;
58  typedef typename InputPointSetType::Pointer InputPointSetPointer;
59  typedef typename InputPointSetType::ConstPointer InputPointSetConstPointer;
60 
62  itkStaticConstMacro(InputPointSetDimension, unsigned int,
63  InputPointSetType::PointDimension);
64  itkStaticConstMacro(OutputImageDimension, unsigned int,
65  TOutputImage::ImageDimension);
66 
68  typedef typename TOutputImage::SpacingType SpacingType;
69  typedef typename TOutputImage::DirectionType DirectionType;
70  typedef typename TOutputImage::PointType PointType;
71 
74  virtual void SetInput(const InputPointSetType *pointset);
75 
76  virtual void SetInput(unsigned int, const InputPointSetType *pointset);
77 
78  const InputPointSetType * GetInput(void);
79 
80  const InputPointSetType * GetInput(unsigned int idx);
81 
86  itkSetMacro(Spacing, SpacingType);
87  virtual void SetSpacing(const double *spacing);
88 
89  virtual void SetSpacing(const float *spacing);
90 
95  itkGetConstReferenceMacro(Spacing, SpacingType);
96 
100  itkSetMacro(Direction, DirectionType);
101  itkGetConstReferenceMacro(Direction, DirectionType);
102 
107  itkSetMacro(Origin, PointType);
108  virtual void SetOrigin(const double *origin);
109 
110  virtual void SetOrigin(const float *origin);
111 
116  itkGetConstReferenceMacro(Origin, PointType);
117 
124  itkSetMacro(InsideValue, ValueType);
125  itkGetConstMacro(InsideValue, ValueType);
126 
133  itkSetMacro(OutsideValue, ValueType);
134  itkGetConstMacro(OutsideValue, ValueType);
135 
137  itkSetMacro(Size, SizeType);
138  itkGetConstMacro(Size, SizeType);
139 
140 protected:
143 
144  virtual void GenerateOutputInformation(){} // do nothing
145  virtual void GenerateData();
146 
148 
150 
152 
154 
157 
158  virtual void PrintSelf(std::ostream & os, Indent indent) const;
159 
160 private:
161  PointSetToImageFilter(const Self &); //purposely not implemented
162  void operator=(const Self &); //purposely not implemented
163 };
164 } // end namespace itk
165 
166 #ifndef ITK_MANUAL_INSTANTIATION
168 #endif
169 
170 #endif

Generated at Sat Mar 8 2014 15:23:17 for Orfeo Toolbox with doxygen 1.8.3.1