VTK
vtkRenderedHierarchyRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderedHierarchyRepresentation.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 -------------------------------------------------------------------------*/
28 #ifndef vtkRenderedHierarchyRepresentation_h
29 #define vtkRenderedHierarchyRepresentation_h
30 
31 #include "vtkViewsInfovisModule.h" // For export macro
33 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42  */
43  virtual void SetGraphEdgeLabelArrayName(const char* name)
44  { this->SetGraphEdgeLabelArrayName(name, 0); }
45  virtual void SetGraphEdgeLabelArrayName(const char* name, int idx);
46  virtual const char* GetGraphEdgeLabelArrayName()
47  { return this->GetGraphEdgeLabelArrayName(0); }
48  virtual const char* GetGraphEdgeLabelArrayName(int idx);
50 
51  virtual void SetGraphEdgeLabelVisibility(bool vis)
52  { this->SetGraphEdgeLabelVisibility(vis, 0); }
53  virtual void SetGraphEdgeLabelVisibility(bool vis, int idx);
55  { return this->GetGraphEdgeLabelVisibility(0); }
56  virtual bool GetGraphEdgeLabelVisibility(int idx);
57  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
58 
59  virtual void SetGraphEdgeColorArrayName(const char* name)
60  { this->SetGraphEdgeColorArrayName(name, 0); }
61  virtual void SetGraphEdgeColorArrayName(const char* name, int idx);
62  virtual const char* GetGraphEdgeColorArrayName()
63  { return this->GetGraphEdgeColorArrayName(0); }
64  virtual const char* GetGraphEdgeColorArrayName(int idx);
65 
66  virtual void SetColorGraphEdgesByArray(bool vis)
67  { this->SetColorGraphEdgesByArray(vis, 0); }
68  virtual void SetColorGraphEdgesByArray(bool vis, int idx);
70  { return this->GetColorGraphEdgesByArray(0); }
71  virtual bool GetColorGraphEdgesByArray(int idx);
72  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
73 
75  { this->SetGraphEdgeColorArrayName("fraction", 0); }
76  virtual void SetGraphEdgeColorToSplineFraction(int idx)
77  { this->SetGraphEdgeColorArrayName("fraction", idx); }
78 
79  virtual void SetGraphVisibility(bool vis)
80  { this->SetGraphVisibility(vis, 0); }
81  virtual void SetGraphVisibility(bool vis, int idx);
82  virtual bool GetGraphVisibility()
83  { return this->GetGraphVisibility(0); }
84  virtual bool GetGraphVisibility(int idx);
85  vtkBooleanMacro(GraphVisibility, bool);
86 
87  virtual void SetBundlingStrength(double strength)
88  { this->SetBundlingStrength(strength, 0); }
89  virtual void SetBundlingStrength(double strength, int idx);
90  virtual double GetBundlingStrength()
91  { return this->GetBundlingStrength(0); }
92  virtual double GetBundlingStrength(int idx);
93 
95 
98  virtual void SetGraphSplineType(int type, int idx);
99  virtual int GetGraphSplineType(int idx);
101 
102  virtual void SetGraphEdgeLabelFontSize(int size)
103  { this->SetGraphEdgeLabelFontSize(size, 0); }
104  virtual void SetGraphEdgeLabelFontSize(int size, int idx);
106  { return this->GetGraphEdgeLabelFontSize(0); }
107  virtual int GetGraphEdgeLabelFontSize(int idx);
108 
109 protected:
112 
114 
115  virtual bool AddToView(vtkView* view);
116  virtual bool RemoveFromView(vtkView* view);
118 
120  bool ValidIndex(int idx);
121 
122  virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel);
123 
125 
127 
128  virtual int RequestData(
129  vtkInformation* request,
130  vtkInformationVector** inputVector,
131  vtkInformationVector* outputVector);
133 
134  virtual void ApplyViewTheme(vtkViewTheme* theme);
135 
136  //BTX
137  class Internals;
138  Internals* Implementation;
139  //ETX
140 
141 private:
143  void operator=(const vtkRenderedHierarchyRepresentation&); // Not implemented
144 };
145 
146 #endif
147 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel)
virtual void SetGraphEdgeColorArrayName(const char *name)
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:47
virtual int FillInputPortInformation(int port, vtkInformation *info)
The superclass for all views.
Definition: vtkView.h:62
virtual bool RemoveFromView(vtkView *view)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual bool AddToView(vtkView *view)
Store zero or more vtkInformation instances.
static vtkRenderedGraphRepresentation * New()
virtual void ApplyViewTheme(vtkViewTheme *theme)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKVIEWSINFOVIS_EXPORT
*virtual void SetGraphEdgeLabelArrayName(const char *name)