Orfeo Toolbox  3.16
itkPointSetToImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkPointSetToImageFilter.h,v $
5  Language: C++
6  Date: $Date: 2009-04-25 12:27:54 $
7  Version: $Revision: 1.7 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkPointSetToImageFilter_h
18 #define __itkPointSetToImageFilter_h
19 
20 #include "itkImageSource.h"
21 #include "itkConceptChecking.h"
22 
23 namespace itk
24 {
25 
32 template <class TInputPointSet, class TOutputImage>
33 class ITK_EXPORT PointSetToImageFilter : public ImageSource<TOutputImage>
34 {
35 public:
41  typedef typename TOutputImage::SizeType SizeType;
42  typedef TOutputImage OutputImageType;
43  typedef typename OutputImageType::Pointer OutputImagePointer;
44  typedef typename OutputImageType::ValueType ValueType;
45 
47  itkNewMacro(Self);
48 
51 
54 
56  typedef TInputPointSet InputPointSetType;
57  typedef typename InputPointSetType::Pointer InputPointSetPointer;
58  typedef typename InputPointSetType::ConstPointer InputPointSetConstPointer;
59 
61  itkStaticConstMacro(InputPointSetDimension, unsigned int,
62  InputPointSetType::PointDimension);
63  itkStaticConstMacro(OutputImageDimension, unsigned int,
64  TOutputImage::ImageDimension);
65 
67  typedef typename TOutputImage::SpacingType SpacingType;
68  typedef typename TOutputImage::DirectionType DirectionType;
69  typedef typename TOutputImage::PointType PointType;
70 
72  virtual void SetInput( const InputPointSetType *pointset);
73  virtual void SetInput( unsigned int, const InputPointSetType * pointset);
74  const InputPointSetType * GetInput(void);
75  const InputPointSetType * GetInput(unsigned int idx);
76 
81  itkSetMacro(Spacing,SpacingType);
82  virtual void SetSpacing( const double* spacing);
83  virtual void SetSpacing( const float* spacing);
84 
89  itkGetConstReferenceMacro(Spacing,SpacingType);
90 
94  itkSetMacro(Direction,DirectionType);
95  itkGetConstReferenceMacro(Direction,DirectionType);
96 
101  itkSetMacro(Origin,PointType);
102  virtual void SetOrigin( const double* origin);
103  virtual void SetOrigin( const float* origin);
104 
109  itkGetConstReferenceMacro(Origin,PointType);
110 
117  itkSetMacro(InsideValue, ValueType);
118  itkGetConstMacro(InsideValue, ValueType);
119 
126  itkSetMacro(OutsideValue, ValueType);
127  itkGetConstMacro(OutsideValue, ValueType);
128 
130  itkSetMacro(Size,SizeType);
131  itkGetConstMacro(Size,SizeType);
132 
133 protected:
136 
137  virtual void GenerateOutputInformation(){}; // do nothing
138  virtual void GenerateData();
139 
146 
147  virtual void PrintSelf(std::ostream& os, Indent indent) const;
148 
149 private:
150  PointSetToImageFilter(const Self&); //purposely not implemented
151  void operator=(const Self&); //purposely not implemented
152 
153 
154 };
155 
156 } // end namespace itk
157 
158 #ifndef ITK_MANUAL_INSTANTIATION
160 #endif
161 
162 #endif

Generated at Sat Feb 2 2013 23:59:44 for Orfeo Toolbox with doxygen 1.8.1.1