VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
General
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 "vtkFiltersGeneralModule.h"
// For export macro
49
#include "
vtkPolyDataAlgorithm.h
"
50
51
class
VTKFILTERSGENERAL_EXPORT
vtkVoxelContoursToSurfaceFilter
:
public
vtkPolyDataAlgorithm
52
{
53
public
:
54
static
vtkVoxelContoursToSurfaceFilter
*
New
();
55
vtkTypeMacro(
vtkVoxelContoursToSurfaceFilter
,
vtkPolyDataAlgorithm
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
63
vtkSetMacro( MemoryLimitInBytes,
int
);
64
vtkGetMacro( MemoryLimitInBytes,
int
);
66
67
vtkSetVector3Macro( Spacing,
double
);
68
vtkGetVectorMacro( Spacing,
double
, 3 );
69
70
protected
:
71
vtkVoxelContoursToSurfaceFilter
();
72
~
vtkVoxelContoursToSurfaceFilter
();
73
74
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
75
76
int
MemoryLimitInBytes
;
77
78
double
Spacing[3];
79
80
double
*
LineList
;
81
int
LineListLength
;
82
int
LineListSize
;
83
84
double
*
SortedXList
;
85
double
*
SortedYList
;
86
int
SortedListSize
;
87
88
int
*
WorkingList
;
89
int
WorkingListLength
;
90
91
double
*
IntersectionList
;
92
int
IntersectionListLength
;
93
94
void
AddLineToLineList(
double
x1,
double
y1,
double
x2,
double
y2 );
95
void
SortLineList();
96
97
void
CastLines(
float
*slice,
double
gridOrigin[3],
98
int
gridSize[3],
int
type
);
99
100
void
PushDistances(
float
*ptr,
int
gridSize[3],
int
chunkSize );
101
private
:
102
vtkVoxelContoursToSurfaceFilter
(
const
vtkVoxelContoursToSurfaceFilter
&);
// Not implemented.
103
void
operator=(
const
vtkVoxelContoursToSurfaceFilter
&);
// Not implemented.
104
};
105
106
#endif
Generated on Thu May 24 2012 22:22:21 for VTK by
1.8.1