Go to the documentation of this file.
39 #ifndef vtkTreeHeatmapItem_h
40 #define vtkTreeHeatmapItem_h
42 #include "vtkViewsInfovisModule.h"
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &event)
Propagate any double click onto the dendrogram to check if any subtrees should be collapsed or expand...
data structure to represent mouse events.
void CollapseHeatmapRows()
Mark heatmap rows as hidden when a subtree is collapsed.
void GetBounds(double bounds[4])
Get the bounds of this item (xMin, xMax, yMin, Max) in pixel coordinates.
void ReverseTableColumns()
Reverse the order of the rows in our input table.
A 2D graphics item for rendering a tree and an associated heatmap.
virtual bool Paint(vtkContext2D *painter)
Paints the tree & associated table as a heatmap.
A table, which contains similar-typed columns of data.
static vtkTreeHeatmapItem * New()
void GetSize(double size[2])
Get the size of this item in pixel coordinates.
void ReorderTable()
Reorder the rows in the table so they match the order of the leaf nodes in our tree.
void ReverseTableRows()
Reverse the order of the rows in our input table.
void CollapseHeatmapColumns()
Mark heatmap columns as hidden when a subtree is collapsed.
Class for drawing 2D primitives to a graphical context.
virtual void SetColumnTree(vtkTree *tree)
Set a tree to be drawn for the columns of the heatmap.
vtkSmartPointer< vtkHeatmapItem > Heatmap
virtual void SetTree(vtkTree *tree)
Set the tree that this item draws.
vtkTypeUInt64 vtkMTimeType
A rooted tree data structure.
vtkHeatmapItem * GetHeatmap()
Get/Set the heatmap contained by this item.
virtual void SetTable(vtkTable *table)
Set the table that this item draws.
vtkSmartPointer< vtkDendrogramItem > Dendrogram
a simple class to control print indentation
void SetOrientation(int orientation)
Set which way the tree / heatmap should face within the visualization.
vtkTable * GetTable()
Get the table that this item draws.
void SetHeatmap(vtkHeatmapItem *heatmap)
vtkSmartPointer< vtkDendrogramItem > ColumnDendrogram
vtkTree * GetTree()
Get the tree that this item draws.
base class for items that are part of a vtkContextScene.
int GetOrientation()
Get the current orientation.
void SetTreeLineWidth(float width)
vtkTree * GetPrunedTree()
Deprecated.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the transform is interactive, false otherwise.
float GetTreeLineWidth()
Get/Set how wide the edges of the trees should be.
void SetTreeColorArray(const char *arrayName)
Deprecated.
A 2D graphics item for rendering a tree as a dendrogram.
void CollapseToNumberOfLeafNodes(unsigned int n)
Collapse subtrees until there are only n leaf nodes left in the tree.
A 2D graphics item for rendering a heatmap.
void SetDendrogram(vtkDendrogramItem *dendrogram)
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void GetCenter(double center[2])
Get the center point of this item in pixel coordinates.
vtkTree * GetColumnTree()
Get the tree that represents the columns of the heatmap (if one has been set).
vtkDendrogramItem * GetDendrogram()
Get/Set the dendrogram contained by this item.