29 #ifndef vtkTanglegramItem_h 30 #define vtkTanglegramItem_h 32 #include "vtkViewsInfovisModule.h" 53 virtual void SetTree1(
vtkTree *tree);
58 virtual void SetTree2(
vtkTree *tree);
78 vtkGetStringMacro(Tree1Label);
79 vtkSetStringMacro(Tree1Label);
86 vtkGetStringMacro(Tree2Label);
87 vtkSetStringMacro(Tree2Label);
108 vtkGetMacro(MinimumVisibleFontSize,
int);
109 vtkSetMacro(MinimumVisibleFontSize,
int);
119 vtkGetMacro(LabelSizeDifference,
int);
120 vtkSetMacro(LabelSizeDifference,
int);
127 vtkGetMacro(CorrespondenceLineWidth,
float);
128 vtkSetMacro(CorrespondenceLineWidth,
float);
135 float GetTreeLineWidth();
136 void SetTreeLineWidth(
float width);
162 void PositionTree2();
199 void GenerateLookupTable();
214 double Tree1Bounds[4];
215 double Tree2Bounds[4];
224 int MinimumVisibleFontSize;
225 int LabelSizeDifference;
226 float CorrespondenceLineWidth;
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.