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

itkQuadraticTriangleCell.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadraticTriangleCell.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/12/11 20:27:47 $
00007   Version:   $Revision: 1.7 $
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 __itkQuadraticTriangleCell_h
00018 #define __itkQuadraticTriangleCell_h
00019 
00020 #include "itkCellInterface.h"
00021 #include "itkQuadraticEdgeCell.h"
00022 #include "itkQuadraticTriangleCellTopology.h"
00023 
00024 namespace itk
00025 {
00026 
00042 template < typename TCellInterface >
00043 class QuadraticTriangleCell: public TCellInterface, private QuadraticTriangleCellTopology
00044 {
00045 public:
00047   itkCellCommonTypedefs(QuadraticTriangleCell);
00048   itkCellInheritedTypedefs(TCellInterface);
00049 
00051   itkTypeMacro(QuadraticTriangleCell, CellInterface);
00052   
00054   typedef VertexCell< TCellInterface >          VertexType;
00055   typedef typename VertexType::SelfAutoPointer  VertexAutoPointer;
00056   
00058   typedef QuadraticEdgeCell< TCellInterface >   EdgeType;
00059   typedef typename EdgeType::SelfAutoPointer    EdgeAutoPointer;
00060     
00062   itkStaticConstMacro(NumberOfPoints, unsigned int, 6);
00063   itkStaticConstMacro(NumberOfVertices, unsigned int, 3);
00064   itkStaticConstMacro(NumberOfEdges, unsigned int, 3);
00065   itkStaticConstMacro(CellDimension, unsigned int, 2);
00066   
00068   virtual CellGeometry GetType(void) const 
00069     {return Superclass::QUADRATIC_TRIANGLE_CELL;}
00070   virtual void MakeCopy( CellAutoPointer & ) const;
00071   virtual unsigned int GetDimension(void) const;
00072   virtual unsigned int GetNumberOfPoints(void) const;
00073   virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00074   virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &);
00075   virtual void SetPointIds(PointIdConstIterator first);
00076   virtual void SetPointIds(PointIdConstIterator first,
00077                            PointIdConstIterator last);
00078   virtual void SetPointId(int localId, PointIdentifier);
00079   virtual PointIdIterator      PointIdsBegin(void);
00080   virtual PointIdConstIterator PointIdsBegin(void) const;
00081   virtual PointIdIterator      PointIdsEnd(void);
00082   virtual PointIdConstIterator PointIdsEnd(void) const; 
00083   
00085   virtual CellFeatureCount GetNumberOfVertices(void) const;
00086   virtual CellFeatureCount GetNumberOfEdges(void) const;
00087   virtual bool  GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00088   virtual bool  GetEdge(CellFeatureIdentifier, EdgeAutoPointer &);
00089   
00091   itkCellVisitMacro(Superclass::QUADRATIC_TRIANGLE_CELL);
00092 
00093 
00097   virtual void EvaluateShapeFunctions( 
00098                           const ParametricCoordArrayType & parametricCoordinates,
00099                                 ShapeFunctionsArrayType  & weights) const;
00100 
00101 
00102 
00103  public:
00104   QuadraticTriangleCell() {}
00105   ~QuadraticTriangleCell() {}
00106 
00107  protected:
00109   PointIdentifier m_PointIds[NumberOfPoints];
00110 
00111  private:
00112   QuadraticTriangleCell(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 };
00115 
00116 } // end namespace itk
00117 
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkQuadraticTriangleCell.txx"
00120 #endif
00121 
00122 #endif

Generated at Wed May 24 23:53:27 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000