VTK
vtkGraphLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphLayoutStrategy.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
36 #ifndef __vtkGraphLayoutStrategy_h
37 #define __vtkGraphLayoutStrategy_h
38 
39 #include "vtkObject.h"
40 
41 class vtkGraph;
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  virtual void SetGraph(vtkGraph *graph);
51 
54  virtual void Initialize() {};
55 
60  virtual void Layout()=0;
61 
64  virtual int IsLayoutComplete() {return 1;}
65 
67 
68  virtual void SetWeightEdges(bool state);
69  vtkGetMacro(WeightEdges, bool);
71 
73 
74  virtual void SetEdgeWeightField(const char* field);
75  vtkGetStringMacro(EdgeWeightField);
77 
78 protected:
81 
85 private:
86 
87  vtkGraphLayoutStrategy(const vtkGraphLayoutStrategy&); // Not implemented.
88  void operator=(const vtkGraphLayoutStrategy&); // Not implemented.
89 };
90 
91 #endif
92 
abstract base class for most VTK objects
Definition: vtkObject.h:60
abstract superclass for all graph layout strategies
Base class for graph data types.
Definition: vtkGraph.h:287
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_INFOVIS_EXPORT