VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
73 
74  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
75 
77 
78  double Spacing[3];
79 
80  double *LineList;
83 
84  double *SortedXList;
85  double *SortedYList;
87 
90 
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:
103  void operator=(const vtkVoxelContoursToSurfaceFilter&); // Not implemented.
104 };
105 
106 #endif