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 #ifndef __itkMeshFileReaderBase_h
15 #define __itkMeshFileReaderBase_h
16 
17 #include "itkMeshSource.h"
18 #include "itkExceptionObject.h"
19 #include "itkMeshFileReader.h" // for MeshFileReaderException
20 
21 namespace itk
22 {
23 
32 template< class TOutputMesh >
33 class MeshFileReaderBase : public MeshSource< TOutputMesh >
34 {
35 public:
36 
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:
71 
73  virtual ~MeshFileReaderBase(){}
74 
81  virtual void TestFileExistanceAndReadability( void );
82 
83  std::string m_FileName;
84 
85 private:
86 
87  MeshFileReaderBase( const Self & ); // purposely not implemented
88  void operator=( const Self & ); // purposely not implemented
89 
90 };
91 
92 } // end namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkMeshFileReaderBase.hxx"
96 #endif
97 
98 #endif
Superclass::DataObjectPointer DatabObjectPointer
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
virtual void EnlargeOutputRequestedRegion(DataObject *output)
MeshSource< TOutputMesh > Superclass
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 27-04-2014 for elastix by doxygen 1.8.6 elastix logo