ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetDomainPartitionMesh.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 itkLevelSetDomainPartitionMesh_h
19 #define itkLevelSetDomainPartitionMesh_h
20 
22 #include <map>
23 
24 namespace itk
25 {
31 template< typename TMesh >
32 class ITK_TEMPLATE_EXPORT LevelSetDomainPartitionMesh :
33  public LevelSetDomainPartitionBase< TMesh >
34 {
35 public:
36  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetDomainPartitionMesh);
37 
42 
43  static constexpr unsigned int PointDimension = TMesh::PointDimension;
44 
45  itkTypeMacro( LevelSetDomainPartitionMesh,
47 
48  using MeshType = TMesh;
49  using MeshPointer = typename MeshType::Pointer;
50  using MeshConstPointer = typename MeshType::ConstPointer;
51  using PointType = typename MeshType::PointType;
52  using PointIdentifierType = typename MeshType::PointIdentifierType;
53 
54  using PointsContainerConstPointer = typename MeshType::PointsContainerConstPointer;
55  using PointsContainerConstIterator = typename MeshType::PointsContainerConstIterator;
56 
57  using IdentifierListType = typename Superclass::IdentifierListType;
58 
59  using ListMeshType = std::map< PointIdentifierType, IdentifierListType >;
60 
61  itkSetObjectMacro( Mesh, MeshType );
62 
63 protected:
64  LevelSetDomainPartitionMesh() = default;
65  virtual ~LevelSetDomainPartitionMesh() = default;
66 
69  virtual void PopulateListDomain();
70 
73  void AllocateListDomain();
74 
75 private:
78 };
79 
80 } //end namespace itk
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
83 #include "itkLevelSetDomainPartitionMesh.hxx"
84 #endif
85 
86 #endif
Light weight base class for most itk classes.
std::map< PointIdentifierType, IdentifierListType > ListMeshType
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:108
Helper class used to partition domain and efficiently compute overlap.
typename MeshType::PointIdentifierType PointIdentifierType
typename MeshType::ConstPointer MeshConstPointer
typename Superclass::IdentifierListType IdentifierListType
Helper class used to partition domain and efficiently compute overlap.
typename MeshType::PointsContainerConstIterator PointsContainerConstIterator
typename MeshType::PointsContainerConstPointer PointsContainerConstPointer