VTK  9.3.20240329
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:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
52 
54 
57  virtual void SetGraphEdgeLabelArrayName(const char* name);
58  virtual const char* GetGraphEdgeLabelArrayName();
60 
62 
65  virtual void SetGraphEdgeLabelVisibility(bool vis);
67  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
69 
71 
74  virtual void SetGraphEdgeColorArrayName(const char* name);
75  virtual const char* GetGraphEdgeColorArrayName();
77 
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);
116 
117 protected:
120 
122 
130 
131 private:
133  void operator=(const vtkHierarchicalGraphView&) = delete;
134 };
135 
136 VTK_ABI_NAMESPACE_END
137 #endif
Proxy object to connect input/output ports.
general representation of visualization data
The superclass for all representations.
Lays out and displays a graph.
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display.
vtkDataRepresentation * SetHierarchyFromInput(vtkDataObject *input)
Set the tree and graph representations to the appropriate input ports.
virtual void SetGraphEdgeColorArrayName(const char *name)
The array to use for coloring edges.
virtual const char * GetGraphEdgeColorArrayName()
The array to use for coloring edges.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetBundlingStrength(double strength)
Set the bundling strength.
virtual const char * GetGraphEdgeLabelArrayName()
The array to use for edge labeling.
virtual bool GetGraphVisibility()
Whether the graph edges are visible (default off).
virtual void SetGraphEdgeColorToSplineFraction()
Set the color to be the spline fraction.
virtual double GetBundlingStrength()
Set the bundling strength.
~vtkHierarchicalGraphView() override
virtual int GetGraphEdgeLabelFontSize()
The size of the font used for edge labeling.
virtual void SetGraphEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
vtkDataRepresentation * SetGraphFromInput(vtkDataObject *input)
Set the tree and graph representations to the appropriate input ports.
vtkDataRepresentation * SetHierarchyFromInputConnection(vtkAlgorithmOutput *conn)
Set the tree and graph representations to the appropriate input ports.
virtual void SetColorGraphEdgesByArray(bool vis)
Whether to color edges.
virtual void SetGraphVisibility(bool vis)
Whether the graph edges are visible (default off).
vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn) override
Overrides behavior in vtkGraphLayoutView to create a vtkRenderedHierarchyRepresentation by default.
virtual bool GetColorGraphEdgesByArray()
Whether to color edges.
virtual void SetGraphEdgeLabelFontSize(int size)
The size of the font used for edge labeling.
virtual void SetGraphEdgeLabelVisibility(bool vis)
Whether to show edge labels.
static vtkHierarchicalGraphView * New()
vtkRenderedGraphRepresentation * GetGraphRepresentation() override
Overrides behavior in vtkGraphLayoutView to create a vtkRenderedHierarchyRepresentation by default.
virtual vtkRenderedHierarchyRepresentation * GetHierarchyRepresentation()
Overrides behavior in vtkGraphLayoutView to create a vtkRenderedHierarchyRepresentation by default.
virtual bool GetGraphEdgeLabelVisibility()
Whether to show edge labels.
vtkDataRepresentation * SetGraphFromInputConnection(vtkAlgorithmOutput *conn)
Set the tree and graph representations to the appropriate input ports.
a simple class to control print indentation
Definition: vtkIndent.h:108
@ name
Definition: vtkX3D.h:219
@ size
Definition: vtkX3D.h:253