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 #include "vtkObject.h"
31 
32 class vtkActor;
33 class vtkActor2D;
34 class vtkAlgorithmOutput;
35 class vtkApplyColors;
38 class vtkEdgeCenters;
40 class vtkGraphToPolyData;
41 class vtkPolyDataMapper;
42 class vtkRenderView;
44 class vtkSelection;
45 class vtkTextProperty;
46 class vtkViewTheme;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  vtkGetObjectMacro(Actor, vtkActor);
59 
61 
62  vtkGetObjectMacro(LabelActor, vtkActor2D);
64 
66 
67  virtual void SetBundlingStrength(double strength);
68  virtual double GetBundlingStrength();
70 
72 
73  virtual void SetLabelArrayName(const char* name);
74  virtual const char* GetLabelArrayName();
76 
78 
79  virtual void SetLabelVisibility(bool vis);
80  virtual bool GetLabelVisibility();
81  vtkBooleanMacro(LabelVisibility, bool);
83 
85 
86  virtual void SetLabelTextProperty(vtkTextProperty* prop);
87  virtual vtkTextProperty* GetLabelTextProperty();
89 
91 
92  virtual void SetColorArrayName(const char* name);
93  virtual const char* GetColorArrayName();
95 
97 
98  virtual void SetColorEdgesByArray(bool vis);
99  virtual bool GetColorEdgesByArray();
100  vtkBooleanMacro(ColorEdgesByArray, bool);
102 
104 
105  virtual void SetVisibility(bool vis);
106  virtual bool GetVisibility();
107  vtkBooleanMacro(Visibility, bool);
109 
112  virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
113 
115 
118  virtual void PrepareInputConnections(
119  vtkAlgorithmOutput* graphConn,
120  vtkAlgorithmOutput* treeConn,
121  vtkAlgorithmOutput* annConn);
123 
125  virtual void ApplyViewTheme(vtkViewTheme* theme);
126 
128 
129  vtkSetStringMacro(HoverArrayName);
130  vtkGetStringMacro(HoverArrayName);
132 
134 
137  virtual void SetSplineType(int type);
138  virtual int GetSplineType();
140 
142  void RegisterProgress(vtkRenderView* view);
143 
144 protected:
147 
158 
160 
161  vtkSetStringMacro(ColorArrayNameInternal);
162  vtkGetStringMacro(ColorArrayNameInternal);
164 
165  vtkSetStringMacro(LabelArrayNameInternal);
166  vtkGetStringMacro(LabelArrayNameInternal);
168 
169 private:
171  void operator=(const vtkHierarchicalGraphPipeline&); // Not implemented
172 };
173 
subsample graph edges to make smooth curves
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
abstract base class for most VTK objects
Definition: vtkObject.h:60
helper class for rendering graphs superimposed on a tree.
a actor that draws 2D data
Definition: vtkActor2D.h:43
draw text labels at 2D dataset points
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
#define VTK_VIEWS_EXPORT
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:46
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
The superclass for all representations.
represent text properties.
map vtkPolyData to graphics primitives
vtkGraphHierarchicalBundleEdges * Bundle
A view containing a renderer.
Definition: vtkRenderView.h:62
apply colors to a data set.
static vtkObject * New()