ITK  6.0.0
Insight Toolkit
itkQuadEdgeMeshTraits.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 itkQuadEdgeMeshTraits_h
19#define itkQuadEdgeMeshTraits_h
20
21#include <set>
22#include "itkCellInterface.h"
24
25namespace itk
26{
43template <typename TPixel,
44 unsigned int VPointDimension,
45 typename TPData,
46 typename TDData,
47 typename TCoordinate = float,
48 typename TInterpolationWeight = float>
50{
51public:
52
55 using PixelType = TPixel;
56 using CellPixelType = TPixel;
57 using CoordinateType = TCoordinate;
58#ifndef ITK_FUTURE_LEGACY_REMOVE
59 using CoordRepType ITK_FUTURE_DEPRECATED(
60 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") = CoordinateType;
61#endif
62 using InterpolationWeightType = TInterpolationWeight;
63
64 static constexpr unsigned int PointDimension = VPointDimension;
65 static constexpr unsigned int MaxTopologicalDimension = VPointDimension;
66
69
70 using CellFeatureIdentifier = unsigned char; // made small in purpose
71
72 using UsingCellsContainer = std::set<CellIdentifier>;
73 using PointCellLinksContainer = std::set<CellIdentifier>;
74
76 using PrimalDataType = TPData;
77 using DualDataType = TDData;
79 // using QEType = QEPrimal;
80 using QEDual = typename QEPrimal::DualType;
81 // FOR LEO using QEType = typename QEPrimal::Superclass;
82 // FOR LEO using QEDual = typename QEPrimal::Dual;
85
89
93
95 using CellTraits = QuadEdgeMeshCellTraitsInfo<VPointDimension,
101 PointType,
104 QEPrimal>;
105
108
114
117};
118} // namespace itk
119
120#endif
An abstract interface for cells.
SelfAutoPointer CellAutoPointer
This class extends the QuadEdge by adding a reference to the Origin.
GeometricalQuadEdge< TFRef, TVRef, TDualData, TPrimalData, !PrimalDual > DualType
A wrapper of the STL "map" container.
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:54
Vector< ValueType, VPointDimension > VectorType
Definition: itkPoint.h:88
Wrapper around a itk::Point in order to add a reference to an entry in the edge ring.
Class holding the traits of the QuadEdgeMesh.
static constexpr unsigned int MaxTopologicalDimension
TInterpolationWeight InterpolationWeightType
typename QEPrimal::DualType QEDual
QuadEdgeMeshCellTraitsInfo< VPointDimension, CoordinateType, InterpolationWeightType, PointIdentifier, CellIdentifier, CellFeatureIdentifier, PointType, PointsContainer, UsingCellsContainer, QEPrimal > CellTraits
typename CellType::CellAutoPointer CellAutoPointer
MapContainer< PointIdentifier, PointType > PointsContainer
std::set< CellIdentifier > PointCellLinksContainer
typename QEPrimal::DualOriginRefType FaceRefType
typename QEPrimal::OriginRefType VertexRefType
itk::IdentifierType PointIdentifier
std::set< CellIdentifier > UsingCellsContainer
static constexpr unsigned int PointDimension
itk::IdentifierType CellIdentifier
typename PointType::VectorType VectorType
QuadEdgeMeshPoint< CoordinateType, VPointDimension, QEPrimal > PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType IdentifierType
Definition: itkIntTypes.h:90