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 
41 #ifndef vtkHierarchicalGraphView_h
42 #define vtkHierarchicalGraphView_h
43 
44 #include "vtkViewsInfovisModule.h" // For export macro
45 #include "vtkGraphLayoutView.h"
46 
48 
49 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView
50 {
51 public:
52  static vtkHierarchicalGraphView *New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
60  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
61  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
62  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
63  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
65 
67 
70  virtual void SetGraphEdgeLabelArrayName(const char* name);
71  virtual const char* GetGraphEdgeLabelArrayName();
73 
75 
78  virtual void SetGraphEdgeLabelVisibility(bool vis);
79  virtual bool GetGraphEdgeLabelVisibility();
80  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
82 
84 
87  virtual void SetGraphEdgeColorArrayName(const char* name);
88  virtual const char* GetGraphEdgeColorArrayName();
90 
94  virtual void SetGraphEdgeColorToSplineFraction();
95 
97 
100  virtual void SetColorGraphEdgesByArray(bool vis);
101  virtual bool GetColorGraphEdgesByArray();
102  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
104 
106 
109  virtual void SetBundlingStrength(double strength);
110  virtual double GetBundlingStrength();
112 
114 
117  virtual void SetGraphVisibility(bool b);
118  virtual bool GetGraphVisibility();
119  vtkBooleanMacro(GraphVisibility, bool);
121 
123 
126  virtual void SetGraphEdgeLabelFontSize(const int size);
127  virtual int GetGraphEdgeLabelFontSize();
129 
130 protected:
132  ~vtkHierarchicalGraphView() override;
133 
135 
141  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
143 
144 private:
146  void operator=(const vtkHierarchicalGraphView&) = delete;
147 };
148 
149 #endif
vtkGraphLayoutView::New
static vtkGraphLayoutView * New()
vtkRenderedHierarchyRepresentation
Definition: vtkRenderedHierarchyRepresentation.h:32
vtkGraphLayoutView.h
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:64
vtkGraphLayoutView
Lays out and displays a graph.
Definition: vtkGraphLayoutView.h:53
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:66
vtkGraphLayoutView::GetGraphRepresentation
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkX3D::size
Definition: vtkX3D.h:253
vtkX3D::name
Definition: vtkX3D.h:219
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkHierarchicalGraphView
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display....
Definition: vtkHierarchicalGraphView.h:49
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkGraphLayoutView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphLayoutView::CreateDefaultRepresentation
vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn) override
Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.