32#ifndef vtkRenderedTreeAreaRepresentation_h
33#define vtkRenderedTreeAreaRepresentation_h
35#include "vtkViewsInfovisModule.h"
102 { this->SetGraphEdgeLabelArrayName(
name, 0); }
105 {
return this->GetGraphEdgeLabelArrayName(0); }
114 { this->SetGraphEdgeLabelTextProperty(tp, 0); }
117 {
return this->GetGraphEdgeLabelTextProperty(0); }
126 vtkSetStringMacro(AreaHoverArrayName);
152 { this->SetGraphEdgeLabelVisibility(vis, 0); }
155 {
return this->GetGraphEdgeLabelVisibility(0); }
182 { this->SetGraphEdgeColorArrayName(
name, 0); }
185 {
return this->GetGraphEdgeColorArrayName(0); }
193 { this->SetGraphEdgeColorToSplineFraction(0); }
201 { this->SetColorGraphEdgesByArray(vis, 0); }
204 {
return this->GetColorGraphEdgesByArray(0); }
215 { this->SetGraphHoverArrayName(
name, 0); }
218 {
return this->GetGraphHoverArrayName(0); }
235 { this->SetGraphBundlingStrength(strength, 0); }
238 {
return this->GetGraphBundlingStrength(0); }
276 vtkGetMacro(UseRectangularCoordinates,
bool);
352 vtkSetStringMacro(AreaSizeArrayNameInternal);
355 vtkSetStringMacro(AreaColorArrayNameInternal);
358 vtkSetStringMacro(AreaLabelArrayNameInternal);
361 vtkSetStringMacro(AreaLabelPriorityArrayNameInternal);
364 vtkSetStringMacro(GraphEdgeColorArrayNameInternal);
368 vtkSetStringMacro(AreaHoverTextInternal);
a actor that draws 2D data
represents an object (geometry & properties) in a rendered scene
abstract superclass for all area layout strategies
layout a vtkTree into a tree map
Convert a selection from one type to another.
generate points at center of edges
a simple class to control print indentation
draw text labels at dataset points
build a label hierarchy for a graph or point set.
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
A view containing a renderer.
vtkSmartPointer< vtkVertexDegree > VertexDegree
char * AreaLabelArrayNameInternal
virtual void SetShrinkPercentage(double value)
Set the region shrink percentage between 0.0 and 1.0.
virtual void SetEdgeScalarBarVisibility(bool b)
Visibility of scalar bar actor for edges.
virtual void SetAreaSizeArrayName(const char *name)
The array to use for area sizes.
virtual const char * GetGraphHoverArrayName()
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
virtual vtkTextProperty * GetGraphEdgeLabelTextProperty(int idx)
virtual void SetAreaLabelVisibility(bool vis)
Whether to show area labels.
virtual const char * GetAreaLabelArrayName()
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
virtual void SetColorGraphEdgesByArray(bool vis)
Whether to color edges.
void UpdateHoverHighlight(vtkView *view, int x, int y)
virtual void SetGraphHoverArrayName(const char *name, int idx)
Internals * Implementation
vtkSmartPointer< vtkTreeLevelsFilter > TreeLevels
virtual void SetAreaLayoutStrategy(vtkAreaLayoutStrategy *strategy)
The layout strategy for producing spatial regions for the tree.
vtkSmartPointer< vtkWorldPointPicker > Picker
bool UseRectangularCoordinates
vtkRenderedTreeAreaRepresentation()
virtual const char * GetAreaLabelPriorityArrayName()
vtkSmartPointer< vtkActor > AreaActor
char * GraphEdgeColorArrayNameInternal
virtual bool AddToView(vtkView *view)
Called by the view to add/remove this representation.
vtkSmartPointer< vtkPolyData > HighlightData
virtual void SetColorAreasByArray(bool vis)
Whether to color vertices.
virtual void SetAreaToPolyData(vtkPolyDataAlgorithm *areaToPoly)
The filter for converting areas to polydata.
virtual vtkAreaLayoutStrategy * GetAreaLayoutStrategy()
virtual void SetLabelRenderMode(int mode)
Set the label render mode.
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
virtual void SetColorGraphEdgesByArray(bool vis, int idx)
virtual void SetGraphEdgeLabelVisibility(bool vis)
Whether to show edge labels.
virtual void SetGraphBundlingStrength(double strength, int idx)
virtual void SetGraphHoverArrayName(const char *name)
The name of the array whose value appears when the mouse hovers over a graph edge.
virtual void SetGraphBundlingStrength(double strength)
Set the bundling strength.
virtual const char * GetGraphEdgeColorArrayName()
virtual vtkTextProperty * GetGraphEdgeLabelTextProperty()
virtual double GetGraphBundlingStrength()
virtual bool GetColorAreasByArray()
virtual void SetAreaLabelPriorityArrayName(const char *name)
The array to use for area labeling priority.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
const char * GetAreaColorArrayName()
vtkSmartPointer< vtkTreeFieldAggregator > TreeAggregation
virtual const char * GetGraphEdgeLabelArrayName(int idx)
virtual double GetShrinkPercentage()
vtkSmartPointer< vtkPointSetToLabelHierarchy > AreaLabelHierarchy
vtkSmartPointer< vtkPolyDataMapper > HighlightMapper
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
virtual void SetGraphEdgeColorArrayName(const char *name)
The array to use for coloring edges.
char * AreaLabelPriorityArrayNameInternal
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp, int idx)
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *sel)
Subclasses may override this method to generate the hover text.
virtual int GetGraphSplineType(int idx)
virtual const char * GetAreaSizeArrayName()
virtual double GetGraphBundlingStrength(int idx)
virtual void SetGraphSplineType(int type, int idx)
Sets the spline type for the graph edges.
virtual void SetGraphEdgeLabelVisibility(bool vis, int idx)
virtual void SetGraphEdgeColorToSplineFraction()
Set the color to be the spline fraction.
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply the theme to this view.
vtkPolyDataAlgorithm * AreaToPolyData
virtual bool GetColorGraphEdgesByArray()
virtual bool RemoveFromView(vtkView *view)
virtual const char * GetGraphEdgeColorArrayName(int idx)
char * AreaHoverTextInternal
char * AreaHoverArrayName
virtual bool GetAreaLabelVisibility()
virtual void SetAreaLabelArrayName(const char *name)
The array to use for area labeling.
virtual void SetGraphEdgeLabelArrayName(const char *name, int idx)
virtual void SetAreaLabelTextProperty(vtkTextProperty *tp)
The text property for the area labels.
void SetAreaColorArrayName(const char *name)
The array to use for coloring vertices.
vtkSmartPointer< vtkActor2D > AreaLabelActor
virtual bool GetGraphEdgeLabelVisibility(int idx)
virtual const char * GetGraphHoverArrayName(int idx)
virtual void SetGraphEdgeColorToSplineFraction(int idx)
virtual bool GetEdgeScalarBarVisibility()
vtkSmartPointer< vtkApplyColors > ApplyColors
virtual bool GetGraphEdgeLabelVisibility()
virtual bool GetColorGraphEdgesByArray(int idx)
vtkLabeledDataMapper * AreaLabelMapper
char * AreaColorArrayNameInternal
char * AreaSizeArrayNameInternal
virtual const char * GetGraphEdgeLabelArrayName()
virtual void SetGraphEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
vtkSmartPointer< vtkAreaLayout > AreaLayout
vtkSmartPointer< vtkPolyData > EmptyPolyData
virtual void SetAreaLabelMapper(vtkLabeledDataMapper *mapper)
The mapper for rendering labels on areas.
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp)
The text property for the graph edge labels.
static vtkRenderedTreeAreaRepresentation * New()
virtual void SetGraphEdgeColorArrayName(const char *name, int idx)
~vtkRenderedTreeAreaRepresentation()
vtkSmartPointer< vtkActor > HighlightActor
virtual vtkTextProperty * GetAreaLabelTextProperty()
vtkSmartPointer< vtkPolyDataMapper > AreaMapper
A node in a selection tree.
represent text properties.
aggregate field values from the leaves up the tree
adds level and leaf fields to a vtkTree
String class that stores Unicode text.
Adds an attribute array with the degree of each vertex.
Sets theme colors for a graphical view.
The superclass for all views.
find world x,y,z corresponding to display x,y,z
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.