ITK  4.9.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 SpatialObjectTreeNode:public TreeNode< SpatialObject< TDimension > * >
35 {
36 public:
37 
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 
70 
72 #if !defined( ITK_WRAPPING_PARSER )
73  virtual ChildrenListType * GetChildren(unsigned int depth = 0,
74  char *name = ITK_NULLPTR) const ITK_OVERRIDE;
75 
76 #endif
77 
78 protected:
79 
83  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
85 
88 
89 private:
90 
91  SpatialObjectTreeNode(const Self &) ITK_DELETE_FUNCTION;
92  void operator=(const Self &) ITK_DELETE_FUNCTION;
93 };
94 
95 } // end namespace itk
96 
97 #ifndef ITK_MANUAL_INSTANTIATION
98 #include "itkSpatialObjectTreeNode.hxx"
99 #endif
100 
101 #endif
Light weight base class for most itk classes.
Represents a node in a tree.
Definition: itkTreeNode.h:43
TreeNode< SpatialObject< TDimension > * > Superclass
SpatialObjectTreeNode< TDimension > Self
virtual void SetData(SpatialObjectType *data)
SpatialObject< TDimension > SpatialObjectType
Superclass::ChildrenListType ChildrenListType
const TransformType * TransformConstPointer
TransformType::Pointer TransformPointer
void PrintSelf(std::ostream &os, Indent indent) const override
virtual ChildrenListType * GetChildren(unsigned int depth=0, char *name=nullptr) const override
TransformPointer m_NodeToParentNodeTransform
ScalableAffineTransform< double, TDimension > TransformType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
Affine transformation with a specified center of rotation.