VTK
vtkPruneTreeFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPruneTreeFilter.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
32 #ifndef vtkPruneTreeFilter_h
33 #define vtkPruneTreeFilter_h
34 
35 #include "vtkInfovisCoreModule.h" // For export macro
36 #include "vtkTreeAlgorithm.h"
37 
38 class vtkTree;
39 class vtkPVXMLElement;
40 
41 class VTKINFOVISCORE_EXPORT vtkPruneTreeFilter : public vtkTreeAlgorithm
42 {
43 public:
44  static vtkPruneTreeFilter* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkGetMacro(ParentVertex, vtkIdType);
53  vtkSetMacro(ParentVertex, vtkIdType);
55 
57 
61  vtkGetMacro(ShouldPruneParentVertex, bool);
62  vtkSetMacro(ShouldPruneParentVertex, bool);
64 
65 protected:
67  ~vtkPruneTreeFilter() override;
68 
71 
72  int RequestData(
75  vtkInformationVector*) override;
76 
77 private:
78  vtkPruneTreeFilter(const vtkPruneTreeFilter&) = delete;
79  void operator=(const vtkPruneTreeFilter&) = delete;
80 };
81 
82 #endif
83 
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:347
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
prune a subtree out of a vtkTree
static vtkTreeAlgorithm * New()
A rooted tree data structure.
Definition: vtkTree.h:60
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.