VTK  9.3.20240328
vtkPruneTreeFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
16 #ifndef vtkPruneTreeFilter_h
17 #define vtkPruneTreeFilter_h
18 
19 #include "vtkInfovisCoreModule.h" // For export macro
20 #include "vtkTreeAlgorithm.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkTree;
24 class vtkPVXMLElement;
25 
26 class VTKINFOVISCORE_EXPORT vtkPruneTreeFilter : public vtkTreeAlgorithm
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  vtkGetMacro(ParentVertex, vtkIdType);
38  vtkSetMacro(ParentVertex, vtkIdType);
40 
42 
46  vtkGetMacro(ShouldPruneParentVertex, bool);
47  vtkSetMacro(ShouldPruneParentVertex, bool);
49 
50 protected:
52  ~vtkPruneTreeFilter() override;
53 
56 
58 
59 private:
60  vtkPruneTreeFilter(const vtkPruneTreeFilter&) = delete;
61  void operator=(const vtkPruneTreeFilter&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
prune a subtree out of a vtkTree
~vtkPruneTreeFilter() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPruneTreeFilter * New()
Superclass for algorithms that produce only Tree as output.
A rooted tree data structure.
Definition: vtkTree.h:145
int vtkIdType
Definition: vtkType.h:315