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 
46 #ifndef vtkHierarchicalGraphView_h
47 #define vtkHierarchicalGraphView_h
48 
49 #include "vtkViewsInfovisModule.h" // For export macro
50 #include "vtkGraphLayoutView.h"
51 
53 
55 {
56 public:
57  static vtkHierarchicalGraphView *New();
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
64  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
65  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
66  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
67  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
69 
71 
72  virtual void SetGraphEdgeLabelArrayName(const char* name);
73  virtual const char* GetGraphEdgeLabelArrayName();
75 
77 
78  virtual void SetGraphEdgeLabelVisibility(bool vis);
79  virtual bool GetGraphEdgeLabelVisibility();
80  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
82 
84 
85  virtual void SetGraphEdgeColorArrayName(const char* name);
86  virtual const char* GetGraphEdgeColorArrayName();
88 
90  virtual void SetGraphEdgeColorToSplineFraction();
91 
93 
94  virtual void SetColorGraphEdgesByArray(bool vis);
95  virtual bool GetColorGraphEdgesByArray();
96  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
98 
100 
101  virtual void SetBundlingStrength(double strength);
102  virtual double GetBundlingStrength();
104 
106 
107  virtual void SetGraphVisibility(bool b);
108  virtual bool GetGraphVisibility();
109  vtkBooleanMacro(GraphVisibility, bool);
111 
113 
114  virtual void SetGraphEdgeLabelFontSize(const int size);
115  virtual int GetGraphEdgeLabelFontSize();
117 
118 protected:
121 
123 
127  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
129 
130 private:
131  vtkHierarchicalGraphView(const vtkHierarchicalGraphView&); // Not implemented.
132  void operator=(const vtkHierarchicalGraphView&); // Not implemented.
133 };
134 
135 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Lays out and displays a graph.
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:38
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display...
The superclass for all representations.
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
static vtkGraphLayoutView * New()
general representation of visualization data
Definition: vtkDataObject.h:64
#define VTKVIEWSINFOVIS_EXPORT