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 =========================================================================*/
47 #ifndef vtkSpatialRepresentationFilter_h
48 #define vtkSpatialRepresentationFilter_h
49 
50 #include "vtkFiltersGeneralModule.h" // For export macro
52 
53 class vtkLocator;
54 class vtkDataSet;
55 class vtkSpatialRepresentationFilterInternal;
56 
57 class VTKFILTERSGENERAL_EXPORT vtkSpatialRepresentationFilter : public vtkMultiBlockDataSetAlgorithm
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
68  virtual void SetSpatialRepresentation(vtkLocator*);
69  vtkGetObjectMacro(SpatialRepresentation, vtkLocator);
71 
73 
77  vtkGetMacro(MaximumLevel, int);
79 
83  void AddLevel(int level);
84 
88  void ResetLevels();
89 
91 
94  vtkSetMacro(GenerateLeaves, bool);
95  vtkGetMacro(GenerateLeaves, bool);
96  vtkBooleanMacro(GenerateLeaves, bool);
98 
99 protected:
101  ~vtkSpatialRepresentationFilter() override;
102 
104 
107 
109 
110  void ReportReferences(vtkGarbageCollector*) override;
111  int FillInputPortInformation(int, vtkInformation*) override;
112 
113 private:
115  void operator=(const vtkSpatialRepresentationFilter&) = delete;
116 
117  vtkSpatialRepresentationFilterInternal* Internal;
118 };
119 
120 #endif
vtkSpatialRepresentationFilter::GenerateLeaves
bool GenerateLeaves
Definition: vtkSpatialRepresentationFilter.h:106
vtkSpatialRepresentationFilter::MaximumLevel
int MaximumLevel
Definition: vtkSpatialRepresentationFilter.h:105
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkSpatialRepresentationFilter
generate polygonal model of spatial search object (i.e., a vtkLocator)
Definition: vtkSpatialRepresentationFilter.h:57
vtkSpatialRepresentationFilter::SpatialRepresentation
vtkLocator * SpatialRepresentation
Definition: vtkSpatialRepresentationFilter.h:108
vtkMultiBlockDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:89
vtkLocator
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:69
vtkX3D::level
Definition: vtkX3D.h:401
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMultiBlockDataSetAlgorithm.h
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:94
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkAlgorithm::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkMultiBlockDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32