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-------------------------------------------------------------------------*/
29#ifndef vtkRenderedHierarchyRepresentation_h
30#define vtkRenderedHierarchyRepresentation_h
31
32#include "vtkViewsInfovisModule.h" // For export macro
34
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent);
41
43
46 virtual void SetGraphEdgeLabelArrayName(const char* name)
47 { this->SetGraphEdgeLabelArrayName(name, 0); }
48 virtual void SetGraphEdgeLabelArrayName(const char* name, int idx);
49 virtual const char* GetGraphEdgeLabelArrayName()
50 { return this->GetGraphEdgeLabelArrayName(0); }
51 virtual const char* GetGraphEdgeLabelArrayName(int idx);
53
54 virtual void SetGraphEdgeLabelVisibility(bool vis)
55 { this->SetGraphEdgeLabelVisibility(vis, 0); }
56 virtual void SetGraphEdgeLabelVisibility(bool vis, int idx);
58 { return this->GetGraphEdgeLabelVisibility(0); }
59 virtual bool GetGraphEdgeLabelVisibility(int idx);
60 vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
61
62 virtual void SetGraphEdgeColorArrayName(const char* name)
63 { this->SetGraphEdgeColorArrayName(name, 0); }
64 virtual void SetGraphEdgeColorArrayName(const char* name, int idx);
65 virtual const char* GetGraphEdgeColorArrayName()
66 { return this->GetGraphEdgeColorArrayName(0); }
67 virtual const char* GetGraphEdgeColorArrayName(int idx);
68
69 virtual void SetColorGraphEdgesByArray(bool vis)
70 { this->SetColorGraphEdgesByArray(vis, 0); }
71 virtual void SetColorGraphEdgesByArray(bool vis, int idx);
73 { return this->GetColorGraphEdgesByArray(0); }
74 virtual bool GetColorGraphEdgesByArray(int idx);
75 vtkBooleanMacro(ColorGraphEdgesByArray, bool);
76
78 { this->SetGraphEdgeColorArrayName("fraction", 0); }
80 { this->SetGraphEdgeColorArrayName("fraction", idx); }
81
82 virtual void SetGraphVisibility(bool vis)
83 { this->SetGraphVisibility(vis, 0); }
84 virtual void SetGraphVisibility(bool vis, int idx);
85 virtual bool GetGraphVisibility()
86 { return this->GetGraphVisibility(0); }
87 virtual bool GetGraphVisibility(int idx);
88 vtkBooleanMacro(GraphVisibility, bool);
89
90 virtual void SetBundlingStrength(double strength)
91 { this->SetBundlingStrength(strength, 0); }
92 virtual void SetBundlingStrength(double strength, int idx);
93 virtual double GetBundlingStrength()
94 { return this->GetBundlingStrength(0); }
95 virtual double GetBundlingStrength(int idx);
96
98
104 virtual void SetGraphSplineType(int type, int idx);
105 virtual int GetGraphSplineType(int idx);
107
109 { this->SetGraphEdgeLabelFontSize(size, 0); }
110 virtual void SetGraphEdgeLabelFontSize(int size, int idx);
112 { return this->GetGraphEdgeLabelFontSize(0); }
113 virtual int GetGraphEdgeLabelFontSize(int idx);
114
115protected:
118
120
123 virtual bool AddToView(vtkView* view);
124 virtual bool RemoveFromView(vtkView* view);
126
130 bool ValidIndex(int idx);
131
133
135
139 virtual int RequestData(
140 vtkInformation* request,
141 vtkInformationVector** inputVector,
142 vtkInformationVector* outputVector);
143
144 virtual void ApplyViewTheme(vtkViewTheme* theme);
145
146 class Internals;
147 Internals* Implementation;
148
149private:
151 void operator=(const vtkRenderedHierarchyRepresentation&) VTK_DELETE_FUNCTION;
152};
153
154#endif
155
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
virtual void SetGraphEdgeLabelVisibility(bool vis, int idx)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void SetColorGraphEdgesByArray(bool vis, int idx)
virtual void SetGraphEdgeLabelArrayName(const char *name, int idx)
virtual const char * GetGraphEdgeLabelArrayName(int idx)
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
virtual bool GetColorGraphEdgesByArray(int idx)
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a theme to this representation.
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)
bool ValidIndex(int idx)
Whether idx is a valid graph index.
static vtkRenderedHierarchyRepresentation * New()
virtual bool AddToView(vtkView *view)
Called by the view to add/remove this representation.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetGraphEdgeColorArrayName(const char *name)
virtual double GetBundlingStrength(int idx)
virtual void SetGraphEdgeLabelArrayName(const char *name)
virtual void SetBundlingStrength(double strength, int idx)
virtual const char * GetGraphEdgeColorArrayName(int idx)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Sets up the input connections for this representation.
virtual bool GetGraphEdgeLabelVisibility(int idx)
virtual void SetGraphSplineType(int type, int idx)
Sets the spline type for the graph edges.
virtual bool RemoveFromView(vtkView *view)
virtual void SetGraphVisibility(bool vis, int idx)
A node in a selection tree.
Definition: vtkSelection.h:44
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
The superclass for all views.
Definition: vtkView.h:61
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ type
Definition: vtkX3D.h:516
@ name
Definition: vtkX3D.h:219
@ size
Definition: vtkX3D.h:253
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.