|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   26 #ifndef vtkRenderedTreeAreaRepresentation_h 
   27 #define vtkRenderedTreeAreaRepresentation_h 
   30 #include "vtkViewsInfovisModule.h"  
   70   virtual void SetAreaLabelArrayName(
const char* 
name);
 
   71   virtual const char* GetAreaLabelArrayName();
 
   78   virtual void SetAreaSizeArrayName(
const char* 
name);
 
   79   virtual const char* GetAreaSizeArrayName();
 
   87   virtual void SetAreaLabelPriorityArrayName(
const char* 
name);
 
   88   virtual const char* GetAreaLabelPriorityArrayName();
 
   97     this->SetGraphEdgeLabelArrayName(
name, 0);
 
   99   virtual void SetGraphEdgeLabelArrayName(
const char* 
name, 
int idx);
 
  101   virtual const char* GetGraphEdgeLabelArrayName(
int idx);
 
  110     this->SetGraphEdgeLabelTextProperty(tp, 0);
 
  112   virtual void SetGraphEdgeLabelTextProperty(
vtkTextProperty* tp, 
int idx);
 
  115     return this->GetGraphEdgeLabelTextProperty(0);
 
  125   vtkSetStringMacro(AreaHoverArrayName);
 
  126   vtkGetStringMacro(AreaHoverArrayName);
 
  133   virtual void SetAreaLabelVisibility(
bool vis);
 
  134   virtual bool GetAreaLabelVisibility();
 
  135   vtkBooleanMacro(AreaLabelVisibility, 
bool);
 
  151   virtual void SetGraphEdgeLabelVisibility(
bool vis, 
int idx);
 
  153   virtual bool GetGraphEdgeLabelVisibility(
int idx);
 
  154   vtkBooleanMacro(GraphEdgeLabelVisibility, 
bool);
 
  161   void SetAreaColorArrayName(
const char* 
name);
 
  162   const char* GetAreaColorArrayName();
 
  169   virtual void SetColorAreasByArray(
bool vis);
 
  170   virtual bool GetColorAreasByArray();
 
  171   vtkBooleanMacro(ColorAreasByArray, 
bool);
 
  180     this->SetGraphEdgeColorArrayName(
name, 0);
 
  182   virtual void SetGraphEdgeColorArrayName(
const char* 
name, 
int idx);
 
  184   virtual const char* GetGraphEdgeColorArrayName(
int idx);
 
  191   virtual void SetGraphEdgeColorToSplineFraction(
int idx);
 
  198   virtual void SetColorGraphEdgesByArray(
bool vis, 
int idx);
 
  200   virtual bool GetColorGraphEdgesByArray(
int idx);
 
  201   vtkBooleanMacro(ColorGraphEdgesByArray, 
bool);
 
  210   virtual void SetGraphHoverArrayName(
const char* 
name, 
int idx);
 
  212   virtual const char* GetGraphHoverArrayName(
int idx);
 
  219   virtual void SetShrinkPercentage(
double value);
 
  220   virtual double GetShrinkPercentage();
 
  229     this->SetGraphBundlingStrength(strength, 0);
 
  231   virtual void SetGraphBundlingStrength(
double strength, 
int idx);
 
  233   virtual double GetGraphBundlingStrength(
int idx);
 
  243   virtual void SetGraphSplineType(
int type, 
int idx);
 
  244   virtual int GetGraphSplineType(
int idx);
 
  269   vtkSetMacro(UseRectangularCoordinates, 
bool);
 
  270   vtkGetMacro(UseRectangularCoordinates, 
bool);
 
  271   vtkBooleanMacro(UseRectangularCoordinates, 
bool);
 
  292   virtual void SetEdgeScalarBarVisibility(
bool b);
 
  293   virtual bool GetEdgeScalarBarVisibility();
 
  316   bool ValidIndex(
int idx);
 
  318   void UpdateHoverHighlight(
vtkView* view, 
int x, 
int y);
 
  340   vtkSetStringMacro(AreaSizeArrayNameInternal);
 
  341   vtkGetStringMacro(AreaSizeArrayNameInternal);
 
  343   vtkSetStringMacro(AreaColorArrayNameInternal);
 
  344   vtkGetStringMacro(AreaColorArrayNameInternal);
 
  346   vtkSetStringMacro(AreaLabelArrayNameInternal);
 
  347   vtkGetStringMacro(AreaLabelArrayNameInternal);
 
  349   vtkSetStringMacro(AreaLabelPriorityArrayNameInternal);
 
  350   vtkGetStringMacro(AreaLabelPriorityArrayNameInternal);
 
  352   vtkSetStringMacro(GraphEdgeColorArrayNameInternal);
 
  353   vtkGetStringMacro(GraphEdgeColorArrayNameInternal);
 
  355   vtkGetStringMacro(AreaHoverTextInternal);
 
  356   vtkSetStringMacro(AreaHoverTextInternal);
 
  367   Internals* Implementation;
 
  
map vtkPolyData to graphics primitives
virtual void SetGraphEdgeLabelVisibility(bool vis)
Whether to show edge labels.
vtkLabeledDataMapper * AreaLabelMapper
virtual bool AddToView(vtkView *vtkNotUsed(view))
Adds the representation to the view.
A view containing a renderer.
char * AreaHoverTextInternal
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkSmartPointer< vtkActor > AreaActor
char * AreaLabelPriorityArrayNameInternal
Adds an attribute array with the degree of each vertex.
char * AreaColorArrayNameInternal
find world x,y,z corresponding to display x,y,z
vtkSmartPointer< vtkTreeFieldAggregator > TreeAggregation
vtkSmartPointer< vtkVertexDegree > VertexDegree
virtual void SetColorGraphEdgesByArray(bool vis)
Whether to color edges.
vtkSmartPointer< vtkActor2D > AreaLabelActor
data object that represents a "selection" in VTK.
vtkSmartPointer< vtkPolyDataMapper > AreaMapper
adds level and leaf fields to a vtkTree
virtual const char * GetGraphHoverArrayName()
virtual double GetGraphBundlingStrength()
virtual void SetLabelRenderMode(int)
Set the label render mode.
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
Removes the representation to the view.
vtkSmartPointer< vtkAreaLayout > AreaLayout
The superclass for all views.
virtual vtkTextProperty * GetGraphEdgeLabelTextProperty()
Sets theme colors for a graphical view.
aggregate field values from the leaves up the tree
char * GraphEdgeColorArrayNameInternal
vtkSmartPointer< vtkPolyData > HighlightData
virtual const char * GetGraphEdgeLabelArrayName()
vtkPolyDataAlgorithm * AreaToPolyData
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
String class that stores Unicode text.
virtual void SetGraphHoverArrayName(const char *name)
The name of the array whose value appears when the mouse hovers over a graph edge.
vtkSmartPointer< vtkApplyColors > ApplyColors
build a label hierarchy for a graph or point set.
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
virtual void SetGraphBundlingStrength(double strength)
Set the bundling strength.
bool UseRectangularCoordinates
vtkSmartPointer< vtkActor > HighlightActor
vtkSmartPointer< vtkPolyData > EmptyPolyData
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
vtkSmartPointer< vtkTreeLevelsFilter > TreeLevels
represent text properties.
virtual bool GetGraphEdgeLabelVisibility()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a actor that draws 2D data
virtual bool GetColorGraphEdgesByArray()
draw text labels at dataset points
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
virtual void SetGraphEdgeColorArrayName(const char *name)
The array to use for coloring edges.
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
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to this representation.
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *)
Subclasses may override this method to generate the hover text.
generate points at center of edges
static vtkRenderedRepresentation * New()
virtual void SetGraphEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
char * AreaHoverArrayName
char * AreaSizeArrayNameInternal
Convert a selection from one type to another.
abstract superclass for all area layout strategies
vtkSmartPointer< vtkWorldPointPicker > Picker
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp)
The text property for the graph edge labels.
vtkSmartPointer< vtkPolyDataMapper > HighlightMapper
Superclass for algorithms that produce only polydata as output.