Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkSpatialObjectTreeContainer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSpatialObjectTreeContainer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-07 14:34:17 $
00007   Version:   $Revision: 1.10 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkSpatialObjectTreeContainer_h
00018 #define __itkSpatialObjectTreeContainer_h
00019 
00020 #include "itkTreeContainer.h"
00021 #include "itkSpatialObject.h"
00022 #include "itkSpatialObjectTreeNode.h"
00023 
00024 namespace itk
00025 {
00026 
00027 template< unsigned int TDimension>  class SpatialObject;
00028 
00045 template <unsigned int TDimension>
00046 class ITK_EXPORT SpatialObjectTreeContainer : 
00047              public TreeContainer<itk::SpatialObject<TDimension>*>
00048 {
00049 
00050 public:
00051 
00053   typedef SpatialObject<TDimension>              SpatialObjectType;
00054   typedef SpatialObjectType*                     SpatialObjectPointer;
00055   typedef TreeContainer<SpatialObjectPointer>    Superclass;
00056   typedef SpatialObjectTreeContainer<TDimension> Self;
00057   typedef SmartPointer<Self>                     Pointer;
00058   typedef SmartPointer<const Self>               ConstPointer;
00059   typedef SpatialObjectTreeNode<TDimension>      TreeNodeType;
00060 
00062   typedef typename Superclass::IteratorType IteratorType;
00063 
00065   itkNewMacro(Self);
00066 
00068   itkTypeMacro(SpatialObjectTreeContainer, TreeContainer);
00069 
00071   bool SetRoot(const SpatialObjectPointer element);
00072   bool SetRoot(typename Superclass::TreeNodeType* node)
00073     {return Superclass::SetRoot(node);}
00075 
00076 protected:
00077   
00078   SpatialObjectTreeContainer(); 
00079   virtual ~SpatialObjectTreeContainer();
00080 };
00081 
00082 } // namespace itk
00083 
00084 
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkSpatialObjectTreeContainer.txx"
00087 #endif
00088 
00089 
00090 #endif
00091 

Generated at Tue Sep 15 05:01:56 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000