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: 2007-05-18 14:31:12 $
00007   Version:   $Revision: 1.8 $
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);
00050 
00052   itkTypeMacro(QuadraticTriangleCell, CellInterface);
00053 
00055   typedef VertexCell< TCellInterface >          VertexType;
00056   typedef typename VertexType::SelfAutoPointer  VertexAutoPointer;
00057 
00059   typedef QuadraticEdgeCell< TCellInterface >   EdgeType;
00060   typedef typename EdgeType::SelfAutoPointer    EdgeAutoPointer;
00061 
00063   itkStaticConstMacro(NumberOfPoints, unsigned int, 6);
00064   itkStaticConstMacro(NumberOfVertices, unsigned int, 3);
00065   itkStaticConstMacro(NumberOfEdges, unsigned int, 3);
00066   itkStaticConstMacro(CellDimension, unsigned int, 2);
00068 
00070   virtual CellGeometry GetType(void) const 
00071     {return Superclass::QUADRATIC_TRIANGLE_CELL;}
00072   virtual void MakeCopy( CellAutoPointer & ) const;
00073   virtual unsigned int GetDimension(void) const;
00074   virtual unsigned int GetNumberOfPoints(void) const;
00075   virtual CellFeatureCount GetNumberOfBoundaryFeatures(int dimension) const;
00076   virtual bool GetBoundaryFeature(int dimension, CellFeatureIdentifier, CellAutoPointer &);
00077   virtual void SetPointIds(PointIdConstIterator first);
00078   virtual void SetPointIds(PointIdConstIterator first,
00079                            PointIdConstIterator last);
00080   virtual void SetPointId(int localId, PointIdentifier);
00081   virtual PointIdIterator      PointIdsBegin(void);
00082   virtual PointIdConstIterator PointIdsBegin(void) const;
00083   virtual PointIdIterator      PointIdsEnd(void);
00084   virtual PointIdConstIterator PointIdsEnd(void) const; 
00086 
00088   virtual CellFeatureCount GetNumberOfVertices(void) const;
00089   virtual CellFeatureCount GetNumberOfEdges(void) const;
00090   virtual bool  GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00091   virtual bool  GetEdge(CellFeatureIdentifier, EdgeAutoPointer &);
00093 
00095   itkCellVisitMacro(Superclass::QUADRATIC_TRIANGLE_CELL);
00096 
00097 
00101   virtual void EvaluateShapeFunctions( 
00102                           const ParametricCoordArrayType & parametricCoordinates,
00103                                 ShapeFunctionsArrayType  & weights) const;
00104 
00105 
00106 
00107  public:
00108   QuadraticTriangleCell()
00109     {
00110     for (unsigned int i = 0; i < itkGetStaticConstMacro(NumberOfPoints); i++)
00111       {
00112       m_PointIds[i] = NumericTraits<unsigned long>::max();
00113       }
00114     }
00115   ~QuadraticTriangleCell() {}
00116 
00117  protected:
00119   PointIdentifier m_PointIds[NumberOfPoints];
00120 
00121  private:
00122   QuadraticTriangleCell(const Self&); //purposely not implemented
00123   void operator=(const Self&); //purposely not implemented
00124 };
00125 
00126 } // end namespace itk
00127 
00128 #ifndef ITK_MANUAL_INSTANTIATION
00129 #include "itkQuadraticTriangleCell.txx"
00130 #endif
00131 
00132 #endif
00133 

Generated at Sat Feb 28 13:21:48 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000