VTK  9.7.20261202
vtkLocatorRepresentationFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
32
33#ifndef vtkLocatorRepresentationFilter_h
34#define vtkLocatorRepresentationFilter_h
35
36#include "vtkFiltersGeneralModule.h" // For export macro
38
39#include <set> // For std::set
40
41VTK_ABI_NAMESPACE_BEGIN
42class vtkLocator;
43
44class VTKFILTERSGENERAL_EXPORT vtkLocatorRepresentationFilter
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
57 virtual void SetLocator(vtkLocator* locator);
58 vtkGetObjectMacro(Locator, vtkLocator);
60
66 void AddLevel(int level);
67
72
74
78 vtkSetMacro(GenerateLeaves, bool);
79 vtkGetMacro(GenerateLeaves, bool);
80 vtkBooleanMacro(GenerateLeaves, bool);
82
84
87 vtkGetMacro(MaximumLevel, int);
89
94
95protected:
98
99 int FillInputPortInformation(int port, vtkInformation* info) override;
101 void ReportReferences(vtkGarbageCollector* collector) override;
102
103private:
105 void operator=(const vtkLocatorRepresentationFilter&) = delete;
106
107 vtkLocator* Locator = nullptr;
108 std::set<int> Levels;
109 bool GenerateLeaves = false;
110 int MaximumLevel = 0;
111};
112
113VTK_ABI_NAMESPACE_END
114#endif
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkMTimeType GetMTime() override
Return the modification time of the filter, the locator included.
void ReportReferences(vtkGarbageCollector *collector) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RemoveAllLevels()
Remove all levels.
void AddLevel(int level)
Add a level to generate, from 0 (the root) on.
static vtkLocatorRepresentationFilter * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
virtual void SetLocator(vtkLocator *locator)
Set/Get the locator that generates the representation.
~vtkLocatorRepresentationFilter() override
abstract base class for objects that accelerate spatial searches
Definition vtkLocator.h:79
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:321