VMTK
Loading...
Searching...
No Matches
DifferentialGeometry
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
26
vtkStandardNewMacro
(
vtkvmtkEmptyStencil
);
27
28
void
vtkvmtkEmptyStencil::Build
()
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
vtkvmtkDataSetItem::ReallocateOnBuild
int ReallocateOnBuild
Definition
vtkvmtkDataSetItem.h:96
vtkvmtkEmptyStencil
Create a stencil that does not apply any weighting to the neighborhoods of the data set.
Definition
vtkvmtkEmptyStencil.h:42
vtkvmtkEmptyStencil::Build
void Build() override
Definition
vtkvmtkEmptyStencil.cxx:28
vtkvmtkNeighborhood::NPoints
vtkIdType NPoints
Definition
vtkvmtkNeighborhood.h:89
vtkvmtkNeighborhood::PointIds
vtkIdType * PointIds
Definition
vtkvmtkNeighborhood.h:90
vtkvmtkStencil::Weights
double * Weights
Definition
vtkvmtkStencil.h:158
vtkvmtkStencil::CenterWeight
double * CenterWeight
Definition
vtkvmtkStencil.h:159
vtkStandardNewMacro
vtkStandardNewMacro(vtkvmtkEmptyStencil)
vtkvmtkEmptyStencil.h
Generated by
1.15.0