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 "vtkInfovisLayoutModule.h" // For export macro
40 #include "vtkObject.h"
41 
42 class vtkGraph;
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  virtual void SetGraph(vtkGraph *graph);
52 
55  virtual void Initialize() {}
56 
61  virtual void Layout()=0;
62 
65  virtual int IsLayoutComplete() {return 1;}
66 
68 
69  virtual void SetWeightEdges(bool state);
70  vtkGetMacro(WeightEdges, bool);
72 
74 
75  virtual void SetEdgeWeightField(const char* field);
76  vtkGetStringMacro(EdgeWeightField);
78 
79 protected:
82 
86 private:
87 
88  vtkGraphLayoutStrategy(const vtkGraphLayoutStrategy&); // Not implemented.
89  void operator=(const vtkGraphLayoutStrategy&); // Not implemented.
90 };
91 
92 #endif
93 
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKINFOVISLAYOUT_EXPORT
abstract superclass for all graph layout strategies
Base class for graph data types.
Definition: vtkGraph.h:288
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38