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 
37 class vtkActor;
38 class vtkActor2D;
39 class vtkAlgorithmOutput;
40 class vtkApplyColors;
43 class vtkEdgeCenters;
45 class vtkGraphToPolyData;
46 class vtkPolyDataMapper;
47 class vtkRenderView;
49 class vtkSelection;
50 class vtkTextProperty;
51 class vtkViewTheme;
52 
53 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
54 {
55 public:
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 
103  virtual void SetLabelTextProperty(vtkTextProperty* prop);
104  virtual vtkTextProperty* GetLabelTextProperty();
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 
137  virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
138 
145  virtual void PrepareInputConnections(
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 
177  void RegisterProgress(vtkRenderView* view);
178 
179 protected:
181  ~vtkHierarchicalGraphPipeline() override;
182 
193 
195 
196  vtkSetStringMacro(ColorArrayNameInternal);
197  vtkGetStringMacro(ColorArrayNameInternal);
199 
200  vtkSetStringMacro(LabelArrayNameInternal);
201  vtkGetStringMacro(LabelArrayNameInternal);
203 
204 private:
206  void operator=(const vtkHierarchicalGraphPipeline&) = delete;
207 };
208 
209 #endif
subsample graph edges to make smooth curves
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
helper class for rendering graphs superimposed on a tree.
a actor that draws 2D data
Definition: vtkActor2D.h:45
draw text labels at 2D dataset points
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:63
Proxy object to connect input/output ports.
convert a vtkGraph to vtkPolyData
generate points at center of edges
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:48
a simple class to control print indentation
Definition: vtkIndent.h:39
The superclass for all representations.
represent text properties.
map vtkPolyData to graphics primitives
vtkGraphHierarchicalBundleEdges * Bundle
A view containing a renderer.
Definition: vtkRenderView.h:61
apply colors to a data set.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...