VTK  9.2.6
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:
55  static vtkHierarchicalGraphView* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
64  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
65  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
66  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
68 
70 
73  virtual void SetGraphEdgeLabelArrayName(const char* name);
74  virtual const char* GetGraphEdgeLabelArrayName();
76 
78 
81  virtual void SetGraphEdgeLabelVisibility(bool vis);
82  virtual bool GetGraphEdgeLabelVisibility();
83  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
85 
87 
90  virtual void SetGraphEdgeColorArrayName(const char* name);
91  virtual const char* GetGraphEdgeColorArrayName();
93 
97  virtual void SetGraphEdgeColorToSplineFraction();
98 
100 
103  virtual void SetColorGraphEdgesByArray(bool vis);
104  virtual bool GetColorGraphEdgesByArray();
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);
130  virtual int GetGraphEdgeLabelFontSize();
132 
133 protected:
135  ~vtkHierarchicalGraphView() override;
136 
138 
144  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
146 
147 private:
149  void operator=(const vtkHierarchicalGraphView&) = delete;
150 };
151 
152 #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:39
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:65