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 BinaryTreeBase : public DataObject
37{
38public:
39
42 typedef DataObject Superclass;
44 typedef SmartPointer< const Self > ConstPointer;
45
47 itkTypeMacro( BinaryTreeBase, DataObject );
48
50 typedef TListSample SampleType;
51
53 typedef typename SampleType::MeasurementVectorType MeasurementVectorType;
54 typedef typename SampleType::MeasurementVectorSizeType MeasurementVectorSizeType;
55 typedef typename SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType;
56
58 itkSetObjectMacro( Sample, SampleType );
59 itkGetConstObjectMacro( Sample, SampleType );
60
63
66
69
71 virtual void GenerateTree( void ) = 0;
72
73protected:
74
77
79 ~BinaryTreeBase() override {}
80
82 void PrintSelf( std::ostream & os, Indent indent ) const override;
83
84private:
85
86 BinaryTreeBase( const Self & ); // purposely not implemented
87 void operator=( const Self & ); // purposely not implemented
88
90 typename SampleType::Pointer m_Sample;
91
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
virtual void GenerateTree(void)=0
SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
void operator=(const Self &)
MeasurementVectorSizeType GetDataDimension(void) const
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< Self > Pointer
SampleType::MeasurementVectorType MeasurementVectorType
SmartPointer< const Self > ConstPointer
SampleType::MeasurementVectorSizeType MeasurementVectorSizeType
TotalAbsoluteFrequencyType GetActualNumberOfDataPoints(void) const
BinaryTreeBase(const Self &)
SampleType::Pointer m_Sample
TotalAbsoluteFrequencyType GetNumberOfDataPoints(void) const


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo