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