ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
77
80 void
85
86protected:
88 ~VTKImageExport() override = default;
89 void
90 PrintSelf(std::ostream & os, Indent indent) const override;
91
92 using InputImagePointer = typename InputImageType::Pointer;
93 using InputRegionType = typename InputImageType::RegionType;
94 using InputSizeType = typename InputRegionType::SizeType;
95 using InputIndexType = typename InputRegionType::IndexType;
96
97 int *
99
100 double *
101 SpacingCallback() override;
102
103 double *
104 OriginCallback() override;
105
106 double *
108
109 float *
111
112 float *
114
115 const char *
117
118 int
120
121 void
123
124 int *
126
127 void *
129
130private:
131 std::string m_ScalarTypeName{};
133 int m_DataExtent[6]{};
134 double m_DataSpacing[3]{};
135 double m_DataOrigin[3]{};
136 double m_DataDirection[9]{};
139};
140} // end namespace itk
141
142#ifndef ITK_MANUAL_INSTANTIATION
143# include "itkVTKImageExport.hxx"
144#endif
145
146#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
float * FloatSpacingCallback() override
double * DirectionCallback() override
const char * ScalarTypeCallback() override
SmartPointer< Self > Pointer
typename InputImageType::Pointer InputImagePointer
double * OriginCallback() override
static constexpr unsigned int InputImageDimension
int * DataExtentCallback() override
typename InputRegionType::IndexType InputIndexType
float * FloatOriginCallback() override
void SetInput(const InputImageType *)
void PropagateUpdateExtentCallback(int *) override
VTKImageExportBase Superclass
typename InputRegionType::SizeType InputSizeType
int * WholeExtentCallback() override
InputImageType * GetInput()
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
~VTKImageExport() override=default
void * BufferPointerCallback() override
int NumberOfComponentsCallback() override
typename InputImageType::RegionType InputRegionType
double * SpacingCallback() override
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....