-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkTreeCollapseFilter.h
43 lines (32 loc) · 1.18 KB
/
vtkTreeCollapseFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2009 Sandia Corporation, Kitware Inc.
// See LICENSE.txt for details.
// .NAME vtkTreeCollapseFilter - collapses specified subtrees in the tree
//
// .SECTION Description
// This filter takes input list of nodes and collapses (hides) the subtrees
// rooted at those nodes.
#ifndef __vtkTreeCollapseFilter_h
#define __vtkTreeCollapseFilter_h
#include "vtkTreeAlgorithm.h"
class vtkTreeCollapseFilter : public vtkTreeAlgorithm
{
public:
static vtkTreeCollapseFilter *New();
vtkTypeRevisionMacro(vtkTreeCollapseFilter,vtkTreeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set and get the list of nodes that will be collapsed.
virtual void SetCollapsedNodes(vtkIdTypeArray* ids);
vtkGetObjectMacro(CollapsedNodes, vtkIdTypeArray);
protected:
vtkTreeCollapseFilter();
~vtkTreeCollapseFilter();
// Description:
// Convert the vtkGraph into vtkPolyData.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
vtkIdTypeArray* CollapsedNodes;
private:
vtkTreeCollapseFilter(const vtkTreeCollapseFilter&); // Not implemented.
void operator=(const vtkTreeCollapseFilter&); // Not implemented.
};
#endif