00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkHierarchicalGraphView.h,v $ 00005 00006 ------------------------------------------------------------------------- 00007 Copyright 2008 Sandia Corporation. 00008 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 the U.S. Government retains certain rights in this software. 00010 ------------------------------------------------------------------------- 00011 00012 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00013 All rights reserved. 00014 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00015 00016 This software is distributed WITHOUT ANY WARRANTY; without even 00017 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00018 PURPOSE. See the above copyright notice for more information. 00019 00020 =========================================================================*/ 00021 00043 #ifndef __vtkHierarchicalGraphView_h 00044 #define __vtkHierarchicalGraphView_h 00045 00046 #include "vtkGraphLayoutView.h" 00047 00048 class vtkRenderedHierarchyRepresentation; 00049 00050 class VTK_VIEWS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView 00051 { 00052 public: 00053 static vtkHierarchicalGraphView *New(); 00054 vtkTypeRevisionMacro(vtkHierarchicalGraphView, vtkGraphLayoutView); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00060 vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn); 00061 vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input); 00062 vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn); 00063 vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input); 00065 00067 00068 virtual void SetGraphEdgeLabelArrayName(const char* name); 00069 virtual const char* GetGraphEdgeLabelArrayName(); 00071 00073 00074 virtual void SetGraphEdgeLabelVisibility(bool vis); 00075 virtual bool GetGraphEdgeLabelVisibility(); 00076 vtkBooleanMacro(GraphEdgeLabelVisibility, bool); 00078 00080 00081 virtual void SetGraphEdgeColorArrayName(const char* name); 00082 virtual const char* GetGraphEdgeColorArrayName(); 00084 00086 virtual void SetGraphEdgeColorToSplineFraction(); 00087 00089 00090 virtual void SetColorGraphEdgesByArray(bool vis); 00091 virtual bool GetColorGraphEdgesByArray(); 00092 vtkBooleanMacro(ColorGraphEdgesByArray, bool); 00094 00096 00097 virtual void SetBundlingStrength(double strength); 00098 virtual double GetBundlingStrength(); 00100 00102 00103 virtual void SetGraphVisibility(bool b); 00104 virtual bool GetGraphVisibility(); 00105 vtkBooleanMacro(GraphVisibility, bool); 00107 00109 00110 virtual void SetGraphEdgeLabelFontSize(const int size); 00111 virtual int GetGraphEdgeLabelFontSize(); 00113 00114 protected: 00115 vtkHierarchicalGraphView(); 00116 ~vtkHierarchicalGraphView(); 00117 00119 00121 virtual vtkDataRepresentation* CreateDefaultRepresentation(vtkAlgorithmOutput* conn); 00122 virtual vtkRenderedGraphRepresentation* GetGraphRepresentation(); 00123 virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation(); 00125 00126 private: 00127 vtkHierarchicalGraphView(const vtkHierarchicalGraphView&); // Not implemented. 00128 void operator=(const vtkHierarchicalGraphView&); // Not implemented. 00129 }; 00130 00131 #endif