VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkVoxelContoursToSurfaceFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkVoxelContoursToSurfaceFilter.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
=========================================================================*/
45
#ifndef __vtkVoxelContoursToSurfaceFilter_h
46
#define __vtkVoxelContoursToSurfaceFilter_h
47
48
#include "
vtkPolyDataAlgorithm.h
"
49
50
class
VTK_GRAPHICS_EXPORT
vtkVoxelContoursToSurfaceFilter
:
public
vtkPolyDataAlgorithm
51
{
52
public
:
53
static
vtkVoxelContoursToSurfaceFilter
*
New
();
54
vtkTypeMacro(
vtkVoxelContoursToSurfaceFilter
,
vtkPolyDataAlgorithm
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
62
vtkSetMacro( MemoryLimitInBytes,
int
);
63
vtkGetMacro( MemoryLimitInBytes,
int
);
65
66
vtkSetVector3Macro( Spacing,
double
);
67
vtkGetVectorMacro( Spacing,
double
, 3 );
68
69
protected
:
70
vtkVoxelContoursToSurfaceFilter
();
71
~
vtkVoxelContoursToSurfaceFilter
();
72
73
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
74
75
int
MemoryLimitInBytes
;
76
77
double
Spacing[3];
78
79
double
*
LineList
;
80
int
LineListLength
;
81
int
LineListSize
;
82
83
double
*
SortedXList
;
84
double
*
SortedYList
;
85
int
SortedListSize
;
86
87
int
*
WorkingList
;
88
int
WorkingListLength
;
89
90
double
*
IntersectionList
;
91
int
IntersectionListLength
;
92
93
void
AddLineToLineList(
double
x1,
double
y1,
double
x2,
double
y2 );
94
void
SortLineList();
95
96
void
CastLines(
float
*slice,
double
gridOrigin[3],
97
int
gridSize[3],
int
type
);
98
99
void
PushDistances(
float
*ptr,
int
gridSize[3],
int
chunkSize );
100
private
:
101
vtkVoxelContoursToSurfaceFilter
(
const
vtkVoxelContoursToSurfaceFilter
&);
// Not implemented.
102
void
operator=(
const
vtkVoxelContoursToSurfaceFilter
&);
// Not implemented.
103
};
104
105
#endif
Generated on Wed May 30 2012 13:22:09 for VTK by
1.8.1