31 #ifndef __vtkRenderedTreeAreaRepresentation_h
32 #define __vtkRenderedTreeAreaRepresentation_h
69 virtual void SetAreaLabelArrayName(
const char*
name);
70 virtual const char* GetAreaLabelArrayName();
75 virtual void SetAreaSizeArrayName(
const char*
name);
76 virtual const char* GetAreaSizeArrayName();
82 virtual void SetAreaLabelPriorityArrayName(
const char*
name);
83 virtual const char* GetAreaLabelPriorityArrayName();
89 { this->SetGraphEdgeLabelArrayName(name, 0); }
90 virtual void SetGraphEdgeLabelArrayName(
const char*
name,
int idx);
92 {
return this->GetGraphEdgeLabelArrayName(0); }
93 virtual const char* GetGraphEdgeLabelArrayName(
int idx);
99 { this->SetGraphEdgeLabelTextProperty(tp, 0); }
100 virtual void SetGraphEdgeLabelTextProperty(
vtkTextProperty* tp,
int idx);
102 {
return this->GetGraphEdgeLabelTextProperty(0); }
109 vtkSetStringMacro(AreaHoverArrayName);
110 vtkGetStringMacro(AreaHoverArrayName);
115 virtual void SetAreaLabelVisibility(
bool vis);
116 virtual bool GetAreaLabelVisibility();
117 vtkBooleanMacro(AreaLabelVisibility,
bool);
129 { this->SetGraphEdgeLabelVisibility(vis, 0); }
130 virtual void SetGraphEdgeLabelVisibility(
bool vis,
int idx);
132 {
return this->GetGraphEdgeLabelVisibility(0); }
133 virtual bool GetGraphEdgeLabelVisibility(
int idx);
134 vtkBooleanMacro(GraphEdgeLabelVisibility,
bool);
139 void SetAreaColorArrayName(
const char*
name);
140 const char* GetAreaColorArrayName();
145 virtual void SetColorAreasByArray(
bool vis);
146 virtual bool GetColorAreasByArray();
147 vtkBooleanMacro(ColorAreasByArray,
bool);
153 { this->SetGraphEdgeColorArrayName(name, 0); }
154 virtual void SetGraphEdgeColorArrayName(
const char*
name,
int idx);
156 {
return this->GetGraphEdgeColorArrayName(0); }
157 virtual const char* GetGraphEdgeColorArrayName(
int idx);
163 { this->SetGraphEdgeColorToSplineFraction(0); }
164 virtual void SetGraphEdgeColorToSplineFraction(
int idx);
170 { this->SetColorGraphEdgesByArray(vis, 0); }
171 virtual void SetColorGraphEdgesByArray(
bool vis,
int idx);
173 {
return this->GetColorGraphEdgesByArray(0); }
174 virtual bool GetColorGraphEdgesByArray(
int idx);
175 vtkBooleanMacro(ColorGraphEdgesByArray,
bool);
182 { this->SetGraphHoverArrayName(name, 0); }
183 virtual void SetGraphHoverArrayName(
const char*
name,
int idx);
185 {
return this->GetGraphHoverArrayName(0); }
186 virtual const char* GetGraphHoverArrayName(
int idx);
191 virtual void SetShrinkPercentage(
double value);
192 virtual double GetShrinkPercentage();
198 { this->SetGraphBundlingStrength(strength, 0); }
199 virtual void SetGraphBundlingStrength(
double strength,
int idx);
201 {
return this->GetGraphBundlingStrength(0); }
202 virtual double GetGraphBundlingStrength(
int idx);
209 virtual void SetGraphSplineType(
int type,
int idx);
210 virtual int GetGraphSplineType(
int idx);
229 vtkSetMacro(UseRectangularCoordinates,
bool);
230 vtkGetMacro(UseRectangularCoordinates,
bool);
231 vtkBooleanMacro(UseRectangularCoordinates,
bool);
246 virtual void SetEdgeScalarBarVisibility(
bool b);
247 virtual bool GetEdgeScalarBarVisibility();
271 bool ValidIndex(
int idx);
273 void UpdateHoverHighlight(
vtkView* view,
int x,
int y);
302 vtkSetStringMacro(AreaSizeArrayNameInternal);
303 vtkGetStringMacro(AreaSizeArrayNameInternal);
305 vtkSetStringMacro(AreaColorArrayNameInternal);
306 vtkGetStringMacro(AreaColorArrayNameInternal);
308 vtkSetStringMacro(AreaLabelArrayNameInternal);
309 vtkGetStringMacro(AreaLabelArrayNameInternal);
311 vtkSetStringMacro(AreaLabelPriorityArrayNameInternal);
312 vtkGetStringMacro(AreaLabelPriorityArrayNameInternal);
314 vtkSetStringMacro(GraphEdgeColorArrayNameInternal);
315 vtkGetStringMacro(GraphEdgeColorArrayNameInternal);
317 vtkGetStringMacro(AreaHoverTextInternal);
318 vtkSetStringMacro(AreaHoverTextInternal);
virtual bool GetGraphEdgeLabelVisibility()
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp)
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
char * AreaColorArrayNameInternal
vtkSmartPointer< vtkWorldPointPicker > Picker
virtual void SetGraphHoverArrayName(const char *name)
represents an object (geometry & properties) in a rendered scene
vtkSmartPointer< vtkApplyColors > ApplyColors
vtkSmartPointer< vtkPolyDataMapper > HighlightMapper
virtual void SetGraphEdgeColorToSplineFraction()
char * GraphEdgeColorArrayNameInternal
virtual const char * GetGraphEdgeColorArrayName()
vtkSmartPointer< vtkTreeLevelsFilter > TreeLevels
abstract superclass for all area layout strategies
vtkLabeledDataMapper * AreaLabelMapper
virtual void SetGraphEdgeLabelArrayName(const char *name)
char * AreaHoverArrayName
a actor that draws 2D data
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
A node in a selection tree. Used to store selection results.
Adds an attribute array with the degree of each vertex.
vtkSmartPointer< vtkTreeFieldAggregator > TreeAggregation
virtual void SetLabelRenderMode(int)
virtual bool AddToView(vtkView *vtkNotUsed(view))
concrete dataset represents vertices, lines, polygons, and triangle strips
static vtkRenderedRepresentation * New()
draw text labels at dataset points
char * AreaHoverTextInternal
char * AreaLabelPriorityArrayNameInternal
vtkSmartPointer< vtkPolyData > HighlightData
vtkSmartPointer< vtkActor2D > AreaLabelActor
vtkSmartPointer< vtkPolyDataMapper > AreaMapper
virtual double GetGraphBundlingStrength()
generate points at center of edges
Sets theme colors for a graphical view.
layout a vtkTree into a tree map
Superclass for algorithms that produce only polydata as output.
The superclass for all views.
virtual vtkTextProperty * GetGraphEdgeLabelTextProperty()
a simple class to control print indentation
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
bool UseRectangularCoordinates
virtual void PrepareForRendering(vtkRenderView *view)
virtual void SetGraphBundlingStrength(double strength)
virtual const char * GetGraphEdgeLabelArrayName()
vtkSmartPointer< vtkActor > HighlightActor
virtual void SetColorGraphEdgesByArray(bool vis)
vtkSmartPointer< vtkActor > AreaActor
represent text properties.
aggregate field values from the leaves up the tree
vtkPolyDataAlgorithm * AreaToPolyData
build a label hierarchy for a graph or point set.
virtual bool GetColorGraphEdgesByArray()
virtual void SetGraphEdgeColorArrayName(const char *name)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
map vtkPolyData to graphics primitives
vtkSmartPointer< vtkVertexDegree > VertexDegree
Internals * Implementation
A view containing a renderer.
adds level and leaf fields to a vtkTree
virtual const char * GetGraphHoverArrayName()
Convert a selection from one type to another.
vtkSmartPointer< vtkPointSetToLabelHierarchy > AreaLabelHierarchy
char * AreaLabelArrayNameInternal
vtkSmartPointer< vtkAreaLayout > AreaLayout
find world x,y,z corresponding to display x,y,z
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *)
vtkSmartPointer< vtkPolyData > EmptyPolyData
String class that stores Unicode text.
virtual void SetGraphEdgeLabelVisibility(bool vis)
char * AreaSizeArrayNameInternal