VTK
vtkSpatialRepresentationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSpatialRepresentationFilter.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 =========================================================================*/
58 #ifndef __vtkSpatialRepresentationFilter_h
59 #define __vtkSpatialRepresentationFilter_h
60 
61 #include "vtkPolyDataSource.h"
62 
63 #define VTK_MAX_SPATIAL_REP_LEVEL 24
64 
65 class vtkLocator;
66 class vtkDataSet;
67 
69 {
70 public:
73  void PrintSelf(ostream& os, vtkIndent indent);
74 
76 
77  virtual void SetSpatialRepresentation(vtkLocator*);
78  vtkGetObjectMacro(SpatialRepresentation,vtkLocator);
80 
82 
83  vtkGetMacro(Level,int);
85 
89 
92 
94  void ResetOutput();
95 
97 
98  virtual void SetInput(vtkDataSet *input);
99  vtkDataSet *GetInput();
101 
102 protected:
105 
106  void Execute();
107  void GenerateOutput();
108 
109  int Level;
111 
113 
114  virtual void ReportReferences(vtkGarbageCollector*);
115  virtual int FillInputPortInformation(int, vtkInformation*);
116 private:
118  void operator=(const vtkSpatialRepresentationFilter&); // Not implemented.
119 };
120 
121 #endif
122 
123 
vtkPolyData * GetOutput()
#define VTK_GRAPHICS_EXPORT
virtual void ReportReferences(vtkGarbageCollector *)
virtual int FillInputPortInformation(int, vtkInformation *)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:60
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract class whose subclasses generate polygonal data
virtual void Execute()
generate polygonal model of spatial search object (i.e., a vtkLocator)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()