VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkInterpolatingSubdivisionFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInterpolatingSubdivisionFilter.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
29
#ifndef __vtkInterpolatingSubdivisionFilter_h
30
#define __vtkInterpolatingSubdivisionFilter_h
31
32
#include "
vtkPolyDataAlgorithm.h
"
33
34
class
vtkCellArray
;
35
class
vtkCellData
;
36
class
vtkIdList
;
37
class
vtkIntArray
;
38
class
vtkPointData
;
39
class
vtkPoints
;
40
class
vtkPolyData
;
41
42
class
VTK_GRAPHICS_EXPORT
vtkInterpolatingSubdivisionFilter
:
public
vtkPolyDataAlgorithm
43
{
44
public
:
45
vtkTypeMacro(
vtkInterpolatingSubdivisionFilter
,
vtkPolyDataAlgorithm
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
49
50
vtkSetMacro(NumberOfSubdivisions,
int
);
51
vtkGetMacro(NumberOfSubdivisions,
int
);
53
54
protected
:
55
vtkInterpolatingSubdivisionFilter
();
56
~vtkInterpolatingSubdivisionFilter
() {};
57
58
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
59
virtual
void
GenerateSubdivisionPoints (
vtkPolyData
*inputDS,
vtkIntArray
*edgeData,
vtkPoints
*outputPts,
vtkPointData
*outputPD) = 0;
60
void
GenerateSubdivisionCells (
vtkPolyData
*inputDS,
vtkIntArray
*edgeData,
vtkCellArray
*outputPolys,
vtkCellData
*outputCD);
61
int
FindEdge (
vtkPolyData
*mesh,
vtkIdType
cellId,
vtkIdType
p1,
62
vtkIdType
p2,
vtkIntArray
*edgeData,
vtkIdList
*cellIds);
63
vtkIdType
InterpolatePosition (
vtkPoints
*inputPts,
vtkPoints
*outputPts,
64
vtkIdList
*stencil,
double
*weights);
65
int
NumberOfSubdivisions
;
66
67
private
:
68
vtkInterpolatingSubdivisionFilter
(
const
vtkInterpolatingSubdivisionFilter
&);
// Not implemented.
69
void
operator=(
const
vtkInterpolatingSubdivisionFilter
&);
// Not implemented.
70
};
71
72
#endif
73
74
Generated on Wed Nov 21 2012 21:33:48 for VTK by
1.8.2