/usr/include/vtk-7.1/vtkHierarchicalGraphPipeline.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkHierarchicalGraphPipeline.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkHierarchicalGraphPipeline
* @brief helper class for rendering graphs superimposed on a tree.
*
*
* vtkHierarchicalGraphPipeline renders bundled edges that are meant to be
* viewed as an overlay on a tree. This class is not for general use, but
* is used in the internals of vtkRenderedHierarchyRepresentation and
* vtkRenderedTreeAreaRepresentation.
*/
#ifndef vtkHierarchicalGraphPipeline_h
#define vtkHierarchicalGraphPipeline_h
#include "vtkViewsInfovisModule.h" // For export macro
#include "vtkObject.h"
class vtkActor;
class vtkActor2D;
class vtkAlgorithmOutput;
class vtkApplyColors;
class vtkDataRepresentation;
class vtkDynamic2DLabelMapper;
class vtkEdgeCenters;
class vtkGraphHierarchicalBundleEdges;
class vtkGraphToPolyData;
class vtkPolyDataMapper;
class vtkRenderView;
class vtkSplineGraphEdges;
class vtkSelection;
class vtkTextProperty;
class vtkViewTheme;
class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphPipeline : public vtkObject
{
public:
static vtkHierarchicalGraphPipeline* New();
vtkTypeMacro(vtkHierarchicalGraphPipeline, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
//@{
/**
* The actor associated with the hierarchical graph.
*/
vtkGetObjectMacro(Actor, vtkActor);
//@}
//@{
/**
* The actor associated with the hierarchical graph.
*/
vtkGetObjectMacro(LabelActor, vtkActor2D);
//@}
//@{
/**
* The bundling strength for the bundled edges.
*/
virtual void SetBundlingStrength(double strength);
virtual double GetBundlingStrength();
//@}
//@{
/**
* The edge label array name.
*/
virtual void SetLabelArrayName(const char* name);
virtual const char* GetLabelArrayName();
//@}
//@{
/**
* The edge label visibility.
*/
virtual void SetLabelVisibility(bool vis);
virtual bool GetLabelVisibility();
vtkBooleanMacro(LabelVisibility, bool);
//@}
//@{
/**
* The edge label text property.
*/
virtual void SetLabelTextProperty(vtkTextProperty* prop);
virtual vtkTextProperty* GetLabelTextProperty();
//@}
//@{
/**
* The edge color array.
*/
virtual void SetColorArrayName(const char* name);
virtual const char* GetColorArrayName();
//@}
//@{
/**
* Whether to color the edges by an array.
*/
virtual void SetColorEdgesByArray(bool vis);
virtual bool GetColorEdgesByArray();
vtkBooleanMacro(ColorEdgesByArray, bool);
//@}
//@{
/**
* The visibility of this graph.
*/
virtual void SetVisibility(bool vis);
virtual bool GetVisibility();
vtkBooleanMacro(Visibility, bool);
//@}
/**
* Returns a new selection relevant to this graph based on an input
* selection and the view that this graph is contained in.
*/
virtual vtkSelection* ConvertSelection(vtkDataRepresentation* rep, vtkSelection* sel);
/**
* Sets the input connections for this graph.
* graphConn is the input graph connection.
* treeConn is the input tree connection.
* annConn is the annotation link connection.
*/
virtual void PrepareInputConnections(
vtkAlgorithmOutput* graphConn,
vtkAlgorithmOutput* treeConn,
vtkAlgorithmOutput* annConn);
/**
* Applies the view theme to this graph.
*/
virtual void ApplyViewTheme(vtkViewTheme* theme);
//@{
/**
* The array to use while hovering over an edge.
*/
vtkSetStringMacro(HoverArrayName);
vtkGetStringMacro(HoverArrayName);
//@}
//@{
/**
* The spline mode to use in vtkSplineGraphEdges.
* vtkSplineGraphEdges::CUSTOM uses a vtkCardinalSpline.
* vtkSplineGraphEdges::BSPLINE uses a b-spline.
* The default is BSPLINE.
*/
virtual void SetSplineType(int type);
virtual int GetSplineType();
//@}
/**
* Register progress with a view.
*/
void RegisterProgress(vtkRenderView* view);
protected:
vtkHierarchicalGraphPipeline();
~vtkHierarchicalGraphPipeline();
vtkApplyColors* ApplyColors;
vtkGraphHierarchicalBundleEdges* Bundle;
vtkGraphToPolyData* GraphToPoly;
vtkSplineGraphEdges* Spline;
vtkPolyDataMapper* Mapper;
vtkActor* Actor;
vtkTextProperty* TextProperty;
vtkEdgeCenters* EdgeCenters;
vtkDynamic2DLabelMapper* LabelMapper;
vtkActor2D* LabelActor;
char* HoverArrayName;
vtkSetStringMacro(ColorArrayNameInternal);
vtkGetStringMacro(ColorArrayNameInternal);
char* ColorArrayNameInternal;
vtkSetStringMacro(LabelArrayNameInternal);
vtkGetStringMacro(LabelArrayNameInternal);
char* LabelArrayNameInternal;
private:
vtkHierarchicalGraphPipeline(const vtkHierarchicalGraphPipeline&) VTK_DELETE_FUNCTION;
void operator=(const vtkHierarchicalGraphPipeline&) VTK_DELETE_FUNCTION;
};
#endif
|