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 -------------------------------------------------------------------------*/
30 #ifndef vtkHierarchicalGraphPipeline_h
31 #define vtkHierarchicalGraphPipeline_h
32 
33 #include "vtkViewsInfovisModule.h" // For export macro
34 #include "vtkObject.h"
35 
36 class vtkActor;
37 class vtkActor2D;
38 class vtkAlgorithmOutput;
39 class vtkApplyColors;
42 class vtkEdgeCenters;
44 class vtkGraphToPolyData;
45 class vtkPolyDataMapper;
46 class vtkRenderView;
48 class vtkSelection;
49 class vtkTextProperty;
50 class vtkViewTheme;
51 
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkGetObjectMacro(Actor, vtkActor);
63 
65 
66  vtkGetObjectMacro(LabelActor, vtkActor2D);
68 
70 
71  virtual void SetBundlingStrength(double strength);
72  virtual double GetBundlingStrength();
74 
76 
77  virtual void SetLabelArrayName(const char* name);
78  virtual const char* GetLabelArrayName();
80 
82 
83  virtual void SetLabelVisibility(bool vis);
84  virtual bool GetLabelVisibility();
85  vtkBooleanMacro(LabelVisibility, bool);
87 
89 
90  virtual void SetLabelTextProperty(vtkTextProperty* prop);
91  virtual vtkTextProperty* GetLabelTextProperty();
93 
95 
96  virtual void SetColorArrayName(const char* name);
97  virtual const char* GetColorArrayName();
99 
101 
102  virtual void SetColorEdgesByArray(bool vis);
103  virtual bool GetColorEdgesByArray();
104  vtkBooleanMacro(ColorEdgesByArray, bool);
106 
108 
109  virtual void SetVisibility(bool vis);
110  virtual bool GetVisibility();
111  vtkBooleanMacro(Visibility, bool);
113 
116  virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
117 
119 
122  virtual void PrepareInputConnections(
123  vtkAlgorithmOutput* graphConn,
124  vtkAlgorithmOutput* treeConn,
125  vtkAlgorithmOutput* annConn);
127 
129  virtual void ApplyViewTheme(vtkViewTheme* theme);
130 
132 
133  vtkSetStringMacro(HoverArrayName);
134  vtkGetStringMacro(HoverArrayName);
136 
138 
141  virtual void SetSplineType(int type);
142  virtual int GetSplineType();
144 
146  void RegisterProgress(vtkRenderView* view);
147 
148 protected:
151 
162 
164 
165  vtkSetStringMacro(ColorArrayNameInternal);
166  vtkGetStringMacro(ColorArrayNameInternal);
168 
169  vtkSetStringMacro(LabelArrayNameInternal);
170  vtkGetStringMacro(LabelArrayNameInternal);
172 
173 private:
175  void operator=(const vtkHierarchicalGraphPipeline&); // Not implemented
176 };
177 
178 #endif
subsample graph edges to make smooth curves
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
abstract base class for most VTK objects
Definition: vtkObject.h:61
helper class for rendering graphs superimposed on a tree.
a actor that draws 2D data
Definition: vtkActor2D.h:44
draw text labels at 2D dataset points
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
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:47
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
The superclass for all representations.
represent text properties.
map vtkPolyData to graphics primitives
vtkGraphHierarchicalBundleEdges * Bundle
A view containing a renderer.
Definition: vtkRenderView.h:63
apply colors to a data set.
static vtkObject * New()
#define VTKVIEWSINFOVIS_EXPORT