VMTK
Loading...
Searching...
No Matches
vtkvmtkItem Class Referenceabstract

Serves as the base class for constructing neighborhoods and stencils from a set of points. More...

#include <vtkvmtkItem.h>

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

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkItem * NewInstance () const
virtual vtkIdType GetItemType ()=0
virtual void DeepCopy (vtkvmtkItem *src)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkvmtkItem * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkItem ()
 ~vtkvmtkItem ()

Detailed Description

Serves as the base class for constructing neighborhoods and stencils from a set of points.

vtkvmtkItem is the abstract root of vmtk's differential-geometry "item" hierarchy (see vtkvmtkDataSetItem, vtkvmtkNeighborhood, vtkvmtkStencil): a lightweight, individually reference-counted object representing one per-point piece of local data (a topological neighborhood, a finite-difference/finite-element stencil, etc.), meant to be held in bulk by a matching vtkvmtkItems collection. GetItemType() identifies the concrete item type so that collections can instantiate the right subclass, and DeepCopy() is the standard mechanism for copying one item's data into another of the same type.

See also
vtkvmtkItems, vtkvmtkDataSetItem, vtkvmtkNeighborhood

Definition at line 41 of file vtkvmtkItem.h.

Member Typedef Documentation

◆ Superclass

typedef vtkObject vtkvmtkItem::Superclass

Definition at line 45 of file vtkvmtkItem.h.

Constructor & Destructor Documentation

◆ vtkvmtkItem()

vtkvmtkItem::vtkvmtkItem ( )
inlineprotected

Definition at line 61 of file vtkvmtkItem.h.

61{};

◆ ~vtkvmtkItem()

vtkvmtkItem::~vtkvmtkItem ( )
inlineprotected

Definition at line 62 of file vtkvmtkItem.h.

62{};

Member Function Documentation

◆ IsTypeOf()

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

◆ IsA()

◆ SafeDownCast()

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

◆ NewInstanceInternal()

◆ NewInstance()

vtkvmtkItem * vtkvmtkItem::NewInstance ( ) const

◆ GetItemType()

virtual vtkIdType vtkvmtkItem::GetItemType ( )
pure virtual

◆ DeepCopy()

void vtkvmtkItem::DeepCopy ( vtkvmtkItem * src)
virtual

Standard DeepCopy method. Since this object contains no reference to other objects, there is no ShallowCopy.

Reimplemented in vtkvmtkDataSetItem, vtkvmtkNeighborhood, and vtkvmtkStencil.

Definition at line 27 of file vtkvmtkItem.cxx.

28 {
29 if (src==NULL)
30 {
31 vtkErrorMacro(<<"Cannot copy null item");
32 return;
33 }
34 }

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