ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
Common
include
itkDefaultStaticMeshTraits.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 __itkDefaultStaticMeshTraits_h
19
#define __itkDefaultStaticMeshTraits_h
20
21
#include "
itkCellInterface.h
"
22
#include "
itkVectorContainer.h
"
23
#include "
itkPoint.h
"
24
#include "
itkIntTypes.h
"
25
#include <set>
26
27
namespace
itk
28
{
55
template
<
56
typename
TPixelType,
57
unsigned
int
VPointDimension = 3,
58
unsigned
int
VMaxTopologicalDimension = VPointDimension,
59
typename
TCoordRep = float,
60
typename
TInterpolationWeight = float,
61
typename
TCellPixelType = TPixelType
62
>
63
class
DefaultStaticMeshTraits
64
{
65
public
:
67
typedef
DefaultStaticMeshTraits
Self
;
68
70
typedef
TPixelType
PixelType
;
71
typedef
TCellPixelType
CellPixelType
;
72
typedef
TCoordRep
CoordRepType
;
73
typedef
TInterpolationWeight
InterpolationWeightType
;
74
76
itkStaticConstMacro(
PointDimension
,
unsigned
int
, VPointDimension);
77
itkStaticConstMacro(
MaxTopologicalDimension
,
unsigned
int
,
78
VMaxTopologicalDimension);
80
83
typedef
IdentifierType
PointIdentifier
;
84
87
typedef
IdentifierType
CellIdentifier
;
88
92
typedef
IdentifierType
CellFeatureIdentifier
;
93
95
typedef
Point< CoordRepType, VPointDimension >
PointType
;
96
99
typedef
Point< CoordRepType, VPointDimension >
PointHashType
;
100
103
typedef
VectorContainer< PointIdentifier, PointType >
PointsContainer
;
104
107
typedef
std::set< CellIdentifier >
UsingCellsContainer
;
108
111
typedef
itkMakeCellTraitsMacro
CellTraits
;
112
115
typedef
CellInterface< CellPixelType, CellTraits >
CellType
;
116
typedef
typename
CellType::CellRawPointer
CellRawPointer
;
117
typedef
typename
CellType::CellAutoPointer
CellAutoPointer
;
118
121
typedef
VectorContainer< CellIdentifier, CellType * >
CellsContainer
;
122
125
typedef
std::set< CellIdentifier >
PointCellLinksContainer
;
126
129
typedef
VectorContainer< PointIdentifier, PointCellLinksContainer >
130
CellLinksContainer
;
131
134
typedef
VectorContainer< PointIdentifier, PixelType >
PointDataContainer
;
135
138
typedef
VectorContainer< CellIdentifier, CellPixelType >
CellDataContainer
;
139
};
140
}
// end namespace itk
141
142
#endif
143
Generated on Tue Jul 10 2012 23:23:18 for ITK by
1.8.1