VMTK
vtkvmtkStencils.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: VMTK
4  Module: $RCSfile: vtkvmtkStencils.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 __vtkvmtkStencils_h
29 #define __vtkvmtkStencils_h
30 
31 #include "vtkObject.h"
32 #include "vtkvmtkConstants.h"
33 #include "vtkvmtkDataSetItems.h"
34 #include "vtkvmtkStencil.h"
35 #include "vtkDataSet.h"
36 //#include "vtkvmtkDifferentialGeometryWin32Header.h"
37 #include "vtkvmtkWin32Header.h"
38 
39 class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkStencils : public vtkvmtkDataSetItems
40 {
41 public:
42 
43  static vtkvmtkStencils* New();
45 
58 
60  vtkvmtkStencil* GetStencil(vtkIdType ptId) {return (vtkvmtkStencil*)this->Array[ptId];};
61 
62  void SetNumberOfStencils(vtkIdType numberOfStencils) { this->SetNumberOfItems(numberOfStencils);};
63  vtkIdType GetNumberOfStencils() {return this->GetNumberOfItems();};
64 
65  void AllocateStencil(vtkIdType i, vtkIdType stencilType) {this->AllocateItem(i,stencilType);};
66 
67  vtkSetMacro(WeightScaling,int)
68  vtkGetMacro(WeightScaling,int)
69  vtkBooleanMacro(WeightScaling,int)
70 
71  vtkSetMacro(NegateWeights,int)
72  vtkGetMacro(NegateWeights,int)
73  vtkBooleanMacro(NegateWeights,int)
74 
75 protected:
78 
79  virtual vtkvmtkItem* InstantiateNewItem(int itemType) VTK_OVERRIDE;
80 
82 
84 
85 private:
86  vtkvmtkStencils(const vtkvmtkStencils&); // Not implemented.
87  void operator=(const vtkvmtkStencils&); // Not implemented.
88 };
89 
90 #endif
91 
void SetStencilTypeToUmbrellaStencil()
void SetStencilTypeToEmptyStencil()
void SetStencilTypeToFVFELaplaceBeltramiStencil()
void AllocateStencil(vtkIdType i, vtkIdType stencilType)
Control allocation and memory footprint of item instances.
Definition: vtkvmtkItems.h:37
Create an empty, umbrella, area weighted umbrella, finite-element LP, or finite-volume finite-element...
void SetStencilTypeToGradientStencil()
void SetNumberOfItems(vtkIdType numberOfItems)
Definition: vtkvmtkItems.h:52
void SetStencilTypeToAreaWeightedUmbrellaStencil()
Base class for the construction of neighborhoods and stencil from a set of points.
Definition: vtkvmtkItem.h:35
Apply a weighting matrix to a single neighborhood of a data set.
void SetNumberOfStencils(vtkIdType numberOfStencils)
void SetStencilTypeToFELaplaceBeltramiStencil()
Create a collection of data set items, one for every point within the data set.
vtkvmtkStencil * GetStencil(vtkIdType ptId)
void AllocateItem(vtkIdType i, vtkIdType itemType)
virtual vtkvmtkItem * InstantiateNewItem(int itemType)=0
virtual void SetItemType(int)
vtkIdType GetNumberOfItems()
Definition: vtkvmtkItems.h:53
vtkIdType GetNumberOfStencils()