go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkTransformixInputPointFileReader.h
Go to the documentation of this file.
00001 /*======================================================================
00002 
00003   This file is part of the elastix software.
00004 
00005   Copyright (c) University Medical Center Utrecht. All rights reserved.
00006   See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
00007   details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE. See the above copyright notices for more information.
00012 
00013 ======================================================================*/
00014 
00015 #ifndef __itkTransformixInputPointFileReader_h
00016 #define __itkTransformixInputPointFileReader_h
00017 
00018 #include "itkMeshFileReaderBase.h"
00019 
00020 #include <fstream>
00021 
00022 namespace itk
00023 {
00024 
00041 template <class TOutputMesh>
00042 class TransformixInputPointFileReader : public MeshFileReaderBase<TOutputMesh>
00043 {
00044 public:
00046   typedef TransformixInputPointFileReader        Self;
00047   typedef MeshFileReaderBase<TOutputMesh>        Superclass;
00048   typedef SmartPointer<Self>                     Pointer;
00049   typedef SmartPointer<const Self>               ConstPointer;
00050 
00052   itkNewMacro( Self );
00053 
00055   itkTypeMacro( TransformixInputPointFileReader, MeshFileReaderBase );
00056 
00058   typedef typename Superclass::DataObjectPointer DatabObjectPointer;
00059   typedef typename Superclass::OutputMeshType    OutputMeshType;
00060   typedef typename Superclass::OutputMeshPointer OutputMeshPointer;
00061 
00065   itkGetConstMacro( PointsAreIndices, bool );
00066 
00078   itkGetConstMacro( NumberOfPoints, unsigned long );
00079 
00083   virtual void GenerateOutputInformation( void );
00084 
00085 protected:
00086   TransformixInputPointFileReader();
00087   virtual ~TransformixInputPointFileReader();
00088 
00090   virtual void GenerateData( void );
00091 
00092   unsigned long m_NumberOfPoints;
00093   bool m_PointsAreIndices;
00094 
00095   std::ifstream m_Reader;
00096 
00097 private:
00098   TransformixInputPointFileReader(const Self&); //purposely not implemented
00099   void operator=(const Self&); //purposely not implemented
00100 
00101 }; // end class
00102 
00103 } // end namespace itk
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkTransformixInputPointFileReader.hxx"
00107 #endif
00108 
00109 #endif


Generated on 24-05-2012 for elastix by doxygen 1.7.6.1 elastix logo