VTK
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 
51 {
52 public:
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:
72 
74 
76 
77  double Spacing[3];
78 
79  double *LineList;
82 
83  double *SortedXList;
84  double *SortedYList;
86 
89 
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:
102  void operator=(const vtkVoxelContoursToSurfaceFilter&); // Not implemented.
103 };
104 
105 #endif