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 
23 namespace itk
24 {
25 
35 template< class TListSample >
36 class BinaryTreeBase : public DataObject
37 {
38 public:
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 
62  TotalAbsoluteFrequencyType GetNumberOfDataPoints( void ) const;
63 
65  TotalAbsoluteFrequencyType GetActualNumberOfDataPoints( void ) const;
66 
68  MeasurementVectorSizeType GetDataDimension( void ) const;
69 
71  virtual void GenerateTree( void ) = 0;
72 
73 protected:
74 
77 
79  virtual ~BinaryTreeBase() {}
80 
82  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
83 
84 private:
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
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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo