Graphics/vtkSpatialRepresentationFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00076 #ifndef __vtkSpatialRepresentationFilter_h
00077 #define __vtkSpatialRepresentationFilter_h
00078
00079 #include "vtkPolyDataSource.h"
00080
00081 #define VTK_MAX_SPATIAL_REP_LEVEL 24
00082
00083 class vtkLocator;
00084 class vtkDataSet;
00085
00086 class VTK_GRAPHICS_EXPORT vtkSpatialRepresentationFilter : public vtkPolyDataSource
00087 {
00088 public:
00089 static vtkSpatialRepresentationFilter *New();
00090 vtkTypeRevisionMacro(vtkSpatialRepresentationFilter,vtkPolyDataSource);
00091 void PrintSelf(ostream& os, vtkIndent indent);
00092
00094
00095 virtual void SetSpatialRepresentation(vtkLocator*);
00096 vtkGetObjectMacro(SpatialRepresentation,vtkLocator);
00098
00100
00101 vtkGetMacro(Level,int);
00103
00106 vtkPolyData *GetOutput(int level);
00107
00109 vtkPolyData *GetOutput();
00110
00112 void ResetOutput();
00113
00115
00116 virtual void SetInput(vtkDataSet *input);
00117 vtkDataSet *GetInput();
00119
00120 protected:
00121 vtkSpatialRepresentationFilter();
00122 ~vtkSpatialRepresentationFilter();
00123
00124 void Execute();
00125 void GenerateOutput();
00126
00127 int Level;
00128 int TerminalNodesRequested;
00129
00130 vtkLocator *SpatialRepresentation;
00131 private:
00132 vtkSpatialRepresentationFilter(const vtkSpatialRepresentationFilter&);
00133 void operator=(const vtkSpatialRepresentationFilter&);
00134 };
00135
00136 #endif
00137
00138