32 #ifndef vtkRenderedTreeAreaRepresentation_h 33 #define vtkRenderedTreeAreaRepresentation_h 35 #include "vtkViewsInfovisModule.h" 76 virtual void SetAreaLabelArrayName(
const char*
name);
77 virtual const char* GetAreaLabelArrayName();
84 virtual void SetAreaSizeArrayName(
const char*
name);
85 virtual const char* GetAreaSizeArrayName();
93 virtual void SetAreaLabelPriorityArrayName(
const char*
name);
94 virtual const char* GetAreaLabelPriorityArrayName();
102 { this->SetGraphEdgeLabelArrayName(name, 0); }
103 virtual void SetGraphEdgeLabelArrayName(
const char*
name,
int idx);
105 {
return this->GetGraphEdgeLabelArrayName(0); }
106 virtual const char* GetGraphEdgeLabelArrayName(
int idx);
114 { this->SetGraphEdgeLabelTextProperty(tp, 0); }
115 virtual void SetGraphEdgeLabelTextProperty(
vtkTextProperty* tp,
int idx);
117 {
return this->GetGraphEdgeLabelTextProperty(0); }
126 vtkSetStringMacro(AreaHoverArrayName);
127 vtkGetStringMacro(AreaHoverArrayName);
134 virtual void SetAreaLabelVisibility(
bool vis);
135 virtual bool GetAreaLabelVisibility();
136 vtkBooleanMacro(AreaLabelVisibility,
bool);
152 { this->SetGraphEdgeLabelVisibility(vis, 0); }
153 virtual void SetGraphEdgeLabelVisibility(
bool vis,
int idx);
155 {
return this->GetGraphEdgeLabelVisibility(0); }
156 virtual bool GetGraphEdgeLabelVisibility(
int idx);
157 vtkBooleanMacro(GraphEdgeLabelVisibility,
bool);
164 void SetAreaColorArrayName(
const char* name);
165 const char* GetAreaColorArrayName();
172 virtual void SetColorAreasByArray(
bool vis);
173 virtual bool GetColorAreasByArray();
174 vtkBooleanMacro(ColorAreasByArray,
bool);
182 { this->SetGraphEdgeColorArrayName(name, 0); }
183 virtual void SetGraphEdgeColorArrayName(
const char* name,
int idx);
185 {
return this->GetGraphEdgeColorArrayName(0); }
186 virtual const char* GetGraphEdgeColorArrayName(
int idx);
193 { this->SetGraphEdgeColorToSplineFraction(0); }
194 virtual void SetGraphEdgeColorToSplineFraction(
int idx);
201 { this->SetColorGraphEdgesByArray(vis, 0); }
202 virtual void SetColorGraphEdgesByArray(
bool vis,
int idx);
204 {
return this->GetColorGraphEdgesByArray(0); }
205 virtual bool GetColorGraphEdgesByArray(
int idx);
206 vtkBooleanMacro(ColorGraphEdgesByArray,
bool);
215 { this->SetGraphHoverArrayName(name, 0); }
216 virtual void SetGraphHoverArrayName(
const char* name,
int idx);
218 {
return this->GetGraphHoverArrayName(0); }
219 virtual const char* GetGraphHoverArrayName(
int idx);
226 virtual void SetShrinkPercentage(
double value);
227 virtual double GetShrinkPercentage();
235 { this->SetGraphBundlingStrength(strength, 0); }
236 virtual void SetGraphBundlingStrength(
double strength,
int idx);
238 {
return this->GetGraphBundlingStrength(0); }
239 virtual double GetGraphBundlingStrength(
int idx);
249 virtual void SetGraphSplineType(
int type,
int idx);
250 virtual int GetGraphSplineType(
int idx);
275 vtkSetMacro(UseRectangularCoordinates,
bool);
276 vtkGetMacro(UseRectangularCoordinates,
bool);
277 vtkBooleanMacro(UseRectangularCoordinates,
bool);
298 virtual void SetEdgeScalarBarVisibility(
bool b);
299 virtual bool GetEdgeScalarBarVisibility();
325 bool ValidIndex(
int idx);
327 void UpdateHoverHighlight(
vtkView* view,
int x,
int y);
349 vtkSetStringMacro(AreaSizeArrayNameInternal);
350 vtkGetStringMacro(AreaSizeArrayNameInternal);
352 vtkSetStringMacro(AreaColorArrayNameInternal);
353 vtkGetStringMacro(AreaColorArrayNameInternal);
355 vtkSetStringMacro(AreaLabelArrayNameInternal);
356 vtkGetStringMacro(AreaLabelArrayNameInternal);
358 vtkSetStringMacro(AreaLabelPriorityArrayNameInternal);
359 vtkGetStringMacro(AreaLabelPriorityArrayNameInternal);
361 vtkSetStringMacro(GraphEdgeColorArrayNameInternal);
362 vtkGetStringMacro(GraphEdgeColorArrayNameInternal);
364 vtkGetStringMacro(AreaHoverTextInternal);
365 vtkSetStringMacro(AreaHoverTextInternal);
376 Internals* Implementation;
virtual bool GetGraphEdgeLabelVisibility()
Whether to show edge labels.
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to this representation.
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp)
The text property for the graph edge labels.
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
char * AreaColorArrayNameInternal
vtkSmartPointer< vtkWorldPointPicker > Picker
virtual void SetGraphHoverArrayName(const char *name)
The name of the array whose value appears when the mouse hovers over a graph edge.
represents an object (geometry & properties) in a rendered scene
vtkSmartPointer< vtkApplyColors > ApplyColors
vtkSmartPointer< vtkPolyDataMapper > HighlightMapper
virtual void SetGraphEdgeColorToSplineFraction()
Set the color to be the spline fraction.
char * GraphEdgeColorArrayNameInternal
virtual const char * GetGraphEdgeColorArrayName()
The array to use for coloring edges.
vtkSmartPointer< vtkTreeLevelsFilter > TreeLevels
abstract superclass for all area layout strategies
vtkLabeledDataMapper * AreaLabelMapper
virtual void SetGraphEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
char * AreaHoverArrayName
a actor that draws 2D data
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
data object that represents a "selection" in VTK.
Adds an attribute array with the degree of each vertex.
vtkSmartPointer< vtkTreeFieldAggregator > TreeAggregation
virtual void SetLabelRenderMode(int)
Set the label render mode.
virtual bool AddToView(vtkView *vtkNotUsed(view))
Adds the representation to the 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()
Set the bundling strength.
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()
The text property for the graph edge labels.
a simple class to control print indentation
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
Removes the representation to the view.
bool UseRectangularCoordinates
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
virtual void SetGraphBundlingStrength(double strength)
Set the bundling strength.
virtual const char * GetGraphEdgeLabelArrayName()
The array to use for edge labeling.
vtkSmartPointer< vtkActor > HighlightActor
virtual void SetColorGraphEdgesByArray(bool vis)
Whether to color edges.
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()
Whether to color edges.
virtual void SetGraphEdgeColorArrayName(const char *name)
The array to use for coloring edges.
map vtkPolyData to graphics primitives
vtkSmartPointer< vtkVertexDegree > VertexDegree
A view containing a renderer.
adds level and leaf fields to a vtkTree
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetGraphHoverArrayName()
The name of the array whose value appears when the mouse hovers over a graph edge.
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 *)
Subclasses may override this method to generate the hover text.
vtkSmartPointer< vtkPolyData > EmptyPolyData
String class that stores Unicode text.
virtual void SetGraphEdgeLabelVisibility(bool vis)
Whether to show edge labels.
char * AreaSizeArrayNameInternal