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 -------------------------------------------------------------------------*/
26 #ifndef vtkRenderedHierarchyRepresentation_h
27 #define vtkRenderedHierarchyRepresentation_h
28 
29 #include "vtkViewsInfovisModule.h" // For export macro
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
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 
101  virtual void SetGraphSplineType(int type, int idx);
102  virtual int GetGraphSplineType(int idx);
104 
105  virtual void SetGraphEdgeLabelFontSize(int size)
106  { this->SetGraphEdgeLabelFontSize(size, 0); }
107  virtual void SetGraphEdgeLabelFontSize(int size, int idx);
109  { return this->GetGraphEdgeLabelFontSize(0); }
110  virtual int GetGraphEdgeLabelFontSize(int idx);
111 
112 protected:
115 
117 
120  bool AddToView(vtkView* view) override;
121  bool RemoveFromView(vtkView* view) override;
123 
127  bool ValidIndex(int idx);
128 
129  vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel) override;
130 
131  int FillInputPortInformation(int port, vtkInformation* info) override;
132 
136  int RequestData(
137  vtkInformation* request,
138  vtkInformationVector** inputVector,
139  vtkInformationVector* outputVector) override;
140 
141  void ApplyViewTheme(vtkViewTheme* theme) override;
142 
143  class Internals;
144  Internals* Implementation;
145 
146 private:
148  void operator=(const vtkRenderedHierarchyRepresentation&) = delete;
149 };
150 
151 #endif
152 
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
virtual void SetGraphEdgeLabelArrayName(const char *name)
A node in a selection tree.
Definition: vtkSelection.h:37
virtual void SetGraphEdgeColorArrayName(const char *name)
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
The superclass for all views.
Definition: vtkView.h:54
a simple class to control print indentation
Definition: vtkIndent.h:33
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Connect inputs to internal pipeline.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
bool RemoveFromView(vtkView *view) override
Called by the view to add/remove this representation.
Store zero or more vtkInformation instances.
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
static vtkRenderedGraphRepresentation * New()
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.