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

itkVertexCell.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVertexCell.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/05/18 16:53:48 $
00007   Version:   $Revision: 1.55 $
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 __itkVertexCell_h
00018 #define __itkVertexCell_h
00019 
00020 #include "itkCellInterface.h"
00021 #include "itkNumericTraits.h"
00022 
00023 namespace itk
00024 {
00025 
00041 template < typename TCellInterface >
00042 class ITK_EXPORT VertexCell: public TCellInterface
00043 {
00044 public:
00046   itkCellCommonTypedefs(VertexCell);
00047   itkCellInheritedTypedefs(TCellInterface);
00049 
00051   itkTypeMacro(VertexCell, CellInterface);
00052 
00054   itkStaticConstMacro(NumberOfPoints, unsigned int, 1);
00055   itkStaticConstMacro(CellDimension, unsigned int, 0);
00057 
00059   virtual CellGeometry GetType(void) const 
00060     {return Superclass::VERTEX_CELL;}
00061   virtual void MakeCopy( CellAutoPointer & ) const;
00062   virtual unsigned int GetDimension(void) const;
00063   virtual unsigned int GetNumberOfPoints(void) const;
00064   virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00065   virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, 
00066                                                          CellAutoPointer &);
00067   virtual void SetPointIds(PointIdConstIterator first);
00068   virtual void SetPointIds(PointIdConstIterator first,
00069                            PointIdConstIterator last);
00070   virtual void SetPointId(int localId, PointIdentifier);
00071   virtual PointIdIterator      PointIdsBegin(void);
00072   virtual PointIdConstIterator PointIdsBegin(void) const;
00073   virtual PointIdIterator      PointIdsEnd(void);
00074   virtual PointIdConstIterator PointIdsEnd(void) const; 
00076 
00078   virtual void SetPointId(PointIdentifier);
00079   virtual PointIdentifier GetPointId(void);
00081 
00083   itkCellVisitMacro(Superclass::VERTEX_CELL);
00084 
00086   virtual bool EvaluatePosition(CoordRepType*,
00087                                 PointsContainer* ,
00088                                 CoordRepType*,
00089                                 CoordRepType [],
00090                                 double *,
00091                                 InterpolationWeightType*);
00092 public:
00093   VertexCell()
00094     {
00095     for (unsigned int i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++)
00096       {
00097       m_PointIds[i] = NumericTraits<unsigned long>::max();
00098       }
00099     }
00100   ~VertexCell() {}
00102 
00103 protected:
00107   PointIdentifier m_PointIds[NumberOfPoints];
00108 
00109 private:
00110   VertexCell(const Self&); //purposely not implemented
00111   void operator=(const Self&); //purposely not implemented
00112 };
00113 
00114 } // end namespace itk
00115 
00116 #ifndef ITK_MANUAL_INSTANTIATION
00117 #include "itkVertexCell.txx"
00118 #endif
00119 
00120 #endif
00121 

Generated at Tue Jul 29 23:40:51 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000