VTK  9.1.0
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 "vtkObject.h"
35#include "vtkViewsInfovisModule.h" // For export macro
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) override;
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, vtkAlgorithmOutput* treeConn, vtkAlgorithmOutput* annConn);
147
151 virtual void ApplyViewTheme(vtkViewTheme* theme);
152
154
157 vtkSetStringMacro(HoverArrayName);
158 vtkGetStringMacro(HoverArrayName);
160
162
168 virtual void SetSplineType(int type);
169 virtual int GetSplineType();
171
176
177protected:
180
191
193
194 vtkSetStringMacro(ColorArrayNameInternal);
195 vtkGetStringMacro(ColorArrayNameInternal);
197
198 vtkSetStringMacro(LabelArrayNameInternal);
199 vtkGetStringMacro(LabelArrayNameInternal);
201
202private:
204 void operator=(const vtkHierarchicalGraphPipeline&) = delete;
205};
206
207#endif
a actor that draws 2D data
Definition: vtkActor2D.h:149
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
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 int GetSplineType()
The spline mode to use in vtkSplineGraphEdges.
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.
~vtkHierarchicalGraphPipeline() override
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) override
Methods invoked by print to print information about the object including superclasses.
virtual bool GetLabelVisibility()
The edge label visibility.
virtual bool GetColorEdgesByArray()
Whether to color the edges by an array.
virtual void SetLabelArrayName(const char *name)
The edge label array name.
virtual double GetBundlingStrength()
The bundling strength for the bundled edges.
virtual const char * GetLabelArrayName()
The edge label array name.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Applies the view theme to this graph.
virtual const char * GetColorArrayName()
The edge color array.
virtual void SetColorEdgesByArray(bool vis)
Whether to color the edges by an array.
virtual vtkTextProperty * GetLabelTextProperty()
The edge label text property.
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 bool GetVisibility()
The visibility of this graph.
virtual void SetColorArrayName(const char *name)
The edge color array.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:84
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:163
subsample graph edges to make smooth curves
represent text properties.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:132