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:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
71 
73 
76  virtual void SetGraphEdgeLabelArrayName(const char* name);
77  virtual const char* GetGraphEdgeLabelArrayName();
79 
81 
84  virtual void SetGraphEdgeLabelVisibility(bool vis);
86  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
88 
90 
93  virtual void SetGraphEdgeColorArrayName(const char* name);
94  virtual const char* GetGraphEdgeColorArrayName();
96 
101 
103 
106  virtual void SetColorGraphEdgesByArray(bool vis);
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);
135 
136 protected:
139 
141 
149 
150 private:
151  vtkHierarchicalGraphView(const vtkHierarchicalGraphView&) VTK_DELETE_FUNCTION;
152  void operator=(const vtkHierarchicalGraphView&) VTK_DELETE_FUNCTION;
153 };
154 
155 #endif
vtkHierarchicalGraphView::SetGraphEdgeColorToSplineFraction
virtual void SetGraphEdgeColorToSplineFraction()
Set the color to be the spline fraction.
vtkRenderedHierarchyRepresentation
Definition: vtkRenderedHierarchyRepresentation.h:36
vtkHierarchicalGraphView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkHierarchicalGraphView::SetGraphEdgeLabelVisibility
virtual void SetGraphEdgeLabelVisibility(bool vis)
Whether to show edge labels.
vtkHierarchicalGraphView::GetHierarchyRepresentation
virtual vtkRenderedHierarchyRepresentation * GetHierarchyRepresentation()
vtkHierarchicalGraphView::SetHierarchyFromInput
vtkDataRepresentation * SetHierarchyFromInput(vtkDataObject *input)
vtkGraphLayoutView.h
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:71
vtkHierarchicalGraphView::GetGraphEdgeLabelVisibility
virtual bool GetGraphEdgeLabelVisibility()
vtkGraphLayoutView
Lays out and displays a graph.
Definition: vtkGraphLayoutView.h:60
vtkHierarchicalGraphView::New
static vtkHierarchicalGraphView * New()
vtkHierarchicalGraphView::~vtkHierarchicalGraphView
~vtkHierarchicalGraphView()
vtkHierarchicalGraphView::SetGraphFromInputConnection
vtkDataRepresentation * SetGraphFromInputConnection(vtkAlgorithmOutput *conn)
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:70
vtkHierarchicalGraphView::GetGraphVisibility
virtual bool GetGraphVisibility()
vtkHierarchicalGraphView::GetColorGraphEdgesByArray
virtual bool GetColorGraphEdgesByArray()
vtkHierarchicalGraphView::SetGraphEdgeLabelFontSize
virtual void SetGraphEdgeLabelFontSize(const int size)
The size of the font used for edge labeling.
vtkHierarchicalGraphView::GetGraphEdgeLabelFontSize
virtual int GetGraphEdgeLabelFontSize()
vtkHierarchicalGraphView::GetGraphEdgeColorArrayName
virtual const char * GetGraphEdgeColorArrayName()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkHierarchicalGraphView::SetGraphEdgeLabelArrayName
virtual void SetGraphEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
vtkHierarchicalGraphView::SetHierarchyFromInputConnection
vtkDataRepresentation * SetHierarchyFromInputConnection(vtkAlgorithmOutput *conn)
Set the tree and graph representations to the appropriate input ports.
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkHierarchicalGraphView::CreateDefaultRepresentation
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
Overrides behavior in vtkGraphLayoutView to create a vtkRenderedHierarchyRepresentation by default.
vtkHierarchicalGraphView::GetGraphRepresentation
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
vtkHierarchicalGraphView::SetColorGraphEdgesByArray
virtual void SetColorGraphEdgesByArray(bool vis)
Whether to color edges.
vtkHierarchicalGraphView::SetGraphFromInput
vtkDataRepresentation * SetGraphFromInput(vtkDataObject *input)
vtkHierarchicalGraphView::SetBundlingStrength
virtual void SetBundlingStrength(double strength)
Set the bundling strength.
vtkHierarchicalGraphView::GetGraphEdgeLabelArrayName
virtual const char * GetGraphEdgeLabelArrayName()
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkHierarchicalGraphView
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display.
Definition: vtkHierarchicalGraphView.h:56
vtkHierarchicalGraphView::GetBundlingStrength
virtual double GetBundlingStrength()
vtkHierarchicalGraphView::SetGraphVisibility
virtual void SetGraphVisibility(bool b)
Whether the graph edges are visible (default off).
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkHierarchicalGraphView::SetGraphEdgeColorArrayName
virtual void SetGraphEdgeColorArrayName(const char *name)
The array to use for coloring edges.
vtkHierarchicalGraphView::vtkHierarchicalGraphView
vtkHierarchicalGraphView()