Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkSpatialRepresentationFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSpatialRepresentationFilter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00062 #ifndef __vtkSpatialRepresentationFilter_h 00063 #define __vtkSpatialRepresentationFilter_h 00064 00065 #include "vtkPolyDataSource.h" 00066 00067 #define VTK_MAX_SPATIAL_REP_LEVEL 24 00068 00069 class vtkLocator; 00070 class vtkDataSet; 00071 00072 class VTK_GRAPHICS_EXPORT vtkSpatialRepresentationFilter : public vtkPolyDataSource 00073 { 00074 public: 00075 static vtkSpatialRepresentationFilter *New(); 00076 vtkTypeRevisionMacro(vtkSpatialRepresentationFilter,vtkPolyDataSource); 00077 void PrintSelf(ostream& os, vtkIndent indent); 00078 00080 00081 virtual void SetSpatialRepresentation(vtkLocator*); 00082 vtkGetObjectMacro(SpatialRepresentation,vtkLocator); 00084 00086 00087 vtkGetMacro(Level,int); 00089 00092 vtkPolyData *GetOutput(int level); 00093 00095 vtkPolyData *GetOutput(); 00096 00098 void ResetOutput(); 00099 00101 00102 virtual void SetInput(vtkDataSet *input); 00103 vtkDataSet *GetInput(); 00105 00106 protected: 00107 vtkSpatialRepresentationFilter(); 00108 ~vtkSpatialRepresentationFilter(); 00109 00110 void Execute(); 00111 void GenerateOutput(); 00112 00113 int Level; 00114 int TerminalNodesRequested; 00115 00116 vtkLocator *SpatialRepresentation; 00117 private: 00118 vtkSpatialRepresentationFilter(const vtkSpatialRepresentationFilter&); // Not implemented. 00119 void operator=(const vtkSpatialRepresentationFilter&); // Not implemented. 00120 }; 00121 00122 #endif 00123 00124