00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00058
#ifndef __vtkSpatialRepresentationFilter_h
00059
#define __vtkSpatialRepresentationFilter_h
00060
00061
#include "vtkPolyDataSource.h"
00062
00063 #define VTK_MAX_SPATIAL_REP_LEVEL 24
00064
00065
class vtkLocator;
00066
class vtkDataSet;
00067
00068 class VTK_GRAPHICS_EXPORT vtkSpatialRepresentationFilter :
public vtkPolyDataSource
00069 {
00070
public:
00071
static vtkSpatialRepresentationFilter *
New();
00072 vtkTypeRevisionMacro(vtkSpatialRepresentationFilter,
vtkPolyDataSource);
00073
void PrintSelf(ostream& os,
vtkIndent indent);
00074
00076
00077
virtual void SetSpatialRepresentation(
vtkLocator*);
00078 vtkGetObjectMacro(SpatialRepresentation,
vtkLocator);
00080
00082
00083 vtkGetMacro(Level,
int);
00085
00088
vtkPolyData *
GetOutput(
int level);
00089
00091
vtkPolyData *
GetOutput();
00092
00094
void ResetOutput();
00095
00097
00098
virtual void SetInput(
vtkDataSet *input);
00099
vtkDataSet *GetInput();
00101
00102
protected:
00103 vtkSpatialRepresentationFilter();
00104 ~vtkSpatialRepresentationFilter();
00105
00106
void Execute();
00107
void GenerateOutput();
00108
00109 int Level;
00110 int TerminalNodesRequested;
00111
00112 vtkLocator *SpatialRepresentation;
00113
private:
00114 vtkSpatialRepresentationFilter(
const vtkSpatialRepresentationFilter&);
00115
void operator=(
const vtkSpatialRepresentationFilter&);
00116 };
00117
00118
#endif
00119
00120