go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkBinaryTreeBase.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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#ifndef itkBinaryTreeBase_h
19#define itkBinaryTreeBase_h
20
21#include "itkDataObject.h"
22
23namespace itk
24{
25
35template <class TListSample>
36class ITK_TEMPLATE_EXPORT BinaryTreeBase : public DataObject
37{
38public:
40
43 using Superclass = DataObject;
44 using Pointer = SmartPointer<Self>;
45 using ConstPointer = SmartPointer<const Self>;
46
48 itkTypeMacro(BinaryTreeBase, DataObject);
49
51 using SampleType = TListSample;
52
54 using MeasurementVectorType = typename SampleType::MeasurementVectorType;
55 using MeasurementVectorSizeType = typename SampleType::MeasurementVectorSizeType;
56 using TotalAbsoluteFrequencyType = typename SampleType::TotalAbsoluteFrequencyType;
57
59 itkSetObjectMacro(Sample, SampleType);
60 itkGetConstObjectMacro(Sample, SampleType);
61
65
69
73
75 virtual void
77
78protected:
81
83 ~BinaryTreeBase() override = default;
84
86 void
87 PrintSelf(std::ostream & os, Indent indent) const override;
88
89private:
91 typename SampleType::Pointer m_Sample;
92};
93
94} // end namespace itk
95
96#ifndef ITK_MANUAL_INSTANTIATION
97# include "itkBinaryTreeBase.hxx"
98#endif
99
100#endif // end #ifndef itkBinaryTreeBase_h
SmartPointer< const Self > ConstPointer
MeasurementVectorSizeType GetDataDimension() const
TotalAbsoluteFrequencyType GetNumberOfDataPoints() const
~BinaryTreeBase() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void GenerateTree()=0
typename SampleType::MeasurementVectorSizeType MeasurementVectorSizeType
typename SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
typename SampleType::MeasurementVectorType MeasurementVectorType
SampleType::Pointer m_Sample
TotalAbsoluteFrequencyType GetActualNumberOfDataPoints() const
ITK_DISALLOW_COPY_AND_MOVE(BinaryTreeBase)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo