VMTK
Loading...
Searching...
No Matches
vtkvmtkNeighborhoods.cxx
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkNeighborhoods.cxx,v $
5 Language: C++
6 Date: $Date: 2005/11/15 17:39:25 $
7 Version: $Revision: 1.3 $
8
9 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
10 See LICENSE file for details.
11
12 Portions of this code are covered under the VTK copyright.
13 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
23
24#include "vtkObjectFactory.h"
25#include "vtkIdList.h"
26#include "vtkCell.h"
32
33
35
37 {
38 vtkvmtkNeighborhood* newItem;
39
40 switch(itemType)
41 {
44 break;
47 break;
50 break;
53 break;
56 break;
57 default:
58 vtkErrorMacro(<<"Invalid neighborhood type");
59 return NULL;
60 }
61
63
64 newItem->Register(this);
65 newItem->Delete();
66
67 return newItem;
68 }
virtual void SetReallocateOnBuild(int)
static vtkvmtkEmptyNeighborhood * New()
Serves as the base class for constructing neighborhoods and stencils from a set of points.
Definition vtkvmtkItem.h:42
Query the neighborhood surrounding the set point id in an data set item.
Create an empty, polydata, polydata manifold, polydata manifold extended, or unstructured grid neighb...
virtual vtkvmtkItem * InstantiateNewItem(int itemType) override
static vtkvmtkPolyDataManifoldExtendedNeighborhood * New()
static vtkvmtkPolyDataManifoldNeighborhood * New()
static vtkvmtkPolyDataNeighborhood * New()
static vtkvmtkUnstructuredGridNeighborhood * New()
@ VTK_VMTK_EMPTY_NEIGHBORHOOD
@ VTK_VMTK_POLYDATA_NEIGHBORHOOD
@ VTK_VMTK_POLYDATA_MANIFOLD_EXTENDED_NEIGHBORHOOD
@ VTK_VMTK_UNSTRUCTUREDGRID_NEIGHBORHOOD
@ VTK_VMTK_POLYDATA_MANIFOLD_NEIGHBORHOOD
vtkStandardNewMacro(vtkvmtkNeighborhoods)