go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkMeshFileReaderBase.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __itkMeshFileReaderBase_h
16 #define __itkMeshFileReaderBase_h
17 
18 #include "itkMeshSource.h"
19 #include "itkExceptionObject.h"
20 #include "itkMeshFileReader.h" // for MeshFileReaderException
21 
22 namespace itk
23 {
24 
33 template <class TOutputMesh>
34 class MeshFileReaderBase : public MeshSource<TOutputMesh>
35 {
36 public:
39  typedef MeshSource<TOutputMesh> Superclass;
40  typedef SmartPointer<Self> Pointer;
41  typedef SmartPointer<const Self> ConstPointer;
42 
44  itkNewMacro( Self );
45 
47  itkTypeMacro( MeshFileReaderBase, MeshSource );
48 
50  typedef typename Superclass::DataObjectPointer DatabObjectPointer;
51  typedef typename Superclass::OutputMeshType OutputMeshType;
52  typedef typename Superclass::OutputMeshPointer OutputMeshPointer;
53 
55  itkGetStringMacro( FileName );
56  itkSetStringMacro( FileName );
57 
61  virtual void GenerateOutputInformation( void );
62 
68  virtual void EnlargeOutputRequestedRegion( DataObject * output );
69 
70 protected:
72  virtual ~MeshFileReaderBase(){};
73 
80  virtual void TestFileExistanceAndReadability( void );
81 
82  std::string m_FileName;
83 
84 private:
85  MeshFileReaderBase(const Self&); // purposely not implemented
86  void operator=(const Self&); // purposely not implemented
87 
88 }; // end class
89 
90 } // end namespace itk
91 
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkMeshFileReaderBase.txx"
95 #endif
96 
97 #endif
SmartPointer< Self > Pointer
Superclass::DataObjectPointer DatabObjectPointer
MeshSource< TOutputMesh > Superclass
virtual void EnlargeOutputRequestedRegion(DataObject *output)
SmartPointer< const Self > ConstPointer
Superclass::OutputMeshPointer OutputMeshPointer
void operator=(const Self &)
Superclass::OutputMeshType OutputMeshType
Base class for mesh readers.
virtual void TestFileExistanceAndReadability(void)
virtual void GenerateOutputInformation(void)


Generated on 05-01-2014 for elastix by doxygen 1.8.5 elastix logo