ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkLevelSetDomainPartitionMeshBase.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkLevelSetDomainPartitionMeshBase_h
00019 #define __itkLevelSetDomainPartitionMeshBase_h
00020 
00021 #include "itkLevelSetDomainPartitionBase.h"
00022 #include <map>
00023 
00024 namespace itk
00025 {
00031 template< class TMesh >
00032 class LevelSetDomainPartitionMeshBase :
00033   public LevelSetDomainPartitionBase< TMesh >
00034 {
00035 public:
00036 
00037   typedef LevelSetDomainPartitionMeshBase       Self;
00038   typedef LevelSetDomainPartitionBase< TMesh >  Superclass;
00039   typedef SmartPointer< Self >                  Pointer;
00040   typedef SmartPointer< const Self >            ConstPointer;
00041 
00042   itkStaticConstMacro( PointDimension, unsigned int, TMesh::PointDimension);
00043 
00044   itkTypeMacro( LevelSetDomainPartitionMeshBase,
00045                 LevelSetDomainPartitionBase );
00046 
00047   typedef TMesh                                     MeshType;
00048   typedef typename MeshType::Pointer                MeshPointer;
00049   typedef typename MeshType::ConstPointer           MeshConstPointer;
00050   typedef typename MeshType::PointType              PointType;
00051   typedef typename MeshType::PointIdentifierType    PointIdentifierType;
00052 
00053   typedef typename MeshType::PointsContainerConstPointer  PointsContainerConstPointer;
00054   typedef typename MeshType::PointsContainerConstIterator PointsContainerConstIterator;
00055 
00056   typedef typename Superclass::IdentifierListType IdentifierListType;
00057 
00058   typedef std::map< PointIdentifierType, IdentifierListType > ListMeshType;
00059 
00060   itkSetObjectMacro( Mesh, MeshType );
00061 
00062 protected:
00063   LevelSetDomainPartitionMeshBase();
00064   virtual ~LevelSetDomainPartitionMeshBase();
00065 
00068   virtual void PopulateListDomain();
00069 
00072   void AllocateListDomain();
00073 
00074 private:
00075   LevelSetDomainPartitionMeshBase(const Self &); //purposely not implemented
00076   void operator=(const Self &); //purposely not implemented
00077 
00078   MeshPointer     m_Mesh;
00079   ListMeshType    m_ListDomain;
00080 };
00081 
00082 } //end namespace itk
00083 
00084 #ifndef ITK_MANUAL_INSTANTIATION
00085 #include "itkLevelSetDomainPartitionBase.hxx"
00086 #endif
00087 
00088 #endif
00089