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 "vtkGraphLayoutView.h"
50 
52 
54 {
55 public:
56  static vtkHierarchicalGraphView *New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
63  vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
64  vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
65  vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
66  vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
68 
70 
71  virtual void SetGraphEdgeLabelArrayName(const char* name);
72  virtual const char* GetGraphEdgeLabelArrayName();
74 
76 
77  virtual void SetGraphEdgeLabelVisibility(bool vis);
78  virtual bool GetGraphEdgeLabelVisibility();
79  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
81 
83 
84  virtual void SetGraphEdgeColorArrayName(const char* name);
85  virtual const char* GetGraphEdgeColorArrayName();
87 
89  virtual void SetGraphEdgeColorToSplineFraction();
90 
92 
93  virtual void SetColorGraphEdgesByArray(bool vis);
94  virtual bool GetColorGraphEdgesByArray();
95  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
97 
99 
100  virtual void SetBundlingStrength(double strength);
101  virtual double GetBundlingStrength();
103 
105 
106  virtual void SetGraphVisibility(bool b);
107  virtual bool GetGraphVisibility();
108  vtkBooleanMacro(GraphVisibility, bool);
110 
112 
113  virtual void SetGraphEdgeLabelFontSize(const int size);
114  virtual int GetGraphEdgeLabelFontSize();
116 
117 protected:
120 
122 
126  virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
128 
129 private:
130  vtkHierarchicalGraphView(const vtkHierarchicalGraphView&); // Not implemented.
131  void operator=(const vtkHierarchicalGraphView&); // Not implemented.
132 };
133 
134 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Lays out and displays a graph.
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
#define VTK_VIEWS_EXPORT
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:37
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:70