VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Views/Infovis/vtkHierarchicalGraphView.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkHierarchicalGraphView.h
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 
00046 #ifndef vtkHierarchicalGraphView_h
00047 #define vtkHierarchicalGraphView_h
00048 
00049 #include "vtkViewsInfovisModule.h" // For export macro
00050 #include "vtkGraphLayoutView.h"
00051 
00052 class vtkRenderedHierarchyRepresentation;
00053 
00054 class VTKVIEWSINFOVIS_EXPORT vtkHierarchicalGraphView : public vtkGraphLayoutView
00055 {
00056 public:
00057   static vtkHierarchicalGraphView *New();
00058   vtkTypeMacro(vtkHierarchicalGraphView, vtkGraphLayoutView);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062 
00064   vtkDataRepresentation* SetHierarchyFromInputConnection(vtkAlgorithmOutput* conn);
00065   vtkDataRepresentation* SetHierarchyFromInput(vtkDataObject* input);
00066   vtkDataRepresentation* SetGraphFromInputConnection(vtkAlgorithmOutput* conn);
00067   vtkDataRepresentation* SetGraphFromInput(vtkDataObject* input);
00069 
00071 
00072   virtual void SetGraphEdgeLabelArrayName(const char* name);
00073   virtual const char* GetGraphEdgeLabelArrayName();
00075 
00077 
00078   virtual void SetGraphEdgeLabelVisibility(bool vis);
00079   virtual bool GetGraphEdgeLabelVisibility();
00080   vtkBooleanMacro(GraphEdgeLabelVisibility, bool);
00082 
00084 
00085   virtual void SetGraphEdgeColorArrayName(const char* name);
00086   virtual const char* GetGraphEdgeColorArrayName();
00088 
00090   virtual void SetGraphEdgeColorToSplineFraction();
00091 
00093 
00094   virtual void SetColorGraphEdgesByArray(bool vis);
00095   virtual bool GetColorGraphEdgesByArray();
00096   vtkBooleanMacro(ColorGraphEdgesByArray, bool);
00098 
00100 
00101   virtual void SetBundlingStrength(double strength);
00102   virtual double GetBundlingStrength();
00104 
00106 
00107   virtual void SetGraphVisibility(bool b);
00108   virtual bool GetGraphVisibility();
00109   vtkBooleanMacro(GraphVisibility, bool);
00111 
00113 
00114   virtual void SetGraphEdgeLabelFontSize(const int size);
00115   virtual int GetGraphEdgeLabelFontSize();
00117 
00118 protected:
00119   vtkHierarchicalGraphView();
00120   ~vtkHierarchicalGraphView();
00121 
00123 
00125   virtual vtkDataRepresentation* CreateDefaultRepresentation(vtkAlgorithmOutput* conn);
00126   virtual vtkRenderedGraphRepresentation* GetGraphRepresentation();
00127   virtual vtkRenderedHierarchyRepresentation* GetHierarchyRepresentation();
00129 
00130 private:
00131   vtkHierarchicalGraphView(const vtkHierarchicalGraphView&);  // Not implemented.
00132   void operator=(const vtkHierarchicalGraphView&);  // Not implemented.
00133 };
00134 
00135 #endif