VTK  9.3.20240424
vtkRenderedHierarchyRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
13#ifndef vtkRenderedHierarchyRepresentation_h
14#define vtkRenderedHierarchyRepresentation_h
15
17#include "vtkViewsInfovisModule.h" // For export macro
18
19VTK_ABI_NAMESPACE_BEGIN
20class VTKVIEWSINFOVIS_EXPORT vtkRenderedHierarchyRepresentation
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
29
32 virtual void SetGraphEdgeLabelArrayName(const char* name)
33 {
34 this->SetGraphEdgeLabelArrayName(name, 0);
35 }
36 virtual void SetGraphEdgeLabelArrayName(const char* name, int idx);
37 virtual const char* GetGraphEdgeLabelArrayName() { return this->GetGraphEdgeLabelArrayName(0); }
38 virtual const char* GetGraphEdgeLabelArrayName(int idx);
40
41 virtual void SetGraphEdgeLabelVisibility(bool vis) { this->SetGraphEdgeLabelVisibility(vis, 0); }
42 virtual void SetGraphEdgeLabelVisibility(bool vis, int idx);
43 virtual bool GetGraphEdgeLabelVisibility() { return this->GetGraphEdgeLabelVisibility(0); }
44 virtual bool GetGraphEdgeLabelVisibility(int idx);
45 vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
46
47 virtual void SetGraphEdgeColorArrayName(const char* name)
48 {
49 this->SetGraphEdgeColorArrayName(name, 0);
50 }
51 virtual void SetGraphEdgeColorArrayName(const char* name, int idx);
52 virtual const char* GetGraphEdgeColorArrayName() { return this->GetGraphEdgeColorArrayName(0); }
53 virtual const char* GetGraphEdgeColorArrayName(int idx);
54
55 virtual void SetColorGraphEdgesByArray(bool vis) { this->SetColorGraphEdgesByArray(vis, 0); }
56 virtual void SetColorGraphEdgesByArray(bool vis, int idx);
57 virtual bool GetColorGraphEdgesByArray() { return this->GetColorGraphEdgesByArray(0); }
58 virtual bool GetColorGraphEdgesByArray(int idx);
59 vtkBooleanMacro(ColorGraphEdgesByArray, bool);
60
62 {
63 this->SetGraphEdgeColorArrayName("fraction", 0);
64 }
66 {
67 this->SetGraphEdgeColorArrayName("fraction", idx);
68 }
69
70 virtual void SetGraphVisibility(bool vis) { this->SetGraphVisibility(vis, 0); }
71 virtual void SetGraphVisibility(bool vis, int idx);
72 virtual bool GetGraphVisibility() { return this->GetGraphVisibility(0); }
73 virtual bool GetGraphVisibility(int idx);
74 vtkBooleanMacro(GraphVisibility, bool);
75
76 virtual void SetBundlingStrength(double strength) { this->SetBundlingStrength(strength, 0); }
77 virtual void SetBundlingStrength(double strength, int idx);
78 virtual double GetBundlingStrength() { return this->GetBundlingStrength(0); }
79 virtual double GetBundlingStrength(int idx);
80
82
88 virtual void SetGraphSplineType(int type, int idx);
89 virtual int GetGraphSplineType(int idx);
91
92 virtual void SetGraphEdgeLabelFontSize(int size) { this->SetGraphEdgeLabelFontSize(size, 0); }
93 virtual void SetGraphEdgeLabelFontSize(int size, int idx);
94 virtual int GetGraphEdgeLabelFontSize() { return this->GetGraphEdgeLabelFontSize(0); }
95 virtual int GetGraphEdgeLabelFontSize(int idx);
96
97protected:
100
102
105 bool AddToView(vtkView* view) override;
106 bool RemoveFromView(vtkView* view) override;
108
112 bool ValidIndex(int idx);
113
115
116 int FillInputPortInformation(int port, vtkInformation* info) override;
117
122 vtkInformationVector* outputVector) override;
123
124 void ApplyViewTheme(vtkViewTheme* theme) override;
125
126 class Internals;
127 Internals* Implementation;
128
129private:
131 void operator=(const vtkRenderedHierarchyRepresentation&) = delete;
132};
133
134VTK_ABI_NAMESPACE_END
135#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
virtual void SetGraphEdgeLabelVisibility(bool vis, int idx)
virtual void SetColorGraphEdgesByArray(bool vis, int idx)
virtual void SetGraphEdgeLabelArrayName(const char *name, int idx)
virtual const char * GetGraphEdgeLabelArrayName(int idx)
virtual bool GetColorGraphEdgesByArray(int idx)
virtual bool GetGraphVisibility(int idx)
virtual void SetGraphEdgeColorArrayName(const char *name, int idx)
virtual void SetGraphEdgeLabelFontSize(int size, int idx)
virtual int GetGraphEdgeLabelFontSize(int idx)
virtual int GetGraphSplineType(int idx)
Sets the spline type for the graph edges.
bool ValidIndex(int idx)
Whether idx is a valid graph index.
void ApplyViewTheme(vtkViewTheme *theme) override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets up the input connections for this representation.
static vtkRenderedHierarchyRepresentation * New()
virtual void SetGraphEdgeColorArrayName(const char *name)
virtual double GetBundlingStrength(int idx)
virtual void SetGraphEdgeLabelArrayName(const char *name)
virtual void SetBundlingStrength(double strength, int idx)
bool RemoveFromView(vtkView *view) override
Called by the view to add/remove this representation.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual const char * GetGraphEdgeColorArrayName(int idx)
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
virtual bool GetGraphEdgeLabelVisibility(int idx)
virtual void SetGraphSplineType(int type, int idx)
Sets the spline type for the graph edges.
virtual void SetGraphVisibility(bool vis, int idx)
data object that represents a "selection" in VTK.
Sets theme colors for a graphical view.
The superclass for all views.
Definition vtkView.h:49