ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpecialCoordinatesImageToVTKStructuredGridFilter.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 itkSpecialCoordinatesImageToVTKStructuredGridFilter_h
19#define itkSpecialCoordinatesImageToVTKStructuredGridFilter_h
20
21#include "itkProcessObject.h"
23#include "vtkStructuredGrid.h"
24#include "vtkSmartPointer.h"
25
26namespace itk
27{
28
35template <typename TInputImage>
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(SpecialCoordinatesImageToVTKStructuredGridFilter);
40
46
48 itkNewMacro(Self);
49
51 itkOverrideGetNameOfClassMacro(SpecialCoordinatesImageToVTKStructuredGridFilter);
52
53 using InputImageType = TInputImage;
54
55 using StructuredGridPointerType = vtkSmartPointer<vtkStructuredGrid>;
57
58 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
59
60
62 virtual void
63 SetInput(const InputImageType * image);
64 const InputImageType *
65 GetInput() const;
66
67 vtkStructuredGrid *
69 itkGetDecoratedOutputMacro(StructuredGrid, StructuredGridPointerType);
70
71protected:
74
79
80 virtual void
81 GenerateData() override;
82
83private:
84 vtkSmartPointer<vtkStructuredGrid> m_StructuredGrid;
85};
86
87} // end namespace itk
88
89#ifndef ITK_MANUAL_INSTANTIATION
90# include "itkSpecialCoordinatesImageToVTKStructuredGridFilter.hxx"
91#endif
92
93#endif
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
DataObject::Pointer DataObjectPointer
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Implements transparent reference counting.
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override
Make a DataObject of the correct type to used as the specified output.
virtual void SetInput(const InputImageType *image)
SimpleDataObjectDecorator< StructuredGridPointerType > DecoratedStructuredGridPointerType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....