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  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkMeshFileReaderBase_h
19 #define __itkMeshFileReaderBase_h
20 
21 #include "itkMeshSource.h"
22 #include "itkExceptionObject.h"
23 #include "itkMeshFileReader.h" // for MeshFileReaderException
24 
25 namespace itk
26 {
27 
36 template< class TOutputMesh >
37 class MeshFileReaderBase : public MeshSource< TOutputMesh >
38 {
39 public:
40 
43  typedef MeshSource< TOutputMesh > Superclass;
45  typedef SmartPointer< const Self > ConstPointer;
46 
48  itkNewMacro( Self );
49 
51  itkTypeMacro( MeshFileReaderBase, MeshSource );
52 
54  typedef typename Superclass::DataObjectPointer DatabObjectPointer;
55  typedef typename Superclass::OutputMeshType OutputMeshType;
56  typedef typename Superclass::OutputMeshPointer OutputMeshPointer;
57 
59  itkGetStringMacro( FileName );
60  itkSetStringMacro( FileName );
61 
65  virtual void GenerateOutputInformation( void );
66 
72  virtual void EnlargeOutputRequestedRegion( DataObject * output );
73 
74 protected:
75 
77  virtual ~MeshFileReaderBase(){}
78 
85  virtual void TestFileExistanceAndReadability( void );
86 
87  std::string m_FileName;
88 
89 private:
90 
91  MeshFileReaderBase( const Self & ); // purposely not implemented
92  void operator=( const Self & ); // purposely not implemented
93 
94 };
95 
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkMeshFileReaderBase.hxx"
100 #endif
101 
102 #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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo