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

Create an empty neighborhood instance. More...

#include <vtkvmtkEmptyNeighborhood.h>

Inheritance diagram for vtkvmtkEmptyNeighborhood:
[legend]
Collaboration diagram for vtkvmtkEmptyNeighborhood:
[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)
vtkvmtkEmptyNeighborhood * NewInstance () const
virtual vtkIdType GetItemType () override
void Build () override
Public Member Functions inherited from vtkvmtkNeighborhood
vtkvmtkNeighborhood * NewInstance () const
virtual bool GetIsBoundary ()
vtkIdType GetNumberOfPoints ()
vtkIdType GetPointId (vtkIdType i)
vtkIdType * GetPointer (vtkIdType i)
virtual void DeepCopy (vtkvmtkItem *src) override
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 vtkvmtkEmptyNeighborhood * New ()
static int IsTypeOf (const char *type)
static vtkvmtkEmptyNeighborhood * 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
 vtkvmtkEmptyNeighborhood ()
 ~vtkvmtkEmptyNeighborhood ()
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 vtkvmtkNeighborhood
vtkIdType NPoints
vtkIdType * PointIds
bool IsBoundary
Protected Attributes inherited from vtkvmtkDataSetItem
vtkDataSet * DataSet
vtkIdType DataSetPointId
int ReallocateOnBuild

Detailed Description

Create an empty neighborhood instance.

vtkvmtkEmptyNeighborhood is the trivial vtkvmtkNeighborhood implementation: Build() always results in zero points (NPoints = 0, PointIds freed). It is used as a placeholder item type (VTK_VMTK_EMPTY_NEIGHBORHOOD), e.g. by vtkvmtkNeighborhoods, for points that should not have a real neighborhood computed.

See also
vtkvmtkNeighborhood, vtkvmtkNeighborhoods

Definition at line 40 of file vtkvmtkEmptyNeighborhood.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkvmtkEmptyNeighborhood()

vtkvmtkEmptyNeighborhood::vtkvmtkEmptyNeighborhood ( )
inlineprotected

Definition at line 57 of file vtkvmtkEmptyNeighborhood.h.

57{};

◆ ~vtkvmtkEmptyNeighborhood()

vtkvmtkEmptyNeighborhood::~vtkvmtkEmptyNeighborhood ( )
inlineprotected

Definition at line 58 of file vtkvmtkEmptyNeighborhood.h.

58{};

Member Function Documentation

◆ New()

vtkvmtkEmptyNeighborhood * vtkvmtkEmptyNeighborhood::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkvmtkNeighborhood.

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkEmptyNeighborhood::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkvmtkNeighborhood.

◆ NewInstance()

vtkvmtkEmptyNeighborhood * vtkvmtkEmptyNeighborhood::NewInstance ( ) const

◆ GetItemType()

virtual vtkIdType vtkvmtkEmptyNeighborhood::GetItemType ( )
inlineoverridevirtual

Get the item type identifier, VTK_VMTK_EMPTY_NEIGHBORHOOD.

Implements vtkvmtkItem.

Definition at line 49 of file vtkvmtkEmptyNeighborhood.h.

@ VTK_VMTK_EMPTY_NEIGHBORHOOD

◆ Build()

void vtkvmtkEmptyNeighborhood::Build ( )
overridevirtual

Build the stencil.

Implements vtkvmtkNeighborhood.

Definition at line 28 of file vtkvmtkEmptyNeighborhood.cxx.

29 {
30 this->NPoints = 0;
31
32 if (this->PointIds!=NULL)
33 {
34 delete[] this->PointIds;
35 this->PointIds = NULL;
36 }
37 }

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