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

itkLabelObjectLine.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLabelObjectLine.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-07-07 17:47:10 $
00007   Version:   $Revision: 1.4 $
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 __itkLabelObjectLine_h
00018 #define __itkLabelObjectLine_h
00019 
00020 #include "itkIndex.h"
00021 #include "itkIndent.h"
00022 
00023 namespace itk
00024 {
00025 
00040 template < unsigned int VImageDimension >
00041 class LabelObjectLine
00042 {
00043 public:
00044   itkStaticConstMacro(ImageDimension, unsigned int, VImageDimension);
00045 
00046   typedef Index< VImageDimension > IndexType;
00047   typedef unsigned long            LengthType;
00048 
00049   LabelObjectLine() {};
00050   virtual ~LabelObjectLine() {};
00051   LabelObjectLine( const IndexType & idx, const LengthType & length );
00052 
00056   void SetIndex( const IndexType & idx );
00057   const IndexType & GetIndex() const;
00059 
00063   void SetLength( const LengthType length );
00064   const LengthType & GetLength() const;
00066 
00070   bool HasIndex( const IndexType idx ) const;
00071   bool IsNextIndex( const IndexType & idx ) const;
00073 
00075   void Print(std::ostream& os, Indent indent=0) const;
00076 
00077 protected:
00082   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00083   virtual void PrintHeader(std::ostream& os, Indent indent) const;
00084   virtual void PrintTrailer(std::ostream& os, Indent indent) const;
00086 
00087 private:
00088   IndexType  m_Index;
00089   LengthType m_Length;
00090 };
00091 
00092 } // end namespace itk
00093 
00094 #ifndef ITK_MANUAL_INSTANTIATION
00095 #include "itkLabelObjectLine.txx"
00096 #endif
00097 
00098 #endif
00099 

Generated at Fri Apr 16 18:53:53 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000