VMTK
Loading...
Searching...
No Matches
vtkvmtkEmptyStencil Class Reference

Create a stencil that does not apply any weighting to the neighborhoods of the data set. More...

#include <vtkvmtkEmptyStencil.h>

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

Public Types

typedef vtkvmtkStencil Superclass
Public Types inherited from vtkvmtkStencil
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)
vtkvmtkEmptyStencil * NewInstance () const
void Build () override
virtual vtkIdType GetItemType () override
Public Member Functions inherited from vtkvmtkStencil
vtkvmtkStencil * NewInstance () const
vtkIdType GetNumberOfWeights ()
void ScaleWeights (double factor)
const double * GetCenterWeightTuple ()
virtual void DeepCopy (vtkvmtkItem *src) override
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)
double GetCenterWeight ()
void SetCenterWeight (double weight)
double GetCenterWeight (vtkIdType component)
void SetCenterWeight (vtkIdType component, double weightComponent)
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
vtkvmtkNeighborhood * NewInstance () const
virtual bool GetIsBoundary ()
vtkIdType GetNumberOfPoints ()
vtkIdType GetPointId (vtkIdType i)
vtkIdType * GetPointer (vtkIdType i)
Public Member Functions inherited from vtkvmtkDataSetItem
vtkvmtkDataSetItem * NewInstance () 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
vtkvmtkItem * NewInstance () const

Static Public Member Functions

static vtkvmtkEmptyStencil * New ()
static int IsTypeOf (const char *type)
static vtkvmtkEmptyStencil * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkvmtkStencil
static int IsTypeOf (const char *type)
static vtkvmtkStencil * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkvmtkNeighborhood
static int IsTypeOf (const char *type)
static vtkvmtkNeighborhood * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkvmtkDataSetItem
static int IsTypeOf (const char *type)
static vtkvmtkDataSetItem * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkvmtkItem
static int IsTypeOf (const char *type)
static vtkvmtkItem * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkEmptyStencil ()
 ~vtkvmtkEmptyStencil ()
Protected Member Functions inherited from vtkvmtkStencil
 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 ()

Additional Inherited Members

Protected Attributes inherited from vtkvmtkStencil
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

Create a stencil that does not apply any weighting to the neighborhoods of the data set.

vtkvmtkEmptyStencil is the trivial vtkvmtkStencil implementation: Build() frees any existing point ids, weights, and center weight and leaves the stencil with zero points (unless ReallocateOnBuild is off and the stencil was already built, in which case Build() is a no-op). It is used as a placeholder item type (VTK_VMTK_EMPTY_STENCIL) for points that should not have real finite-difference/finite-element weights computed.

See also
vtkvmtkStencil, vtkvmtkEmptyNeighborhood

Definition at line 41 of file vtkvmtkEmptyStencil.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkvmtkEmptyStencil()

vtkvmtkEmptyStencil::vtkvmtkEmptyStencil ( )
inlineprotected

Definition at line 58 of file vtkvmtkEmptyStencil.h.

58{};

◆ ~vtkvmtkEmptyStencil()

vtkvmtkEmptyStencil::~vtkvmtkEmptyStencil ( )
inlineprotected

Definition at line 59 of file vtkvmtkEmptyStencil.h.

59{};

Member Function Documentation

◆ New()

vtkvmtkEmptyStencil * vtkvmtkEmptyStencil::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkvmtkStencil.

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkEmptyStencil::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkvmtkStencil.

◆ NewInstance()

vtkvmtkEmptyStencil * vtkvmtkEmptyStencil::NewInstance ( ) const

◆ Build()

void vtkvmtkEmptyStencil::Build ( )
overridevirtual

Build the stencil.

Implements vtkvmtkStencil.

Definition at line 28 of file vtkvmtkEmptyStencil.cxx.

29 {
30 if (this->PointIds && !this->ReallocateOnBuild)
31 {
32 return;
33 }
34
35 this->NPoints = 0;
36
37 if (this->PointIds!=NULL)
38 {
39 delete[] this->PointIds;
40 this->PointIds = NULL;
41 }
42 if (this->Weights!=NULL)
43 {
44 delete[] this->Weights;
45 this->Weights = NULL;
46 }
47 if (this->CenterWeight!=NULL)
48 {
49 delete[] this->CenterWeight;
50 this->CenterWeight = NULL;
51 }
52 }
double * CenterWeight

◆ GetItemType()

virtual vtkIdType vtkvmtkEmptyStencil::GetItemType ( )
inlineoverridevirtual

Get the item type identifier, VTK_VMTK_EMPTY_STENCIL.

Implements vtkvmtkItem.

Definition at line 55 of file vtkvmtkEmptyStencil.h.

@ VTK_VMTK_EMPTY_STENCIL

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