VTK  9.3.1
vtkHierarchicalGraphView.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
4 
27 #ifndef vtkHierarchicalGraphView_h
28 #define vtkHierarchicalGraphView_h
29 
30 #include "vtkGraphLayoutView.h"
31 #include "vtkViewsInfovisModule.h" // For export macro
32 
33 VTK_ABI_NAMESPACE_BEGIN
35 
36 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView
37 {
38 public:
39  static vtkHierarchicalGraphView* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
48  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
49  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
50  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
52 
54 
57  virtual void SetGraphEdgeLabelArrayName(const char* name);
58  virtual const char* GetGraphEdgeLabelArrayName();
60 
62 
65  virtual void SetGraphEdgeLabelVisibility(bool vis);
66  virtual bool GetGraphEdgeLabelVisibility();
67  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
69 
71 
74  virtual void SetGraphEdgeColorArrayName(const char* name);
75  virtual const char* GetGraphEdgeColorArrayName();
77 
81  virtual void SetGraphEdgeColorToSplineFraction();
82 
84 
87  virtual void SetColorGraphEdgesByArray(bool vis);
88  virtual bool GetColorGraphEdgesByArray();
89  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
91 
93 
96  virtual void SetBundlingStrength(double strength);
97  virtual double GetBundlingStrength();
99 
101 
104  virtual void SetGraphVisibility(bool vis);
105  virtual bool GetGraphVisibility();
106  vtkBooleanMacro(GraphVisibility, bool);
108 
110 
113  virtual void SetGraphEdgeLabelFontSize(int size);
114  virtual int GetGraphEdgeLabelFontSize();
116 
117 protected:
119  ~vtkHierarchicalGraphView() override;
120 
122 
128  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
130 
131 private:
133  void operator=(const vtkHierarchicalGraphView&) = delete;
134 };
135 
136 VTK_ABI_NAMESPACE_END
137 #endif
Lays out and displays a graph.
Proxy object to connect input/output ports.
vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn) override
Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.
a simple class to control print indentation
Definition: vtkIndent.h:28
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display...
The superclass for all representations.
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGraphLayoutView * New()
general representation of visualization data
Definition: vtkDataObject.h:54