Go to the documentation of this file.
32 #ifndef vtkTanglegramItem_h
33 #define vtkTanglegramItem_h
35 #include "vtkViewsInfovisModule.h"
82 vtkSetStringMacro(Tree1Label);
90 vtkSetStringMacro(Tree2Label);
111 vtkGetMacro(MinimumVisibleFontSize,
int);
122 vtkGetMacro(LabelSizeDifference,
int);
130 vtkGetMacro(CorrespondenceLineWidth,
float);
217 double Tree1Bounds[4];
218 double Tree2Bounds[4];
227 int MinimumVisibleFontSize;
228 int LabelSizeDifference;
229 float CorrespondenceLineWidth;
void PaintTreeLabels(vtkContext2D *painter)
Draw the labels of our two dendrograms.
data structure to represent mouse events.
Display two related trees.
void PaintCorrespondenceLines(vtkContext2D *painter)
Draw the lines between the corresponding vertices of our two dendrograms.
A table, which contains similar-typed columns of data.
void SetOrientation(int orientation)
Set which way the tanglegram should face within the visualization.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &event)
Propagate any double click onto the dendrograms to check if any subtrees should be collapsed or expan...
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the transform is interactive, false otherwise.
void ReorderTreeAtVertex(vtkIdType parent, vtkTree *tree)
Helper function used by ReorderTree.
int GetOrientation()
Get the current orientation.
void RefreshBuffers(vtkContext2D *painter)
Update the bounds of our two dendrograms.
Class for drawing 2D primitives to a graphical context.
vtkTable * GetTable()
Get/Set the table that describes the correspondences between the two trees.
static vtkTanglegramItem * New()
void SetTable(vtkTable *table)
A rooted tree data structure.
double GetPositionScoreForVertex(vtkIdType vertex, vtkTree *tree)
Helper function used by ReorderTreeAtVertex.
virtual void SetTree1(vtkTree *tree)
Set the first tree.
void ReorderTree()
Reorder the children of tree #2 to minimize the amount of crossings in our tanglegram.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PositionTree2()
Calculate and set an appropriate position for our second dendrogram.
void SetTreeLineWidth(float width)
base class for items that are part of a vtkContextScene.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
map scalar values into colors via a lookup table
void GenerateLookupTable()
Initialize the lookup table used to color the lines between the two dendrograms.
float GetTreeLineWidth()
Get/Set how wide the edges of the trees should be.
virtual void SetTree2(vtkTree *tree)
Set the second tree.
A 2D graphics item for rendering a tree as a dendrogram.
a vtkAbstractArray subclass for strings
virtual bool Paint(vtkContext2D *painter)
Paints the tree & associated table as a heatmap.