vtkTreeAreaView Class Reference

#include <vtkTreeAreaView.h>

Inheritance diagram for vtkTreeAreaView:

Inheritance graph
[legend]
Collaboration diagram for vtkTreeAreaView:

Collaboration graph
[legend]

List of all members.


Detailed Description

Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display. Currently, this means displaying the hierarchy using a tree ring layout, then rendering the graph vertices as leaves of the tree with curved graph edges between leaves.

Takes a graph and a hierarchy (currently a tree) and lays out the graph vertices based on their categorization within the hierarchy.

.SEE ALSO vtkTreeLayoutView vtkGraphLayoutView

Thanks:
Thanks to Jason Shepherd for implementing this class

Definition at line 77 of file vtkTreeAreaView.h.


Public Types

typedef vtkRenderView Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetAreaSizeArrayName (const char *name)
void SetLabelPriorityArrayName (const char *name)
void SetAreaColorArrayName (const char *name)
void SetEdgeColorToSplineFraction ()
void SetBundlingStrength (double strength)
virtual void SetupRenderWindow (vtkRenderWindow *win)
virtual void ApplyViewTheme (vtkViewTheme *theme)
vtkDataRepresentationSetTreeFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationSetTreeFromInput (vtkTree *input)
vtkDataRepresentationSetGraphFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationSetGraphFromInput (vtkGraph *input)
void SetAreaLabelArrayName (const char *name)
const char * GetAreaLabelArrayName ()
void SetEdgeLabelArrayName (const char *name)
const char * GetEdgeLabelArrayName ()
void SetAreaHoverArrayName (const char *name)
const char * GetAreaHoverArrayName ()
void SetAreaLabelVisibility (bool vis)
bool GetAreaLabelVisibility ()
void AreaLabelVisibilityOn ()
void AreaLabelVisibilityOff ()
void SetEdgeLabelVisibility (bool vis)
bool GetEdgeLabelVisibility ()
void EdgeLabelVisibilityOn ()
void EdgeLabelVisibilityOff ()
void SetColorVertices (bool vis)
bool GetColorVertices ()
virtual void ColorVerticesOn ()
virtual void ColorVerticesOff ()
void SetEdgeColorArrayName (const char *name)
const char * GetEdgeColorArrayName ()
void SetShrinkPercentage (double value)
double GetShrinkPercentage ()
void SetColorEdges (bool vis)
bool GetColorEdges ()
virtual void ColorEdgesOn ()
virtual void ColorEdgesOff ()
virtual vtkDataRepresentationGetGraphRepresentation ()
virtual vtkDataRepresentationGetTreeRepresentation ()
virtual void SetAreaLabelFontSize (const int size)
virtual int GetAreaLabelFontSize ()
virtual void SetEdgeLabelFontSize (const int size)
virtual int GetEdgeLabelFontSize ()
virtual void SetLayoutStrategy (vtkAreaLayoutStrategy *strategy)
virtual vtkAreaLayoutStrategyGetLayoutStrategy ()
virtual void SetAreaToPolyData (vtkPolyDataAlgorithm *areaToPoly)
virtual vtkPolyDataAlgorithmGetAreaToPolyData ()
virtual void SetUseRectangularCoordinates (bool rect)
virtual bool GetUseRectangularCoordinates ()
virtual void UseRectangularCoordinatesOn ()
virtual void UseRectangularCoordinatesOff ()
virtual void SetAreaLabelMapper (vtkLabeledDataMapper *mapper)
virtual vtkLabeledDataMapperGetAreaLabelMapper ()

Static Public Member Functions

static vtkTreeAreaViewNew ()
static int IsTypeOf (const char *type)
static vtkTreeAreaViewSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkTreeAreaView ()
 ~vtkTreeAreaView ()
virtual void PrepareForRendering ()
void MapToXYPlane (double displayX, double displayY, double &x, double &y)
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)
virtual void AddInputConnection (int port, int item, vtkAlgorithmOutput *conn, vtkAlgorithmOutput *selectConn)
virtual void RemoveInputConnection (int port, int item, vtkAlgorithmOutput *conn, vtkAlgorithmOutput *selectConn)

Protected Attributes

vtkSmartPointer< vtkCoordinateCoordinate
vtkSmartPointer
< vtkGraphHierarchicalBundle
HBundle
vtkSmartPointer< vtkSplineFilterSpline
vtkSmartPointer< vtkVertexDegreeVertexDegree
vtkSmartPointer< vtkVertexDegreeGraphVertexDegree
vtkSmartPointer< vtkEdgeCentersEdgeCenters
vtkSmartPointer
< vtkTreeFieldAggregator
TreeAggregation
vtkSmartPointer
< vtkTransferAttributes
TransferAttributes
vtkSmartPointer
< vtkTreeLevelsFilter
TreeLevels
vtkSmartPointer
< vtkDynamic2DLabelMapper
EdgeLabelMapper
vtkSmartPointer< vtkActor2DEdgeLabelActor
vtkSmartPointer
< vtkPolyDataMapper
GraphEdgeMapper
vtkSmartPointer< vtkActorGraphEdgeActor
vtkSmartPointer< vtkAreaLayoutAreaLayout
vtkSmartPointer
< vtkPolyDataMapper
AreaMapper
vtkSmartPointer< vtkActorAreaActor
vtkSmartPointer< vtkActor2DAreaLabelActor
vtkPolyDataAlgorithmAreaToPolyData
vtkLabeledDataMapperAreaLabelMapper
vtkSmartPointer< vtkSelectionEmptySelection
vtkSmartPointer
< vtkKdTreeSelector
KdTreeSelector
vtkSmartPointer
< vtkHardwareSelector
HardwareSelector
vtkSmartPointer
< vtkExtractSelectedGraph
ExtractSelectedGraph
vtkSmartPointer
< vtkGraphHierarchicalBundle
SelectedGraphHBundle
vtkSmartPointer< vtkSplineFilterSelectedGraphSpline
vtkSmartPointer< vtkActorSelectedGraphActor
vtkSmartPointer
< vtkPolyDataMapper
SelectedGraphMapper
vtkSmartPointer
< vtkConvertSelection
ConvertSelection
vtkSmartPointer
< vtkExtractSelectedPolyDataIds
ExtractSelectedAreas
vtkSmartPointer
< vtkPolyDataMapper
SelectedAreaMapper
vtkSmartPointer< vtkActorSelectedAreaActor

Member Typedef Documentation

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

Definition at line 81 of file vtkTreeAreaView.h.


Constructor & Destructor Documentation

vtkTreeAreaView::vtkTreeAreaView (  )  [protected]

vtkTreeAreaView::~vtkTreeAreaView (  )  [protected]


Member Function Documentation

static vtkTreeAreaView* vtkTreeAreaView::New (  )  [static]

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

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

virtual const char* vtkTreeAreaView::GetClassName (  )  [virtual]

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

static int vtkTreeAreaView::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

virtual int vtkTreeAreaView::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

static vtkTreeAreaView* vtkTreeAreaView::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

void vtkTreeAreaView::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 vtkRenderView.

Reimplemented in vtkIcicleView, vtkTreeMapView, and vtkTreeRingView.

vtkDataRepresentation* vtkTreeAreaView::SetTreeFromInputConnection ( vtkAlgorithmOutput conn  ) 

Set the tree and graph representations to the appropriate input ports.

vtkDataRepresentation* vtkTreeAreaView::SetTreeFromInput ( vtkTree input  ) 

Set the tree and graph representations to the appropriate input ports.

vtkDataRepresentation* vtkTreeAreaView::SetGraphFromInputConnection ( vtkAlgorithmOutput conn  ) 

Set the tree and graph representations to the appropriate input ports.

vtkDataRepresentation* vtkTreeAreaView::SetGraphFromInput ( vtkGraph input  ) 

Set the tree and graph representations to the appropriate input ports.

void vtkTreeAreaView::SetAreaLabelArrayName ( const char *  name  ) 

The array to use for area labeling. Default is "label".

const char* vtkTreeAreaView::GetAreaLabelArrayName (  ) 

The array to use for area labeling. Default is "label".

void vtkTreeAreaView::SetAreaSizeArrayName ( const char *  name  ) 

The array to use for area sizes. Default is "size".

void vtkTreeAreaView::SetLabelPriorityArrayName ( const char *  name  ) 

The array to use for area labeling priority. Default is "GraphVertexDegree".

void vtkTreeAreaView::SetEdgeLabelArrayName ( const char *  name  ) 

The array to use for edge labeling. Default is "label".

const char* vtkTreeAreaView::GetEdgeLabelArrayName (  ) 

The array to use for edge labeling. Default is "label".

void vtkTreeAreaView::SetAreaHoverArrayName ( const char *  name  ) 

The name of the array whose value appears when the mouse hovers over a rectangle in the treemap. This must be a string array.

const char* vtkTreeAreaView::GetAreaHoverArrayName (  ) 

The name of the array whose value appears when the mouse hovers over a rectangle in the treemap. This must be a string array.

void vtkTreeAreaView::SetAreaLabelVisibility ( bool  vis  ) 

Whether to show area labels. Default is off.

bool vtkTreeAreaView::GetAreaLabelVisibility (  ) 

Whether to show area labels. Default is off.

void vtkTreeAreaView::AreaLabelVisibilityOn (  ) 

Whether to show area labels. Default is off.

void vtkTreeAreaView::AreaLabelVisibilityOff (  ) 

Whether to show area labels. Default is off.

void vtkTreeAreaView::SetEdgeLabelVisibility ( bool  vis  ) 

Whether to show edge labels. Default is off.

bool vtkTreeAreaView::GetEdgeLabelVisibility (  ) 

Whether to show edge labels. Default is off.

void vtkTreeAreaView::EdgeLabelVisibilityOn (  ) 

Whether to show edge labels. Default is off.

void vtkTreeAreaView::EdgeLabelVisibilityOff (  ) 

Whether to show edge labels. Default is off.

void vtkTreeAreaView::SetAreaColorArrayName ( const char *  name  ) 

The array to use for coloring vertices. Default is "color".

void vtkTreeAreaView::SetColorVertices ( bool  vis  ) 

Whether to color vertices. Default is off.

bool vtkTreeAreaView::GetColorVertices (  ) 

Whether to color vertices. Default is off.

virtual void vtkTreeAreaView::ColorVerticesOn (  )  [virtual]

Whether to color vertices. Default is off.

virtual void vtkTreeAreaView::ColorVerticesOff (  )  [virtual]

Whether to color vertices. Default is off.

void vtkTreeAreaView::SetEdgeColorArrayName ( const char *  name  ) 

The array to use for coloring edges. Default is "color".

const char* vtkTreeAreaView::GetEdgeColorArrayName (  ) 

The array to use for coloring edges. Default is "color".

void vtkTreeAreaView::SetEdgeColorToSplineFraction (  ) 

Set the color to be the spline fraction

void vtkTreeAreaView::SetShrinkPercentage ( double  value  ) 

Set the region shrink percentage between 0.0 and 1.0.

double vtkTreeAreaView::GetShrinkPercentage (  ) 

Set the region shrink percentage between 0.0 and 1.0.

void vtkTreeAreaView::SetColorEdges ( bool  vis  ) 

Whether to color edges. Default is off.

bool vtkTreeAreaView::GetColorEdges (  ) 

Whether to color edges. Default is off.

virtual void vtkTreeAreaView::ColorEdgesOn (  )  [virtual]

Whether to color edges. Default is off.

virtual void vtkTreeAreaView::ColorEdgesOff (  )  [virtual]

Whether to color edges. Default is off.

void vtkTreeAreaView::SetBundlingStrength ( double  strength  ) 

Set the bundling strength.

virtual vtkDataRepresentation* vtkTreeAreaView::GetGraphRepresentation (  )  [inline, virtual]

Retrieve the graph and tree representations.

Definition at line 172 of file vtkTreeAreaView.h.

virtual vtkDataRepresentation* vtkTreeAreaView::GetTreeRepresentation (  )  [inline, virtual]

Retrieve the graph and tree representations.

Definition at line 174 of file vtkTreeAreaView.h.

virtual void vtkTreeAreaView::SetupRenderWindow ( vtkRenderWindow win  )  [virtual]

Sets up interactor style.

Reimplemented from vtkRenderView.

virtual void vtkTreeAreaView::ApplyViewTheme ( vtkViewTheme theme  )  [virtual]

Apply the theme to this view.

Reimplemented from vtkRenderView.

virtual void vtkTreeAreaView::SetAreaLabelFontSize ( const int  size  )  [virtual]

The size of the font used for area labeling

virtual int vtkTreeAreaView::GetAreaLabelFontSize (  )  [virtual]

The size of the font used for area labeling

virtual void vtkTreeAreaView::SetEdgeLabelFontSize ( const int  size  )  [virtual]

The size of the font used for edge labeling

virtual int vtkTreeAreaView::GetEdgeLabelFontSize (  )  [virtual]

The size of the font used for edge labeling

virtual void vtkTreeAreaView::SetLayoutStrategy ( vtkAreaLayoutStrategy strategy  )  [virtual]

The layout strategy for producing spatial regions for the tree.

Reimplemented in vtkTreeMapView.

virtual vtkAreaLayoutStrategy* vtkTreeAreaView::GetLayoutStrategy (  )  [virtual]

The layout strategy for producing spatial regions for the tree.

virtual void vtkTreeAreaView::SetAreaToPolyData ( vtkPolyDataAlgorithm areaToPoly  )  [virtual]

The filter for converting areas to polydata. This may e.g. be vtkTreeMapToPolyData or vtkTreeRingToPolyData. The filter must take a vtkTree as input and produce vtkPolyData.

virtual vtkPolyDataAlgorithm* vtkTreeAreaView::GetAreaToPolyData (  )  [virtual]

The filter for converting areas to polydata. This may e.g. be vtkTreeMapToPolyData or vtkTreeRingToPolyData. The filter must take a vtkTree as input and produce vtkPolyData.

virtual void vtkTreeAreaView::SetUseRectangularCoordinates ( bool  rect  )  [virtual]

Whether the area represents radial or rectangular coordinates.

virtual bool vtkTreeAreaView::GetUseRectangularCoordinates (  )  [virtual]

Whether the area represents radial or rectangular coordinates.

virtual void vtkTreeAreaView::UseRectangularCoordinatesOn (  )  [virtual]

Whether the area represents radial or rectangular coordinates.

virtual void vtkTreeAreaView::UseRectangularCoordinatesOff (  )  [virtual]

Whether the area represents radial or rectangular coordinates.

virtual void vtkTreeAreaView::SetAreaLabelMapper ( vtkLabeledDataMapper mapper  )  [virtual]

The mapper for rendering labels on areas. This may e.g. be vtkDynamic2DLabelMapper or vtkTreeMapLabelMapper.

virtual vtkLabeledDataMapper* vtkTreeAreaView::GetAreaLabelMapper (  )  [virtual]

The mapper for rendering labels on areas. This may e.g. be vtkDynamic2DLabelMapper or vtkTreeMapLabelMapper.

virtual void vtkTreeAreaView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
) [protected, virtual]

Called to process the user event from the interactor style.

Reimplemented from vtkRenderView.

virtual void vtkTreeAreaView::AddInputConnection ( int  port,
int  item,
vtkAlgorithmOutput conn,
vtkAlgorithmOutput selectConn 
) [protected, virtual]

Connects the algorithm output to the internal pipelines.

virtual void vtkTreeAreaView::RemoveInputConnection ( int  port,
int  item,
vtkAlgorithmOutput conn,
vtkAlgorithmOutput selectConn 
) [protected, virtual]

Removes the algorithm output from the internal pipeline.

virtual void vtkTreeAreaView::PrepareForRendering (  )  [protected, virtual]

Prepares the view for rendering.

Reimplemented from vtkRenderView.

void vtkTreeAreaView::MapToXYPlane ( double  displayX,
double  displayY,
double &  x,
double &  y 
) [protected]

May a display coordinate to a world coordinate on the x-y plane.


Member Data Documentation

Definition at line 256 of file vtkTreeAreaView.h.

Definition at line 257 of file vtkTreeAreaView.h.

Definition at line 258 of file vtkTreeAreaView.h.

Definition at line 259 of file vtkTreeAreaView.h.

Definition at line 260 of file vtkTreeAreaView.h.

Definition at line 261 of file vtkTreeAreaView.h.

Definition at line 262 of file vtkTreeAreaView.h.

Definition at line 263 of file vtkTreeAreaView.h.

Definition at line 264 of file vtkTreeAreaView.h.

Definition at line 267 of file vtkTreeAreaView.h.

Definition at line 268 of file vtkTreeAreaView.h.

Definition at line 269 of file vtkTreeAreaView.h.

Definition at line 270 of file vtkTreeAreaView.h.

Definition at line 273 of file vtkTreeAreaView.h.

Definition at line 274 of file vtkTreeAreaView.h.

Definition at line 275 of file vtkTreeAreaView.h.

Definition at line 276 of file vtkTreeAreaView.h.

Definition at line 277 of file vtkTreeAreaView.h.

Definition at line 278 of file vtkTreeAreaView.h.

Definition at line 281 of file vtkTreeAreaView.h.

Definition at line 282 of file vtkTreeAreaView.h.

Definition at line 283 of file vtkTreeAreaView.h.

Definition at line 284 of file vtkTreeAreaView.h.

Definition at line 285 of file vtkTreeAreaView.h.

Definition at line 286 of file vtkTreeAreaView.h.

Definition at line 287 of file vtkTreeAreaView.h.

Definition at line 288 of file vtkTreeAreaView.h.

Definition at line 291 of file vtkTreeAreaView.h.

Definition at line 292 of file vtkTreeAreaView.h.

Definition at line 293 of file vtkTreeAreaView.h.

Definition at line 294 of file vtkTreeAreaView.h.


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

Generated on Wed Jun 3 19:41:07 2009 for VTK by  doxygen 1.5.6