VTK: Views/Infovis/vtkRenderedHierarchyRepresentation.h Source File

| VTK 9.3.1

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
16 #include "vtkRenderedGraphRepresentation.h"
17 #include "vtkViewsInfovisModule.h" // For export macro
18
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKVIEWSINFOVIS_EXPORT vtkRenderedHierarchyRepresentation
21 : public vtkRenderedGraphRepresentation
22 {
23 public:
24 static vtkRenderedHierarchyRepresentation* New();
25 vtkTypeMacro(vtkRenderedHierarchyRepresentation, vtkRenderedGraphRepresentation);
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
61 virtual void SetGraphEdgeColorToSplineFraction()
62 {
63 this->SetGraphEdgeColorArrayName("fraction", 0);
64 }
65 virtual void SetGraphEdgeColorToSplineFraction(int idx)
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
97 protected:
98 vtkRenderedHierarchyRepresentation();
99 ~vtkRenderedHierarchyRepresentation() override;
100
102
105 bool AddToView(vtkView* view) override;
106 bool RemoveFromView(vtkView* view) override;
108
112 bool ValidIndex(int idx);
113
114 vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel) override;
115
116 int FillInputPortInformation(int port, vtkInformation* info) override;
117
121 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
122 vtkInformationVector* outputVector) override;
123
124 void ApplyViewTheme(vtkViewTheme* theme) override;
125
126 class Internals;
127 Internals* Implementation;
128
129 private:
130 vtkRenderedHierarchyRepresentation(const vtkRenderedHierarchyRepresentation&) = delete;
131 void operator=(const vtkRenderedHierarchyRepresentation&) = delete;
132 };
133
134 VTK_ABI_NAMESPACE_END
135 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:62
vtkRenderedHierarchyRepresentation
Definition: vtkRenderedHierarchyRepresentation.h:22
vtkRenderedHierarchyRepresentation::ConvertSelection
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkRenderedHierarchyRepresentation::vtkRenderedHierarchyRepresentation
vtkRenderedHierarchyRepresentation()
vtkRenderedHierarchyRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderedHierarchyRepresentation::GetGraphEdgeColorArrayName
virtual const char * GetGraphEdgeColorArrayName(int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelVisibility
virtual void SetGraphEdgeLabelVisibility(bool vis, int idx)
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelVisibility
virtual bool GetGraphEdgeLabelVisibility()
Definition: vtkRenderedHierarchyRepresentation.h:43
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelFontSize
virtual void SetGraphEdgeLabelFontSize(int size)
Definition: vtkRenderedHierarchyRepresentation.h:92
vtkRenderedHierarchyRepresentation::SetColorGraphEdgesByArray
virtual void SetColorGraphEdgesByArray(bool vis, int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelArrayName
virtual void SetGraphEdgeLabelArrayName(const char *name, int idx)
vtkRenderedHierarchyRepresentation::GetColorGraphEdgesByArray
virtual bool GetColorGraphEdgesByArray(int idx)
vtkRenderedHierarchyRepresentation::GetGraphVisibility
virtual bool GetGraphVisibility(int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorArrayName
virtual void SetGraphEdgeColorArrayName(const char *name, int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelFontSize
virtual void SetGraphEdgeLabelFontSize(int size, int idx)
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelFontSize
virtual int GetGraphEdgeLabelFontSize(int idx)
vtkRenderedHierarchyRepresentation::GetGraphSplineType
virtual int GetGraphSplineType(int idx)
Sets the spline type for the graph edges.
vtkRenderedHierarchyRepresentation::ValidIndex
bool ValidIndex(int idx)
Whether idx is a valid graph index.
vtkRenderedHierarchyRepresentation::ApplyViewTheme
void ApplyViewTheme(vtkViewTheme *theme) override
vtkRenderedHierarchyRepresentation::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets up the input connections for this representation.
vtkRenderedHierarchyRepresentation::SetBundlingStrength
virtual void SetBundlingStrength(double strength)
Definition: vtkRenderedHierarchyRepresentation.h:76
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelFontSize
virtual int GetGraphEdgeLabelFontSize()
Definition: vtkRenderedHierarchyRepresentation.h:94
vtkRenderedHierarchyRepresentation::GetGraphEdgeColorArrayName
virtual const char * GetGraphEdgeColorArrayName()
Definition: vtkRenderedHierarchyRepresentation.h:52
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelArrayName
virtual const char * GetGraphEdgeLabelArrayName(int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorArrayName
virtual void SetGraphEdgeColorArrayName(const char *name)
Definition: vtkRenderedHierarchyRepresentation.h:47
vtkRenderedHierarchyRepresentation::SetGraphVisibility
virtual void SetGraphVisibility(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:70
vtkRenderedHierarchyRepresentation::GetBundlingStrength
virtual double GetBundlingStrength(int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelArrayName
virtual void SetGraphEdgeLabelArrayName(const char *name)
Definition: vtkRenderedHierarchyRepresentation.h:32
vtkRenderedHierarchyRepresentation::SetBundlingStrength
virtual void SetBundlingStrength(double strength, int idx)
vtkRenderedHierarchyRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Called by the view to add/remove this representation.
vtkRenderedHierarchyRepresentation::Implementation
Internals * Implementation
Definition: vtkRenderedHierarchyRepresentation.h:126
vtkRenderedHierarchyRepresentation::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelArrayName
virtual const char * GetGraphEdgeLabelArrayName()
Definition: vtkRenderedHierarchyRepresentation.h:37
vtkRenderedHierarchyRepresentation::~vtkRenderedHierarchyRepresentation
~vtkRenderedHierarchyRepresentation() override
vtkRenderedHierarchyRepresentation::AddToView
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
vtkRenderedHierarchyRepresentation::SetColorGraphEdgesByArray
virtual void SetColorGraphEdgesByArray(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:55
vtkRenderedHierarchyRepresentation::GetGraphVisibility
virtual bool GetGraphVisibility()
Definition: vtkRenderedHierarchyRepresentation.h:72
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelVisibility
virtual bool GetGraphEdgeLabelVisibility(int idx)
vtkRenderedHierarchyRepresentation::SetGraphSplineType
virtual void SetGraphSplineType(int type, int idx)
Sets the spline type for the graph edges.
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorToSplineFraction
virtual void SetGraphEdgeColorToSplineFraction()
Definition: vtkRenderedHierarchyRepresentation.h:61
vtkRenderedHierarchyRepresentation::SetGraphVisibility
virtual void SetGraphVisibility(bool vis, int idx)
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelVisibility
virtual void SetGraphEdgeLabelVisibility(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:41
vtkRenderedHierarchyRepresentation::New
static vtkRenderedHierarchyRepresentation * New()
vtkRenderedHierarchyRepresentation::GetColorGraphEdgesByArray
virtual bool GetColorGraphEdgesByArray()
Definition: vtkRenderedHierarchyRepresentation.h:57
vtkRenderedHierarchyRepresentation::GetBundlingStrength
virtual double GetBundlingStrength()
Definition: vtkRenderedHierarchyRepresentation.h:78
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorToSplineFraction
virtual void SetGraphEdgeColorToSplineFraction(int idx)
Definition: vtkRenderedHierarchyRepresentation.h:65
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
vtkView
The superclass for all views.
Definition: vtkView.h:49
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkRenderedGraphRepresentation.h