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  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __itkBinaryTreeBase_h
15 #define __itkBinaryTreeBase_h
16 
17 #include "itkDataObject.h"
18 
19 namespace itk
20 {
21 
31 template< class TListSample >
32 class BinaryTreeBase : public DataObject
33 {
34 public:
35 
38  typedef DataObject Superclass;
39  typedef SmartPointer< Self > Pointer;
40  typedef SmartPointer< const Self > ConstPointer;
41 
43  itkTypeMacro( BinaryTreeBase, DataObject );
44 
46  typedef TListSample SampleType;
47 
49  typedef typename SampleType::MeasurementVectorType MeasurementVectorType;
50  typedef typename SampleType::MeasurementVectorSizeType MeasurementVectorSizeType;
51  typedef typename SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType;
52 
54  itkSetObjectMacro( Sample, SampleType );
55  itkGetConstObjectMacro( Sample, SampleType );
56 
59 
62 
65 
67  virtual void GenerateTree( void ) = 0;
68 
69 protected:
70 
73 
75  virtual ~BinaryTreeBase() {}
76 
78  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
79 
80 private:
81 
82  BinaryTreeBase( const Self & ); // purposely not implemented
83  void operator=( const Self & ); // purposely not implemented
84 
86  typename SampleType::Pointer m_Sample;
87 
88 };
89 
90 } // end namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 #include "itkBinaryTreeBase.hxx"
94 #endif
95 
96 #endif // end #ifndef __itkBinaryTreeBase_h
virtual void GenerateTree(void)=0
SmartPointer< const Self > ConstPointer
SampleType::MeasurementVectorSizeType MeasurementVectorSizeType
void operator=(const Self &)
TotalAbsoluteFrequencyType GetActualNumberOfDataPoints(void) const
SampleType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
SampleType::Pointer m_Sample
SmartPointer< Self > Pointer
MeasurementVectorSizeType GetDataDimension(void) const
TotalAbsoluteFrequencyType GetNumberOfDataPoints(void) const
virtual void PrintSelf(std::ostream &os, Indent indent) const
SampleType::MeasurementVectorType MeasurementVectorType


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo