VTK
vtkHierarchicalGraphPipeline.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHierarchicalGraphPipeline.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
31#ifndef vtkHierarchicalGraphPipeline_h
32#define vtkHierarchicalGraphPipeline_h
33
34#include "vtkViewsInfovisModule.h" // For export macro
35#include "vtkObject.h"
36
37class vtkActor;
38class vtkActor2D;
40class vtkApplyColors;
43class vtkEdgeCenters;
47class vtkRenderView;
49class vtkSelection;
50class vtkTextProperty;
51class vtkViewTheme;
52
53class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent);
59
61
64 vtkGetObjectMacro(Actor, vtkActor);
66
68
71 vtkGetObjectMacro(LabelActor, vtkActor2D);
73
75
78 virtual void SetBundlingStrength(double strength);
79 virtual double GetBundlingStrength();
81
83
86 virtual void SetLabelArrayName(const char* name);
87 virtual const char* GetLabelArrayName();
89
91
94 virtual void SetLabelVisibility(bool vis);
95 virtual bool GetLabelVisibility();
96 vtkBooleanMacro(LabelVisibility, bool);
98
100
106
108
111 virtual void SetColorArrayName(const char* name);
112 virtual const char* GetColorArrayName();
114
116
119 virtual void SetColorEdgesByArray(bool vis);
120 virtual bool GetColorEdgesByArray();
121 vtkBooleanMacro(ColorEdgesByArray, bool);
123
125
128 virtual void SetVisibility(bool vis);
129 virtual bool GetVisibility();
130 vtkBooleanMacro(Visibility, bool);
132
138
146 vtkAlgorithmOutput* graphConn,
147 vtkAlgorithmOutput* treeConn,
148 vtkAlgorithmOutput* annConn);
149
153 virtual void ApplyViewTheme(vtkViewTheme* theme);
154
156
159 vtkSetStringMacro(HoverArrayName);
160 vtkGetStringMacro(HoverArrayName);
162
164
170 virtual void SetSplineType(int type);
171 virtual int GetSplineType();
173
178
179protected:
182
193
195
196 vtkSetStringMacro(ColorArrayNameInternal);
197 vtkGetStringMacro(ColorArrayNameInternal);
199
200 vtkSetStringMacro(LabelArrayNameInternal);
201 vtkGetStringMacro(LabelArrayNameInternal);
203
204private:
206 void operator=(const vtkHierarchicalGraphPipeline&) VTK_DELETE_FUNCTION;
207};
208
209#endif
a actor that draws 2D data
Definition: vtkActor2D.h:46
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
Proxy object to connect input/output ports.
apply colors to a data set.
The superclass for all representations.
draw text labels at 2D dataset points
generate points at center of edges
convert a vtkGraph to vtkPolyData
helper class for rendering graphs superimposed on a tree.
virtual void PrepareInputConnections(vtkAlgorithmOutput *graphConn, vtkAlgorithmOutput *treeConn, vtkAlgorithmOutput *annConn)
Sets the input connections for this graph.
virtual void SetBundlingStrength(double strength)
The bundling strength for the bundled edges.
virtual void SetLabelTextProperty(vtkTextProperty *prop)
The edge label text property.
virtual void SetLabelVisibility(bool vis)
The edge label visibility.
virtual void SetSplineType(int type)
The spline mode to use in vtkSplineGraphEdges.
virtual void SetVisibility(bool vis)
The visibility of this graph.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool GetLabelVisibility()
virtual bool GetColorEdgesByArray()
virtual void SetLabelArrayName(const char *name)
The edge label array name.
virtual double GetBundlingStrength()
virtual const char * GetLabelArrayName()
virtual void ApplyViewTheme(vtkViewTheme *theme)
Applies the view theme to this graph.
virtual const char * GetColorArrayName()
virtual void SetColorEdgesByArray(bool vis)
Whether to color the edges by an array.
virtual vtkTextProperty * GetLabelTextProperty()
void RegisterProgress(vtkRenderView *view)
Register progress with a view.
vtkGraphHierarchicalBundleEdges * Bundle
static vtkHierarchicalGraphPipeline * New()
virtual vtkSelection * ConvertSelection(vtkDataRepresentation *rep, vtkSelection *sel)
Returns a new selection relevant to this graph based on an input selection and the view that this gra...
virtual void SetColorArrayName(const char *name)
The edge color array.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:62
A node in a selection tree.
Definition: vtkSelection.h:44
subsample graph edges to make smooth curves
represent text properties.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
@ type
Definition: vtkX3D.h:516
@ name
Definition: vtkX3D.h:219
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.