ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLandmarksReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkLandmarksReader.h
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
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 itkLandmarksReader_h
18 #define itkLandmarksReader_h
19 
20 #include "itkProcessObject.h"
21 #include "itkImage.h"
23 #include "itkSpatialObjectReader.h"
24 
25 namespace itk
26 {
27 
36 template <unsigned int NDimension>
37 class ITK_TEMPLATE_EXPORT LandmarksReader : public ProcessObject
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_ASSIGN(LandmarksReader);
41 
47 
49  itkNewMacro(Self);
50 
52  itkTypeMacro(LandmarksReader, ProcessObject);
53 
55  static constexpr unsigned int Dimension = NDimension;
56 
61 
64  const SpatialObjectType * GetOutput() const;
65 
67  itkSetStringMacro( FileName );
68  itkGetStringMacro( FileName );
70 
71 protected:
73  ~LandmarksReader() override;
74  void PrintSelf(std::ostream& os, Indent indent) const override;
75 
76  void GenerateData() override;
77 
78 private:
81  using SceneType = typename SpatialObjectReaderType::SceneType;
82  using ObjectListType = typename SceneType::ObjectListType;
83 
84  std::string m_FileName;
86 };
87 
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 # include "itkLandmarksReader.hxx"
92 #endif
93 
94 #endif
Light weight base class for most itk classes.
typename SpatialObjectReaderType::SceneType SceneType
typename SceneType::ObjectListType ObjectListType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
Representation of a Landmark based on the spatial object classes.
Class that reads a file containing spatial object landmarks.
SpatialObjectReaderPointer m_SpatialObjectReader
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename SpatialObjectReaderType::Pointer SpatialObjectReaderPointer
typename SpatialObjectType::Pointer SpatialObjectPointer