20 #ifndef vtkTanglegramItem_h
21 #define vtkTanglegramItem_h
23 #include "vtkViewsInfovisModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
45 virtual void SetTree1(
vtkTree* tree);
50 virtual void SetTree2(
vtkTree* tree);
70 vtkGetStringMacro(Tree1Label);
71 vtkSetStringMacro(Tree1Label);
78 vtkGetStringMacro(Tree2Label);
79 vtkSetStringMacro(Tree2Label);
100 vtkGetMacro(MinimumVisibleFontSize,
int);
101 vtkSetMacro(MinimumVisibleFontSize,
int);
111 vtkGetMacro(LabelSizeDifference,
int);
112 vtkSetMacro(LabelSizeDifference,
int);
119 vtkGetMacro(CorrespondenceLineWidth,
float);
120 vtkSetMacro(CorrespondenceLineWidth,
float);
127 float GetTreeLineWidth();
128 void SetTreeLineWidth(
float width);
154 void PositionTree2();
191 void GenerateLookupTable();
206 double Tree1Bounds[4];
207 double Tree2Bounds[4];
216 int MinimumVisibleFontSize;
217 int LabelSizeDifference;
218 float CorrespondenceLineWidth;
224 VTK_ABI_NAMESPACE_END
Display two related trees.
A 2D graphics item for rendering a tree as a dendrogram.
base class for items that are part of a vtkContextScene.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
map scalar values into colors via a lookup table
a vtkAbstractArray subclass for strings
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A table, which contains similar-typed columns of data.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A rooted tree data structure.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button double click event.