ITK  6.0.0
Insight Toolkit
itkDefaultStaticMeshTraits.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 <typename TPixelType,
56  unsigned int VPointDimension = 3,
57  unsigned int VMaxTopologicalDimension = VPointDimension,
58  typename TCoordinate = float,
59  typename TInterpolationWeight = float,
60  typename TCellPixelType = TPixelType>
61 class ITK_TEMPLATE_EXPORT DefaultStaticMeshTraits
62 {
63 public:
66 
68  using PixelType = TPixelType;
69  using CellPixelType = TCellPixelType;
70  using CoordinateType = TCoordinate;
71 #ifndef ITK_FUTURE_LEGACY_REMOVE
72  using CoordRepType ITK_FUTURE_DEPRECATED(
73  "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") = CoordinateType;
74 #endif
75  using InterpolationWeightType = TInterpolationWeight;
76 
78  static constexpr unsigned int PointDimension = VPointDimension;
79  static constexpr unsigned int MaxTopologicalDimension = VMaxTopologicalDimension;
80 
84 
88 
93 
96 
100 
104 
107  using UsingCellsContainer = std::set<CellIdentifier>;
108 
112 
118 
122 
125  using PointCellLinksContainer = std::set<CellIdentifier>;
126 
130 
134 
138 };
139 } // end namespace itk
140 
141 #endif
itk::DefaultStaticMeshTraits
Definition: itkDefaultStaticMeshTraits.h:61
itk::DefaultStaticMeshTraits::CellTraits
itkMakeCellTraitsMacro CellTraits
Definition: itkDefaultStaticMeshTraits.h:111
itk::detail::VectorContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorContainer.h:51
itk::DefaultStaticMeshTraits::CellRawPointer
typename CellType::CellRawPointer CellRawPointer
Definition: itkDefaultStaticMeshTraits.h:116
itk::DefaultStaticMeshTraits::CellIdentifier
IdentifierType CellIdentifier
Definition: itkDefaultStaticMeshTraits.h:87
itkPoint.h
itk::DefaultStaticMeshTraits::PointCellLinksContainer
std::set< CellIdentifier > PointCellLinksContainer
Definition: itkDefaultStaticMeshTraits.h:125
itk::DefaultStaticMeshTraits::PixelType
TPixelType PixelType
Definition: itkDefaultStaticMeshTraits.h:68
itk::DefaultStaticMeshTraits::CellPixelType
TCellPixelType CellPixelType
Definition: itkDefaultStaticMeshTraits.h:69
itk::DefaultStaticMeshTraits::CellAutoPointer
typename CellType::CellAutoPointer CellAutoPointer
Definition: itkDefaultStaticMeshTraits.h:117
itk::DefaultStaticMeshTraits::CellFeatureIdentifier
IdentifierType CellFeatureIdentifier
Definition: itkDefaultStaticMeshTraits.h:92
itkMakeCellTraitsMacro
#define itkMakeCellTraitsMacro
Definition: itkCellInterface.h:557
itk::CellInterface::CellRawPointer
RawPointer CellRawPointer
Definition: itkCellInterface.h:140
itk::CellInterface::CellAutoPointer
SelfAutoPointer CellAutoPointer
Definition: itkCellInterface.h:138
itk::DefaultStaticMeshTraits::InterpolationWeightType
TInterpolationWeight InterpolationWeightType
Definition: itkDefaultStaticMeshTraits.h:75
itk::DefaultStaticMeshTraits::PointIdentifier
IdentifierType PointIdentifier
Definition: itkDefaultStaticMeshTraits.h:83
itkIntTypes.h
itk::DefaultStaticMeshTraits::UsingCellsContainer
std::set< CellIdentifier > UsingCellsContainer
Definition: itkDefaultStaticMeshTraits.h:107
itk::CellInterface
An abstract interface for cells.
Definition: itkCellInterface.h:97
itkVectorContainer.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::DefaultStaticMeshTraits::CoordinateType
TCoordinate CoordinateType
Definition: itkDefaultStaticMeshTraits.h:70
itkCellInterface.h
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::IdentifierType
SizeValueType IdentifierType
Definition: itkIntTypes.h:90