ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkSpatialObjectTreeNode.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 __itkSpatialObjectTreeNode_h
19 #define __itkSpatialObjectTreeNode_h
20 
21 #include "itkTreeNode.h"
22 #include "itkSpatialObject.h"
23 
24 namespace itk
25 {
26 template< unsigned int TDimension >
27 class SpatialObject;
28 
33 template< unsigned int TDimension >
34 class ITK_EXPORT SpatialObjectTreeNode:public TreeNode< SpatialObject< TDimension > * >
35 {
36 public:
37 
47  typedef typename Superclass::ChildrenListType ChildrenListType;
48 
50  itkNewMacro(Self);
51 
53  itkTypeMacro(SpatialObjectTreeNode, TreeNode);
54 
56  virtual void SetData(SpatialObjectType *data);
57 
59  itkSetObjectMacro(NodeToParentNodeTransform, TransformType);
60  itkGetConstReferenceObjectMacro(NodeToParentNodeTransform, TransformType);
62 
64  itkSetObjectMacro(NodeToWorldTransform, TransformType);
65  itkGetConstReferenceObjectMacro(NodeToWorldTransform, TransformType);
67 
69  void ComputeNodeToWorldTransform();
70 
72 #if !defined( CABLE_CONFIGURATION )
73  virtual ChildrenListType * GetChildren(unsigned int depth = 0,
74  char *name = NULL) const;
75 
76 #endif
77 
78 protected:
79 
83  void PrintSelf(std::ostream & os, Indent indent) const;
85 
88 
89 private:
90 
91  SpatialObjectTreeNode(const Self &); //purposely not implemented
92  void operator=(const Self &); //purposely not implemented
93 };
94 
95 } // end namespace itk
96 
97 #ifndef ITK_MANUAL_INSTANTIATION
98 #include "itkSpatialObjectTreeNode.hxx"
99 #endif
100 
101 #endif
102