VMTK
Loading...
Searching...
No Matches
vtkvmtkStencils.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
30
31#ifndef __vtkvmtkStencils_h
32#define __vtkvmtkStencils_h
33
34#include "vtkObject.h"
35#include "vtkvmtkConstants.h"
36#include "vtkvmtkDataSetItems.h"
37#include "vtkvmtkStencil.h"
38#include "vtkDataSet.h"
39//#include "vtkvmtkDifferentialGeometryWin32Header.h"
40#include "vtkvmtkWin32Header.h"
41
42class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkStencils : public vtkvmtkDataSetItems
43{
44public:
45
48
55
61
67
73
79
85
89 vtkvmtkStencil* GetStencil(vtkIdType ptId) {return (vtkvmtkStencil*)this->Array[ptId];};
90
92
95 void SetNumberOfStencils(vtkIdType numberOfStencils) { this->SetNumberOfItems(numberOfStencils);};
96 vtkIdType GetNumberOfStencils() {return this->GetNumberOfItems();};
98
104 void AllocateStencil(vtkIdType i, vtkIdType stencilType) {this->AllocateItem(i,stencilType);};
105
107
111 vtkSetMacro(WeightScaling,int)
112 vtkGetMacro(WeightScaling,int)
113 vtkBooleanMacro(WeightScaling,int)
115
117
122 vtkSetMacro(NegateWeights,int)
123 vtkGetMacro(NegateWeights,int)
124 vtkBooleanMacro(NegateWeights,int)
126
127protected:
130
131 virtual vtkvmtkItem* InstantiateNewItem(int itemType) override;
132
134
136
137private:
138 vtkvmtkStencils(const vtkvmtkStencils&); // Not implemented.
139 void operator=(const vtkvmtkStencils&); // Not implemented.
140};
141
142#endif
143
Serves as the base class for constructing neighborhoods and stencils from a set of points.
Definition vtkvmtkItem.h:42
virtual vtkvmtkItem * InstantiateNewItem(int itemType)=0
void AllocateItem(vtkIdType i, vtkIdType itemType)
void SetNumberOfItems(vtkIdType numberOfItems)
virtual void SetItemType(int)
vtkIdType GetNumberOfItems()
vtkvmtkItem ** Array
Serves as an abstract base for a weighting scheme applied to a single point's neighborhood of a data ...
void SetStencilTypeToFELaplaceBeltramiStencil()
void AllocateStencil(vtkIdType i, vtkIdType stencilType)
void SetStencilTypeToUmbrellaStencil()
void SetStencilTypeToFVFELaplaceBeltramiStencil()
void SetStencilTypeToGradientStencil()
vtkvmtkStencil * GetStencil(vtkIdType ptId)
void SetStencilTypeToEmptyStencil()
void SetStencilTypeToAreaWeightedUmbrellaStencil()
void SetNumberOfStencils(vtkIdType numberOfStencils)
static vtkvmtkStencils * New()
vtkIdType GetNumberOfStencils()
@ VTK_VMTK_AREA_WEIGHTED_UMBRELLA_STENCIL
@ VTK_VMTK_EMPTY_STENCIL
@ VTK_VMTK_FE_LAPLACE_BELTRAMI_STENCIL
@ VTK_VMTK_FVFE_LAPLACE_BELTRAMI_STENCIL
@ VTK_VMTK_GRADIENT_STENCIL
@ VTK_VMTK_UMBRELLA_STENCIL