VTK
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 
47 #ifndef vtkHierarchicalGraphView_h
48 #define vtkHierarchicalGraphView_h
49 
50 #include "vtkViewsInfovisModule.h" // For export macro
51 #include "vtkGraphLayoutView.h"
52 
54 
55 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView
56 {
57 public:
58  static vtkHierarchicalGraphView *New();
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
67  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
68  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
69  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
71 
73 
76  virtual void SetGraphEdgeLabelArrayName(const char* name);
77  virtual const char* GetGraphEdgeLabelArrayName();
79 
81 
84  virtual void SetGraphEdgeLabelVisibility(bool vis);
85  virtual bool GetGraphEdgeLabelVisibility();
86  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
88 
90 
93  virtual void SetGraphEdgeColorArrayName(const char* name);
94  virtual const char* GetGraphEdgeColorArrayName();
96 
100  virtual void SetGraphEdgeColorToSplineFraction();
101 
103 
106  virtual void SetColorGraphEdgesByArray(bool vis);
107  virtual bool GetColorGraphEdgesByArray();
108  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
110 
112 
115  virtual void SetBundlingStrength(double strength);
116  virtual double GetBundlingStrength();
118 
120 
123  virtual void SetGraphVisibility(bool b);
124  virtual bool GetGraphVisibility();
125  vtkBooleanMacro(GraphVisibility, bool);
127 
129 
132  virtual void SetGraphEdgeLabelFontSize(const int size);
133  virtual int GetGraphEdgeLabelFontSize();
135 
136 protected:
138  ~vtkHierarchicalGraphView() override;
139 
141 
147  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
149 
150 private:
152  void operator=(const vtkHierarchicalGraphView&) = delete;
153 };
154 
155 #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:64