VTK
vtkEdgeLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEdgeLayoutStrategy.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 (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
28 #ifndef vtkEdgeLayoutStrategy_h
29 #define vtkEdgeLayoutStrategy_h
30 
31 #include "vtkInfovisLayoutModule.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkGraph;
35 
36 class VTKINFOVISLAYOUT_EXPORT vtkEdgeLayoutStrategy : public vtkObject
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  virtual void SetGraph(vtkGraph *graph);
46 
52  virtual void Initialize() {}
53 
58  virtual void Layout()=0;
59 
61 
64  vtkSetStringMacro(EdgeWeightArrayName);
65  vtkGetStringMacro(EdgeWeightArrayName);
67 
68 protected:
70  ~vtkEdgeLayoutStrategy() override;
71 
74 
75 private:
76 
78  void operator=(const vtkEdgeLayoutStrategy&) = delete;
79 };
80 
81 #endif
82 
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Base class for graph data types.
Definition: vtkGraph.h:287
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Initialize()
This method allows the layout strategy to do initialization of data structures or whatever else it mi...
abstract superclass for all edge layout strategies