VTK  9.3.20240424
vtkIcicleView.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
18#ifndef vtkIcicleView_h
19#define vtkIcicleView_h
20
21#include "vtkTreeAreaView.h"
22#include "vtkViewsInfovisModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKVIEWSINFOVIS_EXPORT vtkIcicleView : public vtkTreeAreaView
26{
27public:
28 static vtkIcicleView* New();
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
36 virtual void SetTopToBottom(bool reversed);
37 virtual bool GetTopToBottom();
38 vtkBooleanMacro(TopToBottom, bool);
40
42
45 virtual void SetRootWidth(double width);
46 virtual double GetRootWidth();
48
50
53 virtual void SetLayerThickness(double thickness);
54 virtual double GetLayerThickness();
56
58
61 virtual void SetUseGradientColoring(bool value);
62 virtual bool GetUseGradientColoring();
63 vtkBooleanMacro(UseGradientColoring, bool);
65
66protected:
68 ~vtkIcicleView() override;
69
70private:
71 vtkIcicleView(const vtkIcicleView&) = delete;
72 void operator=(const vtkIcicleView&) = delete;
73};
74
75VTK_ABI_NAMESPACE_END
76#endif
Displays a tree in a stacked "icicle" view.
virtual void SetTopToBottom(bool reversed)
Sets whether the stacks go from top to bottom or bottom to top.
virtual bool GetTopToBottom()
Sets whether the stacks go from top to bottom or bottom to top.
virtual void SetLayerThickness(double thickness)
Set the thickness of each layer.
virtual double GetRootWidth()
Set the width of the root node.
virtual void SetUseGradientColoring(bool value)
Turn on/off gradient coloring.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkIcicleView() override
static vtkIcicleView * New()
virtual bool GetUseGradientColoring()
Turn on/off gradient coloring.
virtual void SetRootWidth(double width)
Set the width of the root node.
virtual double GetLayerThickness()
Set the thickness of each layer.
a simple class to control print indentation
Definition vtkIndent.h:108
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display.