RTK  2.0.1
Reconstruction Toolkit
rtkRayConvexIntersectionImageFilter.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  * 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 
19 #ifndef rtkRayConvexIntersectionImageFilter_h
20 #define rtkRayConvexIntersectionImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
23 #include "rtkConfiguration.h"
25 #include "rtkConvexShape.h"
26 
27 namespace rtk
28 {
29 
39 template <class TInputImage, class TOutputImage>
41  public itk::InPlaceImageFilter<TInputImage,TOutputImage>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(RayConvexIntersectionImageFilter);
45 
51 
53  using OutputImageRegionType = typename TOutputImage::RegionType;
59 
61  itkNewMacro(Self);
62 
65 
67  itkGetModifiableObjectMacro(ConvexShape, ConvexShape);
68  itkSetObjectMacro(ConvexShape, ConvexShape);
70 
72  itkGetConstObjectMacro(Geometry, GeometryType);
73  itkSetConstObjectMacro(Geometry, GeometryType);
75 
76 protected:
78  ~RayConvexIntersectionImageFilter() override = default;
79 
82  void BeforeThreadedGenerateData() override;
83 
85 #if ITK_VERSION_MAJOR<5
86  void ThreadedGenerateData( const OutputImageRegionType& outputRegionForThread,
87  ThreadIdType threadId ) override;
88 #else
89  void DynamicThreadedGenerateData( const OutputImageRegionType& outputRegionForThread ) override;
90 #endif
91 
92 
93 private:
96 };
97 
98 } // end namespace rtk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "rtkRayConvexIntersectionImageFilter.hxx"
102 #endif
103 
104 #endif
typename GeometryType::ConstPointer GeometryConstPointer
itk::SmartPointer< Self > Pointer
itk::Vector< ScalarType, Dimension > PointType
Projection geometry for a source and a 2-D flat panel.
typename TOutputImage::RegionType OutputImageRegionType
~RayConvexIntersectionImageFilter() override=default
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
unsigned int ThreadIdType
Base class for a 3D convex shape.