28 #ifndef __vtkvmtkStencil_h 29 #define __vtkvmtkStencil_h 31 #include "vtkObject.h" 34 #include "vtkvmtkWin32Header.h" 42 vtkSetMacro(NumberOfComponents,vtkIdType);
43 vtkGetMacro(NumberOfComponents,vtkIdType);
45 double GetWeight(vtkIdType i) {
return this->Weights[i];};
46 void SetWeight(vtkIdType i,
double weight) {this->Weights[i] = weight;};
48 double GetWeight(vtkIdType i, vtkIdType component) {
return this->Weights[this->NumberOfComponents * i + component];};
49 void SetWeight(vtkIdType i, vtkIdType component,
double weight) {this->Weights[this->NumberOfComponents * i + component] = weight;};
53 void ScaleWeights(
double factor);
60 double GetCenterWeight(vtkIdType component) {
return this->CenterWeight[component];};
61 void SetCenterWeight(vtkIdType component,
double weightComponent) {this->CenterWeight[component] = weightComponent;};
67 virtual void Build() VTK_OVERRIDE = 0;
70 virtual
void DeepCopy(
vtkvmtkItem *src) VTK_OVERRIDE;
72 vtkSetMacro(WeightScaling,
int)
73 vtkGetMacro(WeightScaling,
int)
74 vtkBooleanMacro(WeightScaling,
int)
76 vtkSetMacro(NegateWeights,
int)
77 vtkGetMacro(NegateWeights,
int)
78 vtkBooleanMacro(NegateWeights,
int)
84 void ResizePointList(vtkIdType ptId,
int size);
86 void ChangeWeightSign();
88 vtkIdType NumberOfComponents;
void SetCenterWeight(double weight)
void SetCenterWeight(vtkIdType component, double weightComponent)
void SetWeight(vtkIdType i, double weight)
const double * GetCenterWeightTuple()
Base class for the construction of neighborhoods and stencil from a set of points.
double GetCenterWeight(vtkIdType component)
Apply a weighting matrix to a single neighborhood of a data set.
virtual void Build() VTK_OVERRIDE=0
double GetWeight(vtkIdType i)
void SetWeight(vtkIdType i, vtkIdType component, double weight)
double GetWeight(vtkIdType i, vtkIdType component)
vtkIdType GetNumberOfWeights()
Query the neighborhood surrounding the set point id in an data set item.