ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkIntersectionOfConvexShapes.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 rtkIntersectionOfConvexShapes_h
20#define rtkIntersectionOfConvexShapes_h
21
22#include "RTKExport.h"
23#include "rtkConvexShape.h"
24#include "rtkMacro.h"
25
26namespace rtk
27{
28
38class RTK_EXPORT IntersectionOfConvexShapes : public ConvexShape
39{
40public:
46
48 static constexpr unsigned int Dimension = Superclass::Dimension;
50 using ConvexShapeVector = std::vector<ConvexShapePointer>;
55
57 itkNewMacro(Self);
58
60 itkOverrideGetNameOfClassMacro(IntersectionOfConvexShapes);
61
63 bool
64 IsInside(const PointType & point) const override;
65
67 bool
68 IsIntersectedByRay(const PointType & rayOrigin,
69 const VectorType & rayDirection,
70 ScalarType & infDist,
71 ScalarType & supDist) const override;
72
74 void
76 itkGetConstReferenceMacro(ConvexShapes, ConvexShapeVector);
77 virtual void
79
81 void
82 Rescale(const VectorType & r) override;
83
85 void
86 Translate(const VectorType & t) override;
87
89 void
90 Rotate(const RotationMatrixType & r) override;
91
93 InternalClone() const override;
94
95private:
97
99};
100
101} // end namespace rtk
102
103#endif
SmartPointer< Self > Pointer
Implements transparent reference counting.
itk::SmartPointer< Self > Pointer
itk::Point< ScalarType, Dimension > PointType
static constexpr unsigned int Dimension
itk::Vector< ScalarType, Dimension > VectorType
itk::Matrix< ScalarType, Dimension, Dimension > RotationMatrixType
std::vector< ConvexShapePointer > ConvexShapeVector
itk::LightObject::Pointer InternalClone() const override
virtual void SetConvexShapes(const ConvexShapeVector &_arg)
void Translate(const VectorType &t) override
void AddConvexShape(const ConvexShape *co)
itk::SmartPointer< const Self > ConstPointer
void Rescale(const VectorType &r) override
bool IsInside(const PointType &point) const override
Superclass::RotationMatrixType RotationMatrixType
bool IsIntersectedByRay(const PointType &rayOrigin, const VectorType &rayDirection, ScalarType &infDist, ScalarType &supDist) const override
void Rotate(const RotationMatrixType &r) override