VMTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkvmtkStencil Class Referenceabstract

Apply a weighting matrix to a single neighborhood of a data set. More...

#include <vtkvmtkStencil.h>

Inheritance diagram for vtkvmtkStencil:
[legend]
Collaboration diagram for vtkvmtkStencil:
[legend]

Public Types

typedef vtkvmtkNeighborhood Superclass
 
- Public Types inherited from vtkvmtkNeighborhood
typedef vtkvmtkDataSetItem Superclass
 
- Public Types inherited from vtkvmtkDataSetItem
typedef vtkvmtkItem Superclass
 
- Public Types inherited from vtkvmtkItem
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkvmtkStencilNewInstance () const
 
virtual void SetNumberOfComponents (vtkIdType)
 
virtual vtkIdType GetNumberOfComponents ()
 
double GetWeight (vtkIdType i)
 
void SetWeight (vtkIdType i, double weight)
 
double GetWeight (vtkIdType i, vtkIdType component)
 
void SetWeight (vtkIdType i, vtkIdType component, double weight)
 
vtkIdType GetNumberOfWeights ()
 
void ScaleWeights (double factor)
 
double GetCenterWeight ()
 
void SetCenterWeight (double weight)
 
const double * GetCenterWeightTuple ()
 
double GetCenterWeight (vtkIdType component)
 
void SetCenterWeight (vtkIdType component, double weightComponent)
 
virtual void Build () VTK_OVERRIDE=0
 
virtual void DeepCopy (vtkvmtkItem *src) VTK_OVERRIDE
 
virtual void SetWeightScaling (int)
 
virtual int GetWeightScaling ()
 
virtual void WeightScalingOn ()
 
virtual void WeightScalingOff ()
 
virtual void SetNegateWeights (int)
 
virtual int GetNegateWeights ()
 
virtual void NegateWeightsOn ()
 
virtual void NegateWeightsOff ()
 
- Public Member Functions inherited from vtkvmtkNeighborhood
vtkvmtkNeighborhoodNewInstance () const
 
virtual bool GetIsBoundary ()
 
vtkIdType GetNumberOfPoints ()
 
vtkIdType GetPointId (vtkIdType i)
 
vtkIdType * GetPointer (vtkIdType i)
 
- Public Member Functions inherited from vtkvmtkDataSetItem
vtkvmtkDataSetItemNewInstance () const
 
void SetDataSet (vtkDataSet *dataSet)
 
vtkDataSet * GetDataSet ()
 
virtual void SetDataSetPointId (vtkIdType)
 
virtual vtkIdType GetDataSetPointId ()
 
virtual void SetReallocateOnBuild (int)
 
virtual int GetReallocateOnBuild ()
 
virtual void ReallocateOnBuildOn ()
 
virtual void ReallocateOnBuildOff ()
 
- Public Member Functions inherited from vtkvmtkItem
vtkvmtkItemNewInstance () const
 
virtual vtkIdType GetItemType ()=0
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkvmtkStencilSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkvmtkNeighborhood
static int IsTypeOf (const char *type)
 
static vtkvmtkNeighborhoodSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkvmtkDataSetItem
static int IsTypeOf (const char *type)
 
static vtkvmtkDataSetItemSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkvmtkItem
static int IsTypeOf (const char *type)
 
static vtkvmtkItemSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkvmtkStencil ()
 
 ~vtkvmtkStencil ()
 
void ResizePointList (vtkIdType ptId, int size)
 
void ChangeWeightSign ()
 
- Protected Member Functions inherited from vtkvmtkNeighborhood
 vtkvmtkNeighborhood ()
 
 ~vtkvmtkNeighborhood ()
 
void ResizePointList (vtkIdType ptId, int size)
 
- Protected Member Functions inherited from vtkvmtkDataSetItem
 vtkvmtkDataSetItem ()
 
 ~vtkvmtkDataSetItem ()
 
- Protected Member Functions inherited from vtkvmtkItem
 vtkvmtkItem ()
 
 ~vtkvmtkItem ()
 

Protected Attributes

vtkIdType NumberOfComponents
 
double * Weights
 
double * CenterWeight
 
int WeightScaling
 
int NegateWeights
 
- Protected Attributes inherited from vtkvmtkNeighborhood
vtkIdType NPoints
 
vtkIdType * PointIds
 
bool IsBoundary
 
- Protected Attributes inherited from vtkvmtkDataSetItem
vtkDataSet * DataSet
 
vtkIdType DataSetPointId
 
int ReallocateOnBuild
 

Detailed Description

Apply a weighting matrix to a single neighborhood of a data set.

Date
2006/04/06 16:46:44
Revision
1.5

..

Definition at line 36 of file vtkvmtkStencil.h.

Member Typedef Documentation

◆ Superclass

Definition at line 40 of file vtkvmtkStencil.h.

Constructor & Destructor Documentation

◆ vtkvmtkStencil()

vtkvmtkStencil::vtkvmtkStencil ( )
protected

◆ ~vtkvmtkStencil()

vtkvmtkStencil::~vtkvmtkStencil ( )
protected

Member Function Documentation

◆ IsTypeOf()

static int vtkvmtkStencil::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkvmtkStencil::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkvmtkStencil* vtkvmtkStencil::SafeDownCast ( vtkObjectBase *  o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkvmtkStencil::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkStencil* vtkvmtkStencil::NewInstance ( ) const

◆ SetNumberOfComponents()

virtual void vtkvmtkStencil::SetNumberOfComponents ( vtkIdType  )
virtual

◆ GetNumberOfComponents()

virtual vtkIdType vtkvmtkStencil::GetNumberOfComponents ( )
virtual

◆ GetWeight() [1/2]

double vtkvmtkStencil::GetWeight ( vtkIdType  i)
inline

Definition at line 45 of file vtkvmtkStencil.h.

45 {return this->Weights[i];};
double * Weights

◆ SetWeight() [1/2]

void vtkvmtkStencil::SetWeight ( vtkIdType  i,
double  weight 
)
inline

Definition at line 46 of file vtkvmtkStencil.h.

46 {this->Weights[i] = weight;};
double * Weights

◆ GetWeight() [2/2]

double vtkvmtkStencil::GetWeight ( vtkIdType  i,
vtkIdType  component 
)
inline

Definition at line 48 of file vtkvmtkStencil.h.

48 {return this->Weights[this->NumberOfComponents * i + component];};
vtkIdType NumberOfComponents
double * Weights

◆ SetWeight() [2/2]

void vtkvmtkStencil::SetWeight ( vtkIdType  i,
vtkIdType  component,
double  weight 
)
inline

Definition at line 49 of file vtkvmtkStencil.h.

49 {this->Weights[this->NumberOfComponents * i + component] = weight;};
vtkIdType NumberOfComponents
double * Weights

◆ GetNumberOfWeights()

vtkIdType vtkvmtkStencil::GetNumberOfWeights ( )
inline

Definition at line 51 of file vtkvmtkStencil.h.

51 {return this->NumberOfComponents * this->NPoints;};
vtkIdType NumberOfComponents

◆ ScaleWeights()

void vtkvmtkStencil::ScaleWeights ( double  factor)

◆ GetCenterWeight() [1/2]

double vtkvmtkStencil::GetCenterWeight ( )
inline

Definition at line 55 of file vtkvmtkStencil.h.

55 {return this->CenterWeight[0];};
double * CenterWeight

◆ SetCenterWeight() [1/2]

void vtkvmtkStencil::SetCenterWeight ( double  weight)
inline

Definition at line 56 of file vtkvmtkStencil.h.

56 {this->CenterWeight[0] = weight;};
double * CenterWeight

◆ GetCenterWeightTuple()

const double* vtkvmtkStencil::GetCenterWeightTuple ( )
inline

Definition at line 58 of file vtkvmtkStencil.h.

58 {return this->CenterWeight;};
double * CenterWeight

◆ GetCenterWeight() [2/2]

double vtkvmtkStencil::GetCenterWeight ( vtkIdType  component)
inline

Definition at line 60 of file vtkvmtkStencil.h.

60 {return this->CenterWeight[component];};
double * CenterWeight

◆ SetCenterWeight() [2/2]

void vtkvmtkStencil::SetCenterWeight ( vtkIdType  component,
double  weightComponent 
)
inline

Definition at line 61 of file vtkvmtkStencil.h.

61 {this->CenterWeight[component] = weightComponent;};
double * CenterWeight

◆ Build()

virtual void vtkvmtkStencil::Build ( )
pure virtual

◆ DeepCopy()

virtual void vtkvmtkStencil::DeepCopy ( vtkvmtkItem src)
virtual

Standard DeepCopy method.

Reimplemented from vtkvmtkNeighborhood.

◆ SetWeightScaling()

virtual void vtkvmtkStencil::SetWeightScaling ( int  )
virtual

◆ GetWeightScaling()

virtual int vtkvmtkStencil::GetWeightScaling ( )
virtual

◆ WeightScalingOn()

virtual void vtkvmtkStencil::WeightScalingOn ( )
virtual

◆ WeightScalingOff()

virtual void vtkvmtkStencil::WeightScalingOff ( )
virtual

◆ SetNegateWeights()

virtual void vtkvmtkStencil::SetNegateWeights ( int  )
virtual

◆ GetNegateWeights()

virtual int vtkvmtkStencil::GetNegateWeights ( )
virtual

◆ NegateWeightsOn()

virtual void vtkvmtkStencil::NegateWeightsOn ( )
virtual

◆ NegateWeightsOff()

virtual void vtkvmtkStencil::NegateWeightsOff ( )
virtual

◆ ResizePointList()

void vtkvmtkStencil::ResizePointList ( vtkIdType  ptId,
int  size 
)
protected

◆ ChangeWeightSign()

void vtkvmtkStencil::ChangeWeightSign ( )
protected

Member Data Documentation

◆ NumberOfComponents

vtkIdType vtkvmtkStencil::NumberOfComponents
protected

Definition at line 88 of file vtkvmtkStencil.h.

◆ Weights

double* vtkvmtkStencil::Weights
protected

Definition at line 89 of file vtkvmtkStencil.h.

◆ CenterWeight

double* vtkvmtkStencil::CenterWeight
protected

Definition at line 90 of file vtkvmtkStencil.h.

◆ WeightScaling

int vtkvmtkStencil::WeightScaling
protected

Definition at line 92 of file vtkvmtkStencil.h.

◆ NegateWeights

int vtkvmtkStencil::NegateWeights
protected

Definition at line 94 of file vtkvmtkStencil.h.


The documentation for this class was generated from the following file: