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 ITK_TEMPLATE_EXPORT MeshFileReaderBase : public MeshSource<TOutputMesh>
38{
39public:
41
44 using Superclass = MeshSource<TOutputMesh>;
45 using Pointer = SmartPointer<Self>;
46 using ConstPointer = SmartPointer<const Self>;
47
49 itkNewMacro(Self);
50
52 itkTypeMacro(MeshFileReaderBase, MeshSource);
53
55 using typename Superclass::DataObjectPointer;
56 using typename Superclass::OutputMeshType;
57 using typename Superclass::OutputMeshPointer;
58
60 itkGetStringMacro(FileName);
61 itkSetStringMacro(FileName);
62
66 void
68
74 void
75 EnlargeOutputRequestedRegion(DataObject * output) override;
76
77protected:
78 MeshFileReaderBase() = default;
79 ~MeshFileReaderBase() override = default;
80
87 virtual void
89
90 std::string m_FileName{};
91};
92
93} // end namespace itk
94
95#ifndef ITK_MANUAL_INSTANTIATION
96# include "itkMeshFileReaderBase.hxx"
97#endif
98
99#endif
Base class for mesh readers.
ITK_DISALLOW_COPY_AND_MOVE(MeshFileReaderBase)
void GenerateOutputInformation() override
virtual void TestFileExistanceAndReadability()
MeshSource< TOutputMesh > Superclass
~MeshFileReaderBase() override=default
void EnlargeOutputRequestedRegion(DataObject *output) override
SmartPointer< const Self > ConstPointer


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo