ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkDefaultStaticMeshTraits_h 00019 #define __itkDefaultStaticMeshTraits_h 00020 00021 #include "itkCellInterface.h" 00022 #include "itkVectorContainer.h" 00023 #include "itkPoint.h" 00024 #include "itkIntTypes.h" 00025 #include <set> 00026 00027 namespace itk 00028 { 00055 template< 00056 typename TPixelType, 00057 unsigned int VPointDimension = 3, 00058 unsigned int VMaxTopologicalDimension = VPointDimension, 00059 typename TCoordRep = float, 00060 typename TInterpolationWeight = float, 00061 typename TCellPixelType = TPixelType 00062 > 00063 class DefaultStaticMeshTraits 00064 { 00065 public: 00067 typedef DefaultStaticMeshTraits Self; 00068 00070 typedef TPixelType PixelType; 00071 typedef TCellPixelType CellPixelType; 00072 typedef TCoordRep CoordRepType; 00073 typedef TInterpolationWeight InterpolationWeightType; 00074 00076 itkStaticConstMacro(PointDimension, unsigned int, VPointDimension); 00077 itkStaticConstMacro(MaxTopologicalDimension, unsigned int, 00078 VMaxTopologicalDimension); 00080 00083 typedef IdentifierType PointIdentifier; 00084 00087 typedef IdentifierType CellIdentifier; 00088 00092 typedef IdentifierType CellFeatureIdentifier; 00093 00095 typedef Point< CoordRepType, VPointDimension > PointType; 00096 00099 typedef Point< CoordRepType, VPointDimension > PointHashType; 00100 00103 typedef VectorContainer< PointIdentifier, PointType > PointsContainer; 00104 00107 typedef std::set< CellIdentifier > UsingCellsContainer; 00108 00111 typedef itkMakeCellTraitsMacro CellTraits; 00112 00115 typedef CellInterface< CellPixelType, CellTraits > CellType; 00116 typedef typename CellType::CellRawPointer CellRawPointer; 00117 typedef typename CellType::CellAutoPointer CellAutoPointer; 00118 00121 typedef VectorContainer< CellIdentifier, CellType * > CellsContainer; 00122 00125 typedef std::set< CellIdentifier > PointCellLinksContainer; 00126 00129 typedef VectorContainer< PointIdentifier, PointCellLinksContainer > 00130 CellLinksContainer; 00131 00134 typedef VectorContainer< PointIdentifier, PixelType > PointDataContainer; 00135 00138 typedef VectorContainer< CellIdentifier, CellPixelType > CellDataContainer; 00139 }; 00140 } // end namespace itk 00141 00142 #endif 00143