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

itkQuadEdgeMeshExtendedTraits.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshExtendedTraits.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-03 21:19:45 $
00007   Version:   $Revision: 1.2 $
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 
00018 #ifndef __itkQuadEdgeMeshExtendedTraits_h
00019 #define __itkQuadEdgeMeshExtendedTraits_h
00020 
00021 #include "itkQuadEdgeCellTraitsInfo.h"
00022 #include <itkMapContainer.h>
00023 #include <set>
00024 
00025 namespace itk
00026 {
00027 
00061 template< 
00062   typename TPixelType = float,
00063   unsigned int VPointDimension = 3,
00064   unsigned int VMaxTopologicalDimension = VPointDimension,
00065   typename TCoordRep = float,
00066   typename TInterpolationWeightType = float,
00067   typename TCellPixelType = TPixelType,
00068   typename TPData = bool,
00069   typename TDData = bool
00070  >
00071 class QuadEdgeMeshExtendedTraits
00072 {
00073 public:
00074   typedef QuadEdgeMeshExtendedTraits Self;
00075 
00077   typedef TCoordRep       CoordRepType;
00078   typedef TPixelType      PixelType;
00079   typedef TPData          PrimalDataType;
00080   typedef TDData          DualDataType;
00081   typedef TCellPixelType  CellPixelType;
00082 
00084   itkStaticConstMacro( PointDimension, unsigned int, VPointDimension );
00085   itkStaticConstMacro( MaxTopologicalDimension, unsigned int,
00086                         VPointDimension );
00088 
00089   typedef TInterpolationWeightType    InterpolationWeightType;
00090 
00093   typedef unsigned long PointIdentifier;
00094 
00097   typedef unsigned long CellIdentifier;
00098 
00102   typedef unsigned long CellFeatureIdentifier;
00103 
00106   typedef std::set< CellIdentifier > UsingCellsContainer;
00107 
00110   typedef std::set< CellIdentifier >                    PointCellLinksContainer;
00111 
00113   typedef GeometricalQuadEdge< 
00114     PointIdentifier, CellIdentifier,
00115     PrimalDataType, DualDataType >                      QEPrimal;
00116   typedef typename QEPrimal::DualType                   QEDual;
00117   typedef typename QEPrimal::OriginRefType              VertexRefType;
00118   typedef typename QEPrimal::DualOriginRefType          FaceRefType;
00119 
00123   typedef QuadEdgeMeshPoint< 
00124     CoordRepType, VPointDimension, QEPrimal >                 PointType;
00125 
00126   typedef Point< CoordRepType, VPointDimension >              PointHashType;
00127 
00130   typedef MapContainer< PointIdentifier, PointType >          PointsContainer;
00131 
00133   typedef QuadEdgeMeshCellTraitsInfo< 
00134     VPointDimension, CoordRepType,
00135     InterpolationWeightType, PointIdentifier,
00136     CellIdentifier,          CellFeatureIdentifier,
00137     PointType,               PointsContainer,
00138     UsingCellsContainer,     QEPrimal >                       CellTraits;
00139 
00141   typedef CellInterface< CellPixelType, CellTraits >          CellType;
00142   typedef typename CellType::CellAutoPointer                  CellAutoPointer;
00143 
00145   typedef MapContainer< PointIdentifier,
00146                              PointCellLinksContainer >        CellLinksContainer;
00147   typedef MapContainer< CellIdentifier, CellType* >           CellsContainer;
00148   typedef MapContainer< PointIdentifier, PixelType >          PointDataContainer;
00149   typedef MapContainer< CellIdentifier, CellPixelType >       CellDataContainer;
00150 
00152   typedef typename PointType::VectorType VectorType;
00153 };
00154 
00155 } // enamespace
00156 
00157 #endif
00158 
00159 // eof - $RCSfile: itkQuadEdgeMeshExtendedTraits.h,v $
00160 

Generated at Tue Sep 15 04:27:39 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000