VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
49 #ifndef __vtkSpatialRepresentationFilter_h
50 #define __vtkSpatialRepresentationFilter_h
51 
52 #include "vtkFiltersGeneralModule.h" // For export macro
53 #include "vtkMultiBlockDataSetAlgorithm.h"
54 
55 class vtkLocator;
56 class vtkDataSet;
57 class vtkSpatialRepresentationFilterInternal;
58 
59 class VTKFILTERSGENERAL_EXPORT vtkSpatialRepresentationFilter : public vtkMultiBlockDataSetAlgorithm
60 {
61 public:
62  static vtkSpatialRepresentationFilter *New();
63  vtkTypeMacro(vtkSpatialRepresentationFilter,vtkMultiBlockDataSetAlgorithm);
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
68  virtual void SetSpatialRepresentation(vtkLocator*);
69  vtkGetObjectMacro(SpatialRepresentation,vtkLocator);
71 
73 
75  vtkGetMacro(MaximumLevel,int);
77 
79  void AddLevel(int level);
80 
82  void ResetLevels();
83 
85 
86  vtkSetMacro(GenerateLeaves, bool);
87  vtkGetMacro(GenerateLeaves, bool);
88  vtkBooleanMacro(GenerateLeaves, bool);
90 
91 protected:
94 
95  virtual int RequestData(vtkInformation*,
96  vtkInformationVector**,
97  vtkInformationVector*);
98 
101 
103 
104  virtual void ReportReferences(vtkGarbageCollector*);
105  virtual int FillInputPortInformation(int, vtkInformation*);
106 private:
108  void operator=(const vtkSpatialRepresentationFilter&); // Not implemented.
109 
110  vtkSpatialRepresentationFilterInternal* Internal;
111 };
112 
113 #endif
generate polygonal model of spatial search object (i.e., a vtkLocator)