ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
Common
include
itkDefaultDynamicMeshTraits.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
#ifndef __itkDefaultDynamicMeshTraits_h
19
#define __itkDefaultDynamicMeshTraits_h
20
21
#include "
itkCellInterface.h
"
22
#include "
itkMapContainer.h
"
23
#include "
itkPoint.h
"
24
#include "
itkIntTypes.h
"
25
#include <set>
26
27
namespace
itk
28
{
57
template
<
58
typename
TPixelType,
59
unsigned
int
VPointDimension = 3,
60
unsigned
int
VMaxTopologicalDimension = VPointDimension,
61
typename
TCoordRep = float,
62
typename
TInterpolationWeight = float,
63
typename
TCellPixelType = TPixelType
64
>
65
class
DefaultDynamicMeshTraits
66
{
67
public
:
69
typedef
DefaultDynamicMeshTraits
Self
;
70
72
typedef
TPixelType
PixelType
;
73
typedef
TCellPixelType
CellPixelType
;
74
typedef
TCoordRep
CoordRepType
;
75
typedef
TInterpolationWeight
InterpolationWeightType
;
76
78
itkStaticConstMacro(
PointDimension
,
unsigned
int
, VPointDimension);
79
itkStaticConstMacro(
MaxTopologicalDimension
,
unsigned
int
,
80
VMaxTopologicalDimension);
82
85
typedef
IdentifierType
PointIdentifier
;
86
89
typedef
IdentifierType
CellIdentifier
;
90
94
typedef
IdentifierType
CellFeatureIdentifier
;
95
97
typedef
Point< CoordRepType, VPointDimension >
PointType
;
98
101
typedef
Point< CoordRepType, VPointDimension >
PointHashType
;
102
105
typedef
MapContainer< PointIdentifier, PointType >
PointsContainer
;
106
109
typedef
std::set< CellIdentifier >
UsingCellsContainer
;
110
113
typedef
itkMakeCellTraitsMacro
CellTraits
;
114
117
typedef
CellInterface< CellPixelType, CellTraits >
CellType
;
118
typedef
typename
CellType::CellAutoPointer
CellAutoPointer
;
119
122
typedef
MapContainer< CellIdentifier, CellType * >
CellsContainer
;
123
126
typedef
std::set< CellIdentifier >
PointCellLinksContainer
;
127
130
typedef
MapContainer
<
131
PointIdentifier
,
PointCellLinksContainer
>
CellLinksContainer
;
132
135
typedef
MapContainer< PointIdentifier, PixelType >
PointDataContainer
;
136
139
typedef
MapContainer
<
140
CellIdentifier
,
CellPixelType
>
CellDataContainer
;
141
};
142
}
// end namespace itk
143
144
#endif
145
Generated on Sun Dec 9 2012 00:55:22 for ITK by
1.8.2