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 "itkMacro.h"
23#include "itkMeshFileReader.h" // for MeshFileReaderException
24
25namespace itk
26{
27
36template< class TOutputMesh >
37class MeshFileReaderBase : public MeshSource< TOutputMesh >
38{
39public:
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 void GenerateOutputInformation( void ) override;
66
72 void EnlargeOutputRequestedRegion( DataObject * output ) override;
73
74protected:
75
78
85 virtual void TestFileExistanceAndReadability( void );
86
87 std::string m_FileName;
88
89private:
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
Base class for mesh readers.
void operator=(const Self &)
MeshFileReaderBase(const Self &)
SmartPointer< const Self > ConstPointer
virtual void TestFileExistanceAndReadability(void)
Superclass::OutputMeshPointer OutputMeshPointer
MeshSource< TOutputMesh > Superclass
void EnlargeOutputRequestedRegion(DataObject *output) override
SmartPointer< Self > Pointer
void GenerateOutputInformation(void) override
Superclass::OutputMeshType OutputMeshType
Superclass::DataObjectPointer DatabObjectPointer


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo