ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkSpatialObjectTreeContainer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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 #ifndef __itkSpatialObjectTreeContainer_h
19 #define __itkSpatialObjectTreeContainer_h
20 
21 #include "itkTreeContainer.h"
23 
24 namespace itk
25 {
26 template< unsigned int TDimension >
27 class SpatialObject;
28 
46 template< unsigned int TDimension >
48  public TreeContainer< itk::SpatialObject< TDimension > * >
49 {
50 public:
51 
60 
63 
65  itkNewMacro(Self);
66 
69 
71  bool SetRoot(const SpatialObjectPointer element);
72 
73  bool SetRoot(typename Superclass::TreeNodeType *node)
74  { return Superclass::SetRoot(node); }
75 
76 protected:
77 
80 };
81 } // namespace itk
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
84 #include "itkSpatialObjectTreeContainer.hxx"
85 #endif
86 
87 #endif
Light weight base class for most itk classes.
TreeIteratorBase< Self > IteratorType
bool SetRoot(typename Superclass::TreeNodeType *node)
virtual bool SetRoot(const TValue element)
SpatialObjectTreeContainer< TDimension > Self
Array class with size defined at construction time.
TreeNode< ValueType > TreeNodeType
TreeContainer< SpatialObjectPointer > Superclass
A tree container.
bool SetRoot(const SpatialObjectPointer element)
SpatialObjectTreeNode< TDimension > TreeNodeType
SpatialObject< TDimension > SpatialObjectType