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 
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41  */
42  virtual void SetGraphEdgeLabelArrayName(const char* name)
43  { this->SetGraphEdgeLabelArrayName(name, 0); }
44  virtual void SetGraphEdgeLabelArrayName(const char* name, int idx);
45  virtual const char* GetGraphEdgeLabelArrayName()
46  { return this->GetGraphEdgeLabelArrayName(0); }
47  virtual const char* GetGraphEdgeLabelArrayName(int idx);
49 
50  virtual void SetGraphEdgeLabelVisibility(bool vis)
51  { this->SetGraphEdgeLabelVisibility(vis, 0); }
52  virtual void SetGraphEdgeLabelVisibility(bool vis, int idx);
53  virtual bool GetGraphEdgeLabelVisibility()
54  { return this->GetGraphEdgeLabelVisibility(0); }
55  virtual bool GetGraphEdgeLabelVisibility(int idx);
56  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
57 
58  virtual void SetGraphEdgeColorArrayName(const char* name)
59  { this->SetGraphEdgeColorArrayName(name, 0); }
60  virtual void SetGraphEdgeColorArrayName(const char* name, int idx);
61  virtual const char* GetGraphEdgeColorArrayName()
62  { return this->GetGraphEdgeColorArrayName(0); }
63  virtual const char* GetGraphEdgeColorArrayName(int idx);
64 
65  virtual void SetColorGraphEdgesByArray(bool vis)
66  { this->SetColorGraphEdgesByArray(vis, 0); }
67  virtual void SetColorGraphEdgesByArray(bool vis, int idx);
68  virtual bool GetColorGraphEdgesByArray()
69  { return this->GetColorGraphEdgesByArray(0); }
70  virtual bool GetColorGraphEdgesByArray(int idx);
71  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
72 
73  virtual void SetGraphEdgeColorToSplineFraction()
74  { this->SetGraphEdgeColorArrayName("fraction", 0); }
75  virtual void SetGraphEdgeColorToSplineFraction(int idx)
76  { this->SetGraphEdgeColorArrayName("fraction", idx); }
77 
78  virtual void SetGraphVisibility(bool vis)
79  { this->SetGraphVisibility(vis, 0); }
80  virtual void SetGraphVisibility(bool vis, int idx);
81  virtual bool GetGraphVisibility()
82  { return this->GetGraphVisibility(0); }
83  virtual bool GetGraphVisibility(int idx);
84  vtkBooleanMacro(GraphVisibility, bool);
85 
86  virtual void SetBundlingStrength(double strength)
87  { this->SetBundlingStrength(strength, 0); }
88  virtual void SetBundlingStrength(double strength, int idx);
89  virtual double GetBundlingStrength()
90  { return this->GetBundlingStrength(0); }
91  virtual double GetBundlingStrength(int idx);
92 
94 
97  virtual void SetGraphSplineType(int type, int idx);
98  virtual int GetGraphSplineType(int idx);
100 
101  virtual void SetGraphEdgeLabelFontSize(int size)
102  { this->SetGraphEdgeLabelFontSize(size, 0); }
103  virtual void SetGraphEdgeLabelFontSize(int size, int idx);
104  virtual int GetGraphEdgeLabelFontSize()
105  { return this->GetGraphEdgeLabelFontSize(0); }
106  virtual int GetGraphEdgeLabelFontSize(int idx);
107 
108 protected:
111 
113 
114  virtual bool AddToView(vtkView* view);
115  virtual bool RemoveFromView(vtkView* view);
117 
119  bool ValidIndex(int idx);
120 
121  virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel);
122 
124 
126 
127  virtual int RequestData(
128  vtkInformation* request,
129  vtkInformationVector** inputVector,
130  vtkInformationVector* outputVector);
132 
133  virtual void ApplyViewTheme(vtkViewTheme* theme);
134 
135  //BTX
136  class Internals;
137  Internals* Implementation;
138  //ETX
139 
140 private:
142  void operator=(const vtkRenderedHierarchyRepresentation&); // Not implemented
143 };
144 
145 #endif
146