VTK  9.0.1
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 
30 #include "vtkViewsInfovisModule.h" // For export macro
31 
32 class VTKVIEWSINFOVIS_EXPORT vtkRenderedHierarchyRepresentation
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  virtual void SetGraphEdgeLabelArrayName(const char* name)
45  {
46  this->SetGraphEdgeLabelArrayName(name, 0);
47  }
48  virtual void SetGraphEdgeLabelArrayName(const char* name, int idx);
49  virtual const char* GetGraphEdgeLabelArrayName() { return this->GetGraphEdgeLabelArrayName(0); }
50  virtual const char* GetGraphEdgeLabelArrayName(int idx);
52 
53  virtual void SetGraphEdgeLabelVisibility(bool vis) { this->SetGraphEdgeLabelVisibility(vis, 0); }
54  virtual void SetGraphEdgeLabelVisibility(bool vis, int idx);
55  virtual bool GetGraphEdgeLabelVisibility() { return this->GetGraphEdgeLabelVisibility(0); }
56  virtual bool GetGraphEdgeLabelVisibility(int idx);
57  vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
58 
59  virtual void SetGraphEdgeColorArrayName(const char* name)
60  {
61  this->SetGraphEdgeColorArrayName(name, 0);
62  }
63  virtual void SetGraphEdgeColorArrayName(const char* name, int idx);
64  virtual const char* GetGraphEdgeColorArrayName() { return this->GetGraphEdgeColorArrayName(0); }
65  virtual const char* GetGraphEdgeColorArrayName(int idx);
66 
67  virtual void SetColorGraphEdgesByArray(bool vis) { this->SetColorGraphEdgesByArray(vis, 0); }
68  virtual void SetColorGraphEdgesByArray(bool vis, int idx);
69  virtual bool GetColorGraphEdgesByArray() { return this->GetColorGraphEdgesByArray(0); }
70  virtual bool GetColorGraphEdgesByArray(int idx);
71  vtkBooleanMacro(ColorGraphEdgesByArray, bool);
72 
74  {
75  this->SetGraphEdgeColorArrayName("fraction", 0);
76  }
77  virtual void SetGraphEdgeColorToSplineFraction(int idx)
78  {
79  this->SetGraphEdgeColorArrayName("fraction", idx);
80  }
81 
82  virtual void SetGraphVisibility(bool vis) { this->SetGraphVisibility(vis, 0); }
83  virtual void SetGraphVisibility(bool vis, int idx);
84  virtual bool GetGraphVisibility() { return this->GetGraphVisibility(0); }
85  virtual bool GetGraphVisibility(int idx);
86  vtkBooleanMacro(GraphVisibility, bool);
87 
88  virtual void SetBundlingStrength(double strength) { this->SetBundlingStrength(strength, 0); }
89  virtual void SetBundlingStrength(double strength, int idx);
90  virtual double GetBundlingStrength() { return this->GetBundlingStrength(0); }
91  virtual double GetBundlingStrength(int idx);
92 
94 
100  virtual void SetGraphSplineType(int type, int idx);
101  virtual int GetGraphSplineType(int idx);
103 
104  virtual void SetGraphEdgeLabelFontSize(int size) { this->SetGraphEdgeLabelFontSize(size, 0); }
105  virtual void SetGraphEdgeLabelFontSize(int size, int idx);
106  virtual int GetGraphEdgeLabelFontSize() { return this->GetGraphEdgeLabelFontSize(0); }
107  virtual int GetGraphEdgeLabelFontSize(int idx);
108 
109 protected:
112 
114 
117  bool AddToView(vtkView* view) override;
118  bool RemoveFromView(vtkView* view) override;
120 
124  bool ValidIndex(int idx);
125 
126  vtkSelection* ConvertSelection(vtkView* view, vtkSelection* sel) override;
127 
128  int FillInputPortInformation(int port, vtkInformation* info) override;
129 
133  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
134  vtkInformationVector* outputVector) override;
135 
136  void ApplyViewTheme(vtkViewTheme* theme) override;
137 
138  class Internals;
139  Internals* Implementation;
140 
141 private:
143  void operator=(const vtkRenderedHierarchyRepresentation&) = delete;
144 };
145 
146 #endif
vtkRenderedHierarchyRepresentation::GetColorGraphEdgesByArray
virtual bool GetColorGraphEdgesByArray()
Definition: vtkRenderedHierarchyRepresentation.h:69
vtkRenderedGraphRepresentation::ApplyViewTheme
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
vtkRenderedHierarchyRepresentation
Definition: vtkRenderedHierarchyRepresentation.h:32
vtkX3D::type
@ type
Definition: vtkX3D.h:522
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkRenderedGraphRepresentation::ConvertSelection
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:57
vtkRenderedHierarchyRepresentation::SetGraphVisibility
virtual void SetGraphVisibility(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:82
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorToSplineFraction
virtual void SetGraphEdgeColorToSplineFraction(int idx)
Definition: vtkRenderedHierarchyRepresentation.h:77
vtkRenderedGraphRepresentation
Definition: vtkRenderedGraphRepresentation.h:64
vtkRenderedGraphRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
vtkView
The superclass for all views.
Definition: vtkView.h:63
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
vtkRenderedGraphRepresentation::AddToView
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkRenderedGraphRepresentation::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Connect inputs to internal pipeline.
vtkRenderedHierarchyRepresentation::SetColorGraphEdgesByArray
virtual void SetColorGraphEdgesByArray(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:67
vtkRenderedHierarchyRepresentation::GetBundlingStrength
virtual double GetBundlingStrength()
Definition: vtkRenderedHierarchyRepresentation.h:90
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelFontSize
virtual int GetGraphEdgeLabelFontSize()
Definition: vtkRenderedHierarchyRepresentation.h:106
vtkRenderedGraphRepresentation.h
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelVisibility
virtual void SetGraphEdgeLabelVisibility(bool vis)
Definition: vtkRenderedHierarchyRepresentation.h:53
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelFontSize
virtual void SetGraphEdgeLabelFontSize(int size)
Definition: vtkRenderedHierarchyRepresentation.h:104
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorToSplineFraction
virtual void SetGraphEdgeColorToSplineFraction()
Definition: vtkRenderedHierarchyRepresentation.h:73
vtkRenderedHierarchyRepresentation::SetBundlingStrength
virtual void SetBundlingStrength(double strength)
Definition: vtkRenderedHierarchyRepresentation.h:88
vtkRenderedHierarchyRepresentation::GetGraphEdgeColorArrayName
virtual const char * GetGraphEdgeColorArrayName()
Definition: vtkRenderedHierarchyRepresentation.h:64
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelVisibility
virtual bool GetGraphEdgeLabelVisibility()
Definition: vtkRenderedHierarchyRepresentation.h:55
vtkRenderedHierarchyRepresentation::GetGraphVisibility
virtual bool GetGraphVisibility()
Definition: vtkRenderedHierarchyRepresentation.h:84
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkRenderedHierarchyRepresentation::SetGraphEdgeColorArrayName
virtual void SetGraphEdgeColorArrayName(const char *name)
Definition: vtkRenderedHierarchyRepresentation.h:59
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkRenderedHierarchyRepresentation::SetGraphEdgeLabelArrayName
virtual void SetGraphEdgeLabelArrayName(const char *name)
Definition: vtkRenderedHierarchyRepresentation.h:44
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkRenderedHierarchyRepresentation::Implementation
Internals * Implementation
Definition: vtkRenderedHierarchyRepresentation.h:138
vtkRenderedHierarchyRepresentation::GetGraphEdgeLabelArrayName
virtual const char * GetGraphEdgeLabelArrayName()
Definition: vtkRenderedHierarchyRepresentation.h:49
vtkRenderedGraphRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderedGraphRepresentation::New
static vtkRenderedGraphRepresentation * New()