ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkGeometricPhantom.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 rtkGeometricPhantom_h
20#define rtkGeometricPhantom_h
21
22#include "RTKExport.h"
23#include "rtkConvexShape.h"
24
25namespace rtk
26{
37class RTK_EXPORT GeometricPhantom : public itk::DataObject
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(GeometricPhantom);
41
47
50 using ConvexShapeVector = std::vector<ConvexShapePointer>;
55
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(GeometricPhantom);
62
64 virtual void
65 Rescale(const VectorType & r);
66
68 virtual void
70
72 virtual void
74
76 itkGetConstReferenceMacro(ConvexShapes, ConvexShapeVector);
77
79 void
81
84 void
85 AddClipPlane(const VectorType & dir, const ScalarType & pos);
86
87protected:
88 GeometricPhantom() = default;
89 ~GeometricPhantom() override = default;
90
91private:
93 std::vector<VectorType> m_PlaneDirections;
94 std::vector<ScalarType> m_PlanePositions;
95};
96
97} // namespace rtk
98#endif // rtkGeometricPhantom_h
Base class for all data objects in ITK.
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
itk::Matrix< ScalarType, Dimension, Dimension > RotationMatrixType
itk::SmartPointer< Self > Pointer
std::vector< ScalarType > m_PlanePositions
virtual void Translate(const VectorType &t)
virtual void Rotate(const RotationMatrixType &r)
ConvexShapeVector m_ConvexShapes
std::vector< ConvexShapePointer > ConvexShapeVector
ConvexShape::Pointer ConvexShapePointer
ConvexShape::PointType PointType
virtual void Rescale(const VectorType &r)
ConvexShape::ScalarType ScalarType
GeometricPhantom()=default
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
itk::SmartPointer< const Self > ConstPointer
ConvexShape::RotationMatrixType RotationMatrixType
~GeometricPhantom() override=default
void AddConvexShape(const ConvexShape *co)
ConvexShape::VectorType VectorType
std::vector< VectorType > m_PlaneDirections