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 
52 {
53 public:
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 
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
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
Store zero or more vtkInformation instances.
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:277
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:414
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69