ITK  6.0.0
Insight Toolkit
itkVTKImageExport.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 * https://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 itkVTKImageExport_h
19#define itkVTKImageExport_h
20
22#include "itkConceptChecking.h"
23
24namespace itk
25{
54template <typename TInputImage>
55class ITK_TEMPLATE_EXPORT VTKImageExport : public VTKImageExportBase
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(VTKImageExport);
59
65 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
66
68 itkOverrideGetNameOfClassMacro(VTKImageExport);
69
71 itkNewMacro(Self);
72
74 using InputImageType = TInputImage;
75
76#ifdef ITK_USE_CONCEPT_CHECKING
78#endif
80 using Superclass::SetInput;
81 void
87protected:
89 ~VTKImageExport() override = default;
90 void
91 PrintSelf(std::ostream & os, Indent indent) const override;
92
97
98 int *
100
101 double *
102 SpacingCallback() override;
103
104 double *
105 OriginCallback() override;
106
107 double *
109
110 float *
112
113 float *
115
116 const char *
118
119 int
121
122 void
124
125 int *
127
128 void *
130
131private:
132 std::string m_ScalarTypeName{};
133 int m_WholeExtent[6]{};
134 int m_DataExtent[6]{};
135 double m_DataSpacing[3]{};
136 double m_DataOrigin[3]{};
137 double m_DataDirection[9]{};
138 float m_FloatDataSpacing[3]{};
139 float m_FloatDataOrigin[3]{};
140};
141} // end namespace itk
142
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkVTKImageExport.hxx"
145#endif
146
147#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Superclass for VTKImageExport instantiations.
Connect the end of an ITK image pipeline to a VTK pipeline.
float * FloatSpacingCallback() override
double * DirectionCallback() override
const char * ScalarTypeCallback() override
typename InputImageType::Pointer InputImagePointer
double * OriginCallback() override
int * DataExtentCallback() override
typename InputRegionType::IndexType InputIndexType
float * FloatOriginCallback() override
void SetInput(const InputImageType *)
void PropagateUpdateExtentCallback(int *) override
typename InputRegionType::SizeType InputSizeType
int * WholeExtentCallback() override
InputImageType * GetInput()
void PrintSelf(std::ostream &os, Indent indent) const override
TInputImage InputImageType
~VTKImageExport() override=default
void * BufferPointerCallback() override
int NumberOfComponentsCallback() override
typename InputImageType::RegionType InputRegionType
double * SpacingCallback() override
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....