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: 2005/07/26 17:45:58 $
00007   Version:   $Revision: 1.52 $
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 
00022 namespace itk
00023 {
00024 
00040 template < typename TCellInterface >
00041 class ITK_EXPORT VertexCell: public TCellInterface
00042 {
00043 public:
00045   itkCellCommonTypedefs(VertexCell);
00046   itkCellInheritedTypedefs(TCellInterface);
00047 
00049   itkTypeMacro(VertexCell, CellInterface);
00050  
00052   itkStaticConstMacro(NumberOfPoints, unsigned int, 1);
00053   itkStaticConstMacro(CellDimension, unsigned int, 0);
00054   
00056   virtual CellGeometry GetType(void) const 
00057     {return Superclass::VERTEX_CELL;}
00058   virtual void MakeCopy( CellAutoPointer & ) const;
00059   virtual unsigned int GetDimension(void) const;
00060   virtual unsigned int GetNumberOfPoints(void) const;
00061   virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00062   virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &);
00063   virtual void SetPointIds(PointIdConstIterator first);
00064   virtual void SetPointIds(PointIdConstIterator first,
00065                            PointIdConstIterator last);
00066   virtual void SetPointId(int localId, PointIdentifier);
00067   virtual PointIdIterator      PointIdsBegin(void);
00068   virtual PointIdConstIterator PointIdsBegin(void) const;
00069   virtual PointIdIterator      PointIdsEnd(void);
00070   virtual PointIdConstIterator PointIdsEnd(void) const; 
00071     
00073   virtual void SetPointId(PointIdentifier);
00074   virtual PointIdentifier GetPointId(void);
00075   
00077   itkCellVisitMacro(Superclass::VERTEX_CELL);
00078 
00080   virtual bool EvaluatePosition(CoordRepType*,
00081                                 PointsContainer* ,
00082                                 CoordRepType*,
00083                                 CoordRepType [],
00084                                 double *,
00085                                 InterpolationWeightType*);
00086 public:
00087   VertexCell() {}
00088   ~VertexCell() {}
00089 
00090 protected:
00094   PointIdentifier m_PointIds[NumberOfPoints];
00095 
00096  private:
00097   VertexCell(const Self&); //purposely not implemented
00098   void operator=(const Self&); //purposely not implemented
00099 };
00100 
00101 } // end namespace itk
00102 
00103 #ifndef ITK_MANUAL_INSTANTIATION
00104 #include "itkVertexCell.txx"
00105 #endif
00106 
00107 #endif

Generated at Thu May 25 00:15:24 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000