ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDrawConvexImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
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
19#ifndef rtkDrawConvexImageFilter_h
20#define rtkDrawConvexImageFilter_h
21
22
23#include "rtkConvexShape.h"
24#include "rtkMacro.h"
26
27namespace rtk
28{
29
40
41template <class TInputImage, class TOutputImage>
42class ITK_TEMPLATE_EXPORT DrawConvexImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(DrawConvexImageFilter);
46
52
54 using OutputImageRegionType = typename TOutputImage::RegionType;
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(DrawConvexImageFilter);
65
67 itkGetModifiableObjectMacro(ConvexShape, ConvexShape);
68 itkSetObjectMacro(ConvexShape, ConvexShape);
69
70protected:
72 ~DrawConvexImageFilter() override = default;
73
76 void
78
80 void
81 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
82
83private:
85};
86
87
88} // end namespace rtk
89
90#ifndef ITK_MANUAL_INSTANTIATION
91# include "rtkDrawConvexImageFilter.hxx"
92#endif
93
94#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
Base class for a 3D convex shape.
itk::SmartPointer< Self > Pointer
itk::Point< ScalarType, Dimension > PointType
itk::Vector< ScalarType, Dimension > VectorType
~DrawConvexImageFilter() override=default
ConvexShape::Pointer ConvexShapePointer
ConvexShape::VectorType VectorType
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
typename TOutputImage::RegionType OutputImageRegionType
itk::SmartPointer< const Self > ConstPointer
void BeforeThreadedGenerateData() override
itk::SmartPointer< Self > Pointer
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
ConvexShape::ScalarType ScalarType