VMTK
vtkvmtkNeighborhoods.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: VMTK
4  Module: $RCSfile: vtkvmtkNeighborhoods.h,v $
5  Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
28 #ifndef __vtkvmtkNeighborhoods_h
29 #define __vtkvmtkNeighborhoods_h
30 
31 #include "vtkObject.h"
32 #include "vtkvmtkConstants.h"
33 #include "vtkvmtkDataSetItems.h"
34 #include "vtkvmtkNeighborhood.h"
35 #include "vtkDataSet.h"
36 //#include "vtkvmtkDifferentialGeometryWin32Header.h"
37 #include "vtkvmtkWin32Header.h"
38 
39 class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkNeighborhoods : public vtkvmtkDataSetItems
40 {
41 public:
42 
43  static vtkvmtkNeighborhoods* New();
45 
56 
58  vtkvmtkNeighborhood* GetNeighborhood(vtkIdType ptId) {return (vtkvmtkNeighborhood*)this->Array[ptId];};
59 
60  void SetNumberOfNeighborhoods(vtkIdType numberOfNeighborhoods) { this->SetNumberOfItems(numberOfNeighborhoods);};
61  vtkIdType GetNumberOfNeighborhoods() {return this->GetNumberOfItems();};
62 
63  void AllocateNeighborhood(vtkIdType i, vtkIdType neighborhoodType) {this->AllocateItem(i,neighborhoodType);};
64 
65 protected:
68 
69  virtual vtkvmtkItem* InstantiateNewItem(int itemType) VTK_OVERRIDE;
70 
71 private:
72  vtkvmtkNeighborhoods(const vtkvmtkNeighborhoods&); // Not implemented.
73  void operator=(const vtkvmtkNeighborhoods&); // Not implemented.
74 };
75 
76 #endif
77 
void SetNieghborhoodTypeToEmptyNeighborhood()
void SetNeighborhoodTypeToPolyDataManifoldNeighborhood()
void AllocateNeighborhood(vtkIdType i, vtkIdType neighborhoodType)
void SetNumberOfNeighborhoods(vtkIdType numberOfNeighborhoods)
void SetNeighborhoodTypeToPolyDataNeighborhood()
void SetNumberOfItems(vtkIdType numberOfItems)
Definition: vtkvmtkItems.h:52
void SetNeighborhoodTypeToPolyDataManifoldExtendedNeighborhood()
vtkIdType GetNumberOfNeighborhoods()
Base class for the construction of neighborhoods and stencil from a set of points.
Definition: vtkvmtkItem.h:35
Create a collection of data set items, one for every point within the data set.
vtkvmtkNeighborhood * GetNeighborhood(vtkIdType ptId)
void SetNeighborhoodTypeToUnstructuredGridNeighborhood()
void AllocateItem(vtkIdType i, vtkIdType itemType)
virtual vtkvmtkItem * InstantiateNewItem(int itemType)=0
virtual void SetItemType(int)
Create an empty, polydata, polydata manifold, polydata manifold extended, or unstructured grid neighb...
Query the neighborhood surrounding the set point id in an data set item.
vtkIdType GetNumberOfItems()
Definition: vtkvmtkItems.h:53