VMTK
Loading...
Searching...
No Matches
vtkvmtkEmptyStencil.cxx
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkEmptyStencil.cxx,v $
5 Language: C++
6 Date: $Date: 2005/11/15 17:39:25 $
7 Version: $Revision: 1.4 $
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
22#include "vtkvmtkEmptyStencil.h"
23#include "vtkObjectFactory.h"
24
25
27
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 }
53
54
Create a stencil that does not apply any weighting to the neighborhoods of the data set.
double * CenterWeight
vtkStandardNewMacro(vtkvmtkEmptyStencil)