VTK  9.2.5
vtkHierarchicalGraphView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHierarchicalGraphView.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
44 #ifndef vtkHierarchicalGraphView_h
45 #define vtkHierarchicalGraphView_h
46 
47 #include "vtkGraphLayoutView.h"
48 #include "vtkViewsInfovisModule.h" // For export macro
49 
51 
52 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
68 
70 
73  virtual void SetGraphEdgeLabelArrayName(const char* name);
74  virtual const char* GetGraphEdgeLabelArrayName();
76 
78 
81  virtual void SetGraphEdgeLabelVisibility(bool vis);
83  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
85 
87 
90  virtual void SetGraphEdgeColorArrayName(const char* name);
91  virtual const char* GetGraphEdgeColorArrayName();
93 
98 
100 
103  virtual void SetColorGraphEdgesByArray(bool vis);
105  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
107 
109 
112  virtual void SetBundlingStrength(double strength);
113  virtual double GetBundlingStrength();
115 
117 
120  virtual void SetGraphVisibility(bool vis);
121  virtual bool GetGraphVisibility();
122  vtkBooleanMacro(GraphVisibility, bool);
124 
126 
129  virtual void SetGraphEdgeLabelFontSize(const int size);
132 
133 protected:
136 
138 
146 
147 private:
149  void operator=(const vtkHierarchicalGraphView&) = delete;
150 };
151 
152 #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 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 void SetGraphEdgeLabelFontSize(const int size)
The size of the font used for edge labeling.
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:119
@ name
Definition: vtkX3D.h:225
@ size
Definition: vtkX3D.h:259