RTK  1.4.0
Reconstruction Toolkit
rtkProjectionGeometry.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 rtkProjectionGeometry_h
20 #define rtkProjectionGeometry_h
21 
22 #include <itkImageBase.h>
23 
24 #include <vector>
25 
26 #include "rtkMacro.h"
27 
28 namespace rtk
29 {
30 
43 template< unsigned int TDimension = 3 >
45 {
46 public:
51 
53  itkNewMacro( Self );
54 
59 
61 
68  const std::vector<MatrixType> &GetMatrices() const{
69  return this->m_Matrices;
70  }
71 
73  virtual void Clear();
74 
75 protected:
77  virtual ~ProjectionGeometry() ITK_OVERRIDE {}
78 
79  void PrintSelf( std::ostream& os, itk::Indent indent ) const ITK_OVERRIDE;
80 
82  virtual void AddMatrix(const MatrixType &m){
83  this->m_Matrices.push_back(m);
84  this->Modified();
85  }
87 
88 private:
89  ProjectionGeometry(const Self&); //purposely not implemented
90  void operator=(const Self&); //purposely not implemented
91 
93  std::vector<MatrixType> m_Matrices;
94 };
95 }
96 
97 #include "rtkProjectionGeometry.hxx"
98 
99 #endif // rtkProjectionGeometry_h
ProjectionGeometry< TDimension > Self
itk::SmartPointer< const Self > ConstPointer
itk::ImageBase< TDimension >::SpacingType SpacingType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::ImageBase< TDimension >::PointType PointType
itk::Matrix< double, TDimension, TDimension+1 > MatrixType
A templated class holding a vector of M x (M+1) matrices.
std::vector< MatrixType > m_Matrices
void operator=(const Self &)
itk::ImageBase< TDimension >::SizeType SizeType
virtual ~ProjectionGeometry() override
itk::SmartPointer< Self > Pointer
const std::vector< MatrixType > & GetMatrices() const
virtual void AddMatrix(const MatrixType &m)
virtual void Clear()