VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkTreeHeatmapItem Class Reference

A 2D graphics item for rendering a tree and an associated heatmap. More...

#include <vtkTreeHeatmapItem.h>

Inheritance diagram for vtkTreeHeatmapItem:
Inheritance graph
[legend]
Collaboration diagram for vtkTreeHeatmapItem:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkContextItem Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTreeHeatmapItemNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetTree (vtkTree *tree)
vtkTreeGetTree ()
virtual void SetColumnTree (vtkTree *tree)
vtkTreeGetColumnTree ()
virtual void SetTable (vtkTable *table)
vtkTableGetTable ()
void ReorderTable ()
void ReverseTableRows ()
void ReverseTableColumns ()
void SetOrientation (int orientation)
int GetOrientation ()
void GetBounds (double bounds[4])
void GetCenter (double center[2])
void GetSize (double size[2])
void CollapseToNumberOfLeafNodes (unsigned int n)
vtkTreeGetPrunedTree ()
void SetTreeColorArray (const char *arrayName)
virtual bool Hit (const vtkContextMouseEvent &mouse)
virtual bool MouseDoubleClickEvent (const vtkContextMouseEvent &event)
vtkSmartPointer
< vtkDendrogramItem
GetDendrogram ()
void SetDendrogram (vtkSmartPointer< vtkDendrogramItem >)
vtkSmartPointer< vtkHeatmapItemGetHeatmap ()
void SetHeatmap (vtkSmartPointer< vtkHeatmapItem >)
float GetTreeLineWidth ()
void SetTreeLineWidth (float width)

Static Public Member Functions

static vtkTreeHeatmapItemNew ()
static int IsTypeOf (const char *type)
static vtkTreeHeatmapItemSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTreeHeatmapItem ()
 ~vtkTreeHeatmapItem ()
virtual bool Paint (vtkContext2D *painter)
void CollapseHeatmapRows ()
void CollapseHeatmapColumns ()

Protected Attributes

vtkSmartPointer
< vtkDendrogramItem
Dendrogram
vtkSmartPointer
< vtkDendrogramItem
ColumnDendrogram
vtkSmartPointer< vtkHeatmapItemHeatmap
int Orientation

Detailed Description

A 2D graphics item for rendering a tree and an associated heatmap.

This item draws a tree and a heatmap as a part of a vtkContextScene. The input tree's vertex data must contain at least two arrays. The first required array is a vtkStringArray called "node name". This array corresponds to the first column of the input table. The second required array is a scalar array called "node weight". This array is used by vtkTreeLayoutStrategy to set any particular node's distance from the root of the tree.

The vtkNewickTreeReader automatically initializes both of these required arrays in its output tree.

.SEE ALSO vtkDendrogramItem vtkHeatmapItem vtkTree vtkTable vtkNewickTreeReader

Tests:
vtkTreeHeatmapItem (Tests)

Definition at line 54 of file vtkTreeHeatmapItem.h.


Member Typedef Documentation

Reimplemented from vtkContextItem.

Definition at line 58 of file vtkTreeHeatmapItem.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkTreeHeatmapItem::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkContextItem.

virtual int vtkTreeHeatmapItem::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkContextItem.

Reimplemented from vtkContextItem.

virtual vtkObjectBase* vtkTreeHeatmapItem::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkContextItem.

Reimplemented from vtkContextItem.

virtual void vtkTreeHeatmapItem::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkContextItem.

virtual void vtkTreeHeatmapItem::SetTree ( vtkTree tree) [virtual]

Set the tree that this item draws. Note that this tree's vertex data must contain a vtkStringArray called "node name". Additionally, this array must contain the same values as the first column of the input table. See SetTable for more information. The vtkNewickTreeReader automatically creates this required array for you.

Get the tree that this item draws.

virtual void vtkTreeHeatmapItem::SetColumnTree ( vtkTree tree) [virtual]

Set a tree to be drawn for the columns of the heatmap. This tree's vertex data must contain a vtkStringArray called "node name" that corresponds to the names of the columns in the heatmap.

Get the tree that represents the columns of the heatmap (if one has been set).

virtual void vtkTreeHeatmapItem::SetTable ( vtkTable table) [virtual]

Set the table that this item draws. The first column of the table must contain the names of the rows. These names, in turn, must correspond with the nodes names in the input tree. See SetTree for more information.

Get the table that this item draws.

Get/Set the dendrogram contained by this item.

Get/Set the dendrogram contained by this item.

Get/Set the heatmap contained by this item.

Get/Set the heatmap contained by this item.

Reorder the rows in the table so they match the order of the leaf nodes in our tree.

Reverse the order of the rows in our input table. This is used to simplify the table layout for DOWN_TO_UP and RIGHT_TO_LEFT orientations.

Reverse the order of the rows in our input table. This is used to simplify the table layout for DOWN_TO_UP and UP_TO_DOWN orientations.

void vtkTreeHeatmapItem::SetOrientation ( int  orientation)

Set which way the tree / heatmap should face within the visualization. The default is for both components to be drawn left to right.

Get the current orientation.

Get the bounds of this item (xMin, xMax, yMin, Max) in pixel coordinates.

Get the center point of this item in pixel coordinates.

Get the size of this item in pixel coordinates.

Collapse subtrees until there are only n leaf nodes left in the tree. The leaf nodes that remain are those that are closest to the root. Any subtrees that were collapsed prior to this function being called may be re-expanded. Use this function instead of this->GetDendrogram->CollapseToNumberOfLeafNodes(), as this function also handles the hiding of heatmap rows that correspond to newly collapsed subtrees.

Get/Set how wide the edges of the trees should be. Default is one pixel.

Get/Set how wide the edges of the trees should be. Default is one pixel.

Deprecated. Use this->GetDendrogram()->GetPrunedTree() instead.

void vtkTreeHeatmapItem::SetTreeColorArray ( const char *  arrayName)

Deprecated. Use this->GetDendrogram()->SetColorArray(const char *arrayName) instead.

virtual bool vtkTreeHeatmapItem::Hit ( const vtkContextMouseEvent mouse) [virtual]

Returns true if the transform is interactive, false otherwise.

Reimplemented from vtkAbstractContextItem.

virtual bool vtkTreeHeatmapItem::MouseDoubleClickEvent ( const vtkContextMouseEvent event) [virtual]

Propagate any double click onto the dendrogram to check if any subtrees should be collapsed or expanded.

Reimplemented from vtkAbstractContextItem.

virtual bool vtkTreeHeatmapItem::Paint ( vtkContext2D painter) [protected, virtual]

Paints the tree & associated table as a heatmap.

Reimplemented from vtkAbstractContextItem.

Mark heatmap rows as hidden when a subtree is collapsed.

Mark heatmap columns as hidden when a subtree is collapsed.


Member Data Documentation

Definition at line 179 of file vtkTreeHeatmapItem.h.

Definition at line 180 of file vtkTreeHeatmapItem.h.

Definition at line 181 of file vtkTreeHeatmapItem.h.

Definition at line 182 of file vtkTreeHeatmapItem.h.


The documentation for this class was generated from the following file: