VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkViewsInfovisModule.h" // For export macro
31 #include "vtkObject.h"
32 
33 class vtkActor;
34 class vtkActor2D;
35 class vtkAlgorithmOutput;
36 class vtkApplyColors;
38 class vtkDynamic2DLabelMapper;
39 class vtkEdgeCenters;
41 class vtkGraphToPolyData;
42 class vtkPolyDataMapper;
43 class vtkRenderView;
45 class vtkSelection;
46 class vtkTextProperty;
47 class vtkViewTheme;
48 
49 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
50 {
51 public:
52  static vtkHierarchicalGraphPipeline* New();
53  vtkTypeMacro(vtkHierarchicalGraphPipeline, vtkObject);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  vtkGetObjectMacro(Actor, vtkActor);
60 
62 
63  vtkGetObjectMacro(LabelActor, vtkActor2D);
65 
67 
68  virtual void SetBundlingStrength(double strength);
69  virtual double GetBundlingStrength();
71 
73 
74  virtual void SetLabelArrayName(const char* name);
75  virtual const char* GetLabelArrayName();
77 
79 
80  virtual void SetLabelVisibility(bool vis);
81  virtual bool GetLabelVisibility();
82  vtkBooleanMacro(LabelVisibility, bool);
84 
86 
87  virtual void SetLabelTextProperty(vtkTextProperty* prop);
88  virtual vtkTextProperty* GetLabelTextProperty();
90 
92 
93  virtual void SetColorArrayName(const char* name);
94  virtual const char* GetColorArrayName();
96 
98 
99  virtual void SetColorEdgesByArray(bool vis);
100  virtual bool GetColorEdgesByArray();
101  vtkBooleanMacro(ColorEdgesByArray, bool);
103 
105 
106  virtual void SetVisibility(bool vis);
107  virtual bool GetVisibility();
108  vtkBooleanMacro(Visibility, bool);
110 
113  virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
114 
116 
119  virtual void PrepareInputConnections(
120  vtkAlgorithmOutput* graphConn,
121  vtkAlgorithmOutput* treeConn,
122  vtkAlgorithmOutput* annConn);
124 
126  virtual void ApplyViewTheme(vtkViewTheme* theme);
127 
129 
130  vtkSetStringMacro(HoverArrayName);
131  vtkGetStringMacro(HoverArrayName);
133 
135 
138  virtual void SetSplineType(int type);
139  virtual int GetSplineType();
141 
143  void RegisterProgress(vtkRenderView* view);
144 
145 protected:
148 
153  vtkPolyDataMapper* Mapper;
154  vtkActor* Actor;
155  vtkTextProperty* TextProperty;
157  vtkDynamic2DLabelMapper* LabelMapper;
158  vtkActor2D* LabelActor;
159 
161 
162  vtkSetStringMacro(ColorArrayNameInternal);
163  vtkGetStringMacro(ColorArrayNameInternal);
165 
166  vtkSetStringMacro(LabelArrayNameInternal);
167  vtkGetStringMacro(LabelArrayNameInternal);
169 
170 private:
172  void operator=(const vtkHierarchicalGraphPipeline&); // Not implemented
173 };
174 
subsample graph edges to make smooth curves
helper class for rendering graphs superimposed on a tree.
convert a vtkGraph to vtkPolyData
generate points at center of edges
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:47
The superclass for all representations.
vtkGraphHierarchicalBundleEdges * Bundle
A view containing a renderer.
Definition: vtkRenderView.h:63
apply colors to a data set.