ITK  5.3.0
Insight Toolkit
itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 itkQuadEdgeMeshScalarDataVTKPolyDataWriter_h
19 #define itkQuadEdgeMeshScalarDataVTKPolyDataWriter_h
20 
21 #include "itkVTKPolyDataWriter.h"
22 #include <fstream>
23 
24 namespace itk
25 {
36 template <typename TMesh>
37 class ITK_TEMPLATE_EXPORT QuadEdgeMeshScalarDataVTKPolyDataWriter : public VTKPolyDataWriter<TMesh>
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_MOVE(QuadEdgeMeshScalarDataVTKPolyDataWriter);
41 
46 
49 
51  itkNewMacro(Self);
52 
53  using MeshType = TMesh;
54  using MeshPointer = typename MeshType::Pointer;
55  using CellType = typename MeshType::CellType;
56 
57  using PointsContainerPointer = typename MeshType::PointsContainerPointer;
58  using PointsContainerIterator = typename MeshType::PointsContainerIterator;
59 
60  using PointDataContainerPointer = typename MeshType::PointDataContainerPointer;
61  using PointDataContainerConstPointer = typename MeshType::PointDataContainerConstPointer;
62  using PointDataContainerIterator = typename MeshType::PointDataContainerIterator;
63 
64  using CellsContainer = typename MeshType::CellsContainer;
65  using CellsContainerPointer = typename CellsContainer::Pointer;
66  using CellsContainerConstPointer = typename CellsContainer::ConstPointer;
67  using CellsContainerIterator = typename CellsContainer::Iterator;
68  using CellsContainerConstIterator = typename CellsContainer::ConstIterator;
69 
70  using CellDataContainer = typename MeshType::CellDataContainer;
71  using CellDataContainerIterator = typename CellDataContainer::Iterator;
72  using CellDataContainerConstIterator = typename CellDataContainer::ConstIterator;
73  using CellDataContainerPointer = typename CellDataContainer::Pointer;
74  using CellDataContainerConstPointer = typename CellDataContainer::ConstPointer;
75 
77  itkSetStringMacro(CellDataName);
78  itkGetStringMacro(CellDataName);
80 
82  itkSetStringMacro(PointDataName);
83  itkGetStringMacro(PointDataName);
85 
86 protected:
88  ~QuadEdgeMeshScalarDataVTKPolyDataWriter() override = default;
89 
90  std::string m_CellDataName;
91  std::string m_PointDataName;
92 
93  void
94  GenerateData() override;
95 
96  void
97  WriteCellData();
98 
99  void
100  WritePointData();
101 };
102 } // namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 # include "itkQuadEdgeMeshScalarDataVTKPolyDataWriter.hxx"
106 #endif
107 
108 #endif
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellsContainerIterator
typename CellsContainer::Iterator CellsContainerIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:67
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellsContainerPointer
typename CellsContainer::Pointer CellsContainerPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:65
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellType
typename MeshType::CellType CellType
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:55
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::PointsContainerIterator
typename MeshType::PointsContainerIterator PointsContainerIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:58
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:37
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::PointDataContainerIterator
typename MeshType::PointDataContainerIterator PointDataContainerIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:62
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellDataContainerConstPointer
typename CellDataContainer::ConstPointer CellDataContainerConstPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:74
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::MeshPointer
typename MeshType::Pointer MeshPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:54
itk::SmartPointer< Self >
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::PointsContainerPointer
typename MeshType::PointsContainerPointer PointsContainerPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:57
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::PointDataContainerPointer
typename MeshType::PointDataContainerPointer PointDataContainerPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:60
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellDataContainer
typename MeshType::CellDataContainer CellDataContainer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:70
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellsContainer
typename MeshType::CellsContainer CellsContainer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:64
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::m_PointDataName
std::string m_PointDataName
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:91
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::MeshType
TMesh MeshType
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:53
itkVTKPolyDataWriter.h
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellsContainerConstIterator
typename CellsContainer::ConstIterator CellsContainerConstIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:68
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellsContainerConstPointer
typename CellsContainer::ConstPointer CellsContainerConstPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:66
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellDataContainerPointer
typename CellDataContainer::Pointer CellDataContainerPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:73
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::PointDataContainerConstPointer
typename MeshType::PointDataContainerConstPointer PointDataContainerConstPointer
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:61
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellDataContainerConstIterator
typename CellDataContainer::ConstIterator CellDataContainerConstIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:72
itk::VTKPolyDataWriter
Writes an itkMesh to a file in VTK file format.
Definition: itkVTKPolyDataWriter.h:46
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::m_CellDataName
std::string m_CellDataName
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:90
itk::QuadEdgeMeshScalarDataVTKPolyDataWriter::CellDataContainerIterator
typename CellDataContainer::Iterator CellDataContainerIterator
Definition: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h:71