ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
SpatialObjects
include
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
"
22
#include "
itkSpatialObjectTreeNode.h
"
23
24
namespace
itk
25
{
26
template
<
unsigned
int
TDimension >
27
class
SpatialObject;
28
46
template
<
unsigned
int
TDimension >
47
class
ITK_EXPORT
SpatialObjectTreeContainer
:
48
public
TreeContainer
< itk::SpatialObject< TDimension > * >
49
{
50
public
:
51
53
typedef
SpatialObject< TDimension >
SpatialObjectType
;
54
typedef
SpatialObjectType
*
SpatialObjectPointer
;
55
typedef
TreeContainer< SpatialObjectPointer >
Superclass
;
56
typedef
SpatialObjectTreeContainer< TDimension >
Self
;
57
typedef
SmartPointer< Self >
Pointer
;
58
typedef
SmartPointer< const Self >
ConstPointer
;
59
typedef
SpatialObjectTreeNode< TDimension >
TreeNodeType
;
60
62
typedef
typename
Superclass::IteratorType
IteratorType
;
63
65
itkNewMacro(
Self
);
66
68
itkTypeMacro(
SpatialObjectTreeContainer
,
TreeContainer
);
69
71
bool
SetRoot(
const
SpatialObjectPointer
element);
72
73
bool
SetRoot(
typename
Superclass::TreeNodeType *node)
74
{
return
Superclass::SetRoot(node); }
75
76
protected
:
77
78
SpatialObjectTreeContainer
();
79
virtual
~
SpatialObjectTreeContainer
();
80
};
81
}
// namespace itk
82
83
#ifndef ITK_MANUAL_INSTANTIATION
84
#include "itkSpatialObjectTreeContainer.hxx"
85
#endif
86
87
#endif
88
Generated on Mon May 13 2013 01:09:02 for ITK by
1.8.3.1