go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageMaskSpatialObject2.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
17 /*=========================================================================
18 
19  Program: Insight Segmentation & Registration Toolkit
20  Module: $RCSfile$
21  Language: C++
22  Date: $Date: 2008-05-28 10:45:42 +0200 (Wed, 28 May 2008) $
23  Version: $Revision: 1636 $
24 
25  Copyright (c) Insight Software Consortium. All rights reserved.
26  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27 
28  This software is distributed WITHOUT ANY WARRANTY; without even
29  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30  PURPOSE. See the above copyright notices for more information.
31 
32 =========================================================================*/
33 
34 #ifndef __itkImageMaskSpatialObject2_h
35 #define __itkImageMaskSpatialObject2_h
36 
37 #include "itkImageSpatialObject2.h"
38 #include "itkImageSliceConstIteratorWithIndex.h"
39 
40 namespace itk
41 {
42 
52 template < unsigned int TDimension = 3 >
54  : public ImageSpatialObject2< TDimension, unsigned char >
55 {
56 
57 public:
58 
61  typedef SmartPointer< Self > Pointer;
62  typedef SmartPointer< const Self > ConstPointer;
63 
65  typedef typename Superclass::PixelType PixelType;
66  typedef typename Superclass::ImageType ImageType;
68  typedef typename Superclass::IndexType IndexType;
69  typedef typename Superclass::SizeType SizeType;
72  typedef typename Superclass::PointType PointType;
74 
75  typedef itk::ImageSliceConstIteratorWithIndex< ImageType >
77 
79  itkNewMacro( Self );
80 
83 
85  bool IsInside( const PointType & point,
86  unsigned int depth, char *name) const;
87 
91  virtual bool IsInside( const PointType & point) const;
92 
100 
102  bool ComputeLocalBoundingBox() const;
103 
108  IndexType & index, SizeType & size ) const;
109 
110 protected:
111  ImageMaskSpatialObject2(const Self&); //purposely not implemented
112  void operator=(const Self&); //purposely not implemented
113 
115  virtual ~ImageMaskSpatialObject2();
116 
117  void PrintSelf( std::ostream& os, Indent indent ) const;
118 
119 };
120 
121 } // end of namespace itk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkImageMaskSpatialObject2.txx"
125 #endif
126 
127 #endif //__itkImageMaskSpatialObject2_h
128 


Generated on 21-03-2014 for elastix by doxygen 1.8.1.2 elastix logo