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 =========================================================================*/
50 #ifndef vtkSpatialRepresentationFilter_h
51 #define vtkSpatialRepresentationFilter_h
52 
53 #include "vtkFiltersGeneralModule.h" // For export macro
55 
56 class vtkLocator;
57 class vtkDataSet;
58 class vtkSpatialRepresentationFilterInternal;
59 
60 class VTKFILTERSGENERAL_EXPORT vtkSpatialRepresentationFilter : public vtkMultiBlockDataSetAlgorithm
61 {
62 public:
65  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
66 
68 
72  vtkGetObjectMacro(SpatialRepresentation,vtkLocator);
74 
76 
80  vtkGetMacro(MaximumLevel,int);
82 
86  void AddLevel(int level);
87 
91  void ResetLevels();
92 
94 
97  vtkSetMacro(GenerateLeaves, bool);
98  vtkGetMacro(GenerateLeaves, bool);
99  vtkBooleanMacro(GenerateLeaves, bool);
101 
102 protected:
105 
106  int RequestData(vtkInformation*,
108  vtkInformationVector*) VTK_OVERRIDE;
109 
110  int MaximumLevel;
111  bool GenerateLeaves;
112 
113  vtkLocator *SpatialRepresentation;
114 
115  void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
116  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
117 private:
119  void operator=(const vtkSpatialRepresentationFilter&) VTK_DELETE_FUNCTION;
120 
121  vtkSpatialRepresentationFilterInternal* Internal;
122 };
123 
124 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSpatialRepresentationFilter::AddLevel
void AddLevel(int level)
Add a level to be computed.
vtkSpatialRepresentationFilter
generate polygonal model of spatial search object (i.e., a vtkLocator)
Definition: vtkSpatialRepresentationFilter.h:61
vtkSpatialRepresentationFilter::New
static vtkSpatialRepresentationFilter * New()
vtkLocator
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:70
vtkX3D::level
@ level
Definition: vtkX3D.h:395
vtkSpatialRepresentationFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSpatialRepresentationFilter::~vtkSpatialRepresentationFilter
~vtkSpatialRepresentationFilter() override
vtkSpatialRepresentationFilter::ResetLevels
void ResetLevels()
Remove all levels.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMultiBlockDataSetAlgorithm.h
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkSpatialRepresentationFilter::SetSpatialRepresentation
virtual void SetSpatialRepresentation(vtkLocator *)
Set/Get the locator that will be used to generate the representation.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSpatialRepresentationFilter::vtkSpatialRepresentationFilter
vtkSpatialRepresentationFilter()
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:33