VTK
|
Display two related trees. More...
#include <vtkTanglegramItem.h>
Public Types | |
typedef vtkContextItem | Superclass |
![]() | |
typedef vtkAbstractContextItem | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTanglegramItem * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetTree1 (vtkTree *tree) |
virtual void | SetTree2 (vtkTree *tree) |
void | SetOrientation (int orientation) |
int | GetOrientation () |
virtual bool | Hit (const vtkContextMouseEvent &mouse) |
virtual bool | MouseDoubleClickEvent (const vtkContextMouseEvent &event) |
vtkTable * | GetTable () |
void | SetTable (vtkTable *table) |
virtual char * | GetTree1Label () |
virtual void | SetTree1Label (const char *) |
virtual char * | GetTree2Label () |
virtual void | SetTree2Label (const char *) |
virtual int | GetMinimumVisibleFontSize () |
virtual void | SetMinimumVisibleFontSize (int) |
virtual int | GetLabelSizeDifference () |
virtual void | SetLabelSizeDifference (int) |
virtual float | GetCorrespondenceLineWidth () |
virtual void | SetCorrespondenceLineWidth (float) |
float | GetTreeLineWidth () |
void | SetTreeLineWidth (float width) |
![]() | |
vtkContextItem * | NewInstance () const |
virtual double | GetOpacity () |
virtual void | SetOpacity (double) |
![]() | |
vtkAbstractContextItem * | NewInstance () const |
virtual void | Update () |
virtual bool | PaintChildren (vtkContext2D *painter) |
virtual void | ReleaseGraphicsResources () |
unsigned int | AddItem (vtkAbstractContextItem *item) |
bool | RemoveItem (vtkAbstractContextItem *item) |
bool | RemoveItem (unsigned int index) |
vtkAbstractContextItem * | GetItem (unsigned int index) |
unsigned int | GetItemIndex (vtkAbstractContextItem *item) |
unsigned int | GetNumberOfItems () |
void | ClearItems () |
unsigned int | Raise (unsigned int index) |
unsigned int | Lower (unsigned int index) |
virtual vtkAbstractContextItem * | GetPickedItem (const vtkContextMouseEvent &mouse) |
virtual bool | MouseEnterEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseMoveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseLeaveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonPressEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta) |
virtual bool | KeyPressEvent (const vtkContextKeyEvent &key) |
virtual void | SetScene (vtkContextScene *scene) |
virtual void | SetParent (vtkAbstractContextItem *parent) |
virtual vtkVector2f | MapToParent (const vtkVector2f &point) |
virtual vtkVector2f | MapFromParent (const vtkVector2f &point) |
virtual vtkVector2f | MapToScene (const vtkVector2f &point) |
virtual vtkVector2f | MapFromScene (const vtkVector2f &point) |
virtual unsigned int | StackAbove (unsigned int index, unsigned int under) |
virtual unsigned int | StackUnder (unsigned int child, unsigned int above) |
virtual bool | KeyReleaseEvent (const vtkContextKeyEvent &key) |
vtkContextScene * | GetScene () |
vtkAbstractContextItem * | GetParent () |
virtual bool | GetVisible () |
virtual void | SetVisible (bool) |
virtual bool | GetInteractive () |
virtual void | SetInteractive (bool) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkTanglegramItem * | New () |
static int | IsTypeOf (const char *type) |
static vtkTanglegramItem * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkContextItem * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractContextItem * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Additional Inherited Members | |
![]() | |
double | Opacity |
![]() | |
vtkContextScene * | Scene |
vtkAbstractContextItem * | Parent |
vtkContextScenePrivate * | Children |
bool | Visible |
bool | Interactive |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Display two related trees.
This item draws two trees with connections between their leaf nodes. Use SetTable() to specify what leaf nodes correspond to one another between the two trees. See the documentation for this function for more details on how this table should be formatted.
.SEE ALSO vtkTree vtkTable vtkDendrogramItem vtkNewickTreeReader
Definition at line 45 of file vtkTanglegramItem.h.
Definition at line 49 of file vtkTanglegramItem.h.
|
protected |
|
protected |
|
static |
|
static |
|
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.
|
static |
|
protectedvirtual |
Reimplemented from vtkContextItem.
vtkTanglegramItem* vtkTanglegramItem::NewInstance | ( | ) | const |
|
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 |
Set the first tree
|
virtual |
Set the second tree
vtkTable* vtkTanglegramItem::GetTable | ( | ) |
Get/Set the table that describes the correspondences between the two trees. The first column should contain the names of the leaf nodes from tree #1. The columns of this table should be named after the leaf nodes of tree #2. A non-zero cell should be used to create a connection between the two trees. Different numbers in the table will result in connections being drawn in different colors.
void vtkTanglegramItem::SetTable | ( | vtkTable * | table | ) |
Get/Set the table that describes the correspondences between the two trees. The first column should contain the names of the leaf nodes from tree #1. The columns of this table should be named after the leaf nodes of tree #2. A non-zero cell should be used to create a connection between the two trees. Different numbers in the table will result in connections being drawn in different colors.
|
virtual |
Get/Set the label for tree #1.
|
virtual |
Get/Set the label for tree #1.
|
virtual |
Get/Set the label for tree #2.
|
virtual |
Get/Set the label for tree #2.
void vtkTanglegramItem::SetOrientation | ( | int | orientation | ) |
Set which way the tanglegram should face within the visualization. The default is for tree #1 to be drawn left to right.
int vtkTanglegramItem::GetOrientation | ( | ) |
Get the current orientation.
|
virtual |
Get/Set the smallest font size that is still considered legible. If the current zoom level requires our vertex labels to be smaller than this size the labels will not be drawn at all. Default value is 8 pt.
|
virtual |
Get/Set the smallest font size that is still considered legible. If the current zoom level requires our vertex labels to be smaller than this size the labels will not be drawn at all. Default value is 8 pt.
|
virtual |
Get/Set how much larger the dendrogram labels should be compared to the vertex labels. Because the vertex labels automatically resize based on zoom levels, this is a relative (not absolute) size. Default value is 4 pts larger than the vertex labels.
|
virtual |
Get/Set how much larger the dendrogram labels should be compared to the vertex labels. Because the vertex labels automatically resize based on zoom levels, this is a relative (not absolute) size. Default value is 4 pts larger than the vertex labels.
|
virtual |
Get/Set how wide the correspondence lines should be. Default is two pixels.
|
virtual |
Get/Set how wide the correspondence lines should be. Default is two pixels.
float vtkTanglegramItem::GetTreeLineWidth | ( | ) |
Get/Set how wide the edges of the trees should be. Default is one pixel.
void vtkTanglegramItem::SetTreeLineWidth | ( | float | width | ) |
Get/Set how wide the edges of the trees should be. Default is one pixel.
|
virtual |
Returns true if the transform is interactive, false otherwise.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Propagate any double click onto the dendrograms to check if any subtrees should be collapsed or expanded.
Reimplemented from vtkAbstractContextItem.
|
protected |
Update the bounds of our two dendrograms.
|
protected |
Calculate and set an appropriate position for our second dendrogram.
|
protected |
Draw the lines between the corresponding vertices of our two dendrograms.
|
protected |
Draw the labels of our two dendrograms.
|
protected |
Reorder the children of tree #2 to minimize the amount of crossings in our tanglegram.
Helper function used by ReorderTree. Rearrange the children of the specified parent vertex in order to minimize tanglegram crossings.
Helper function used by ReorderTreeAtVertex. Get the average height of the vertices that correspond to the vertex parameter. This information is used to determine what order sibling vertices should have within the tree.
|
protected |
Initialize the lookup table used to color the lines between the two dendrograms.
|
protectedvirtual |
Paints the tree & associated table as a heatmap.
Reimplemented from vtkAbstractContextItem.