VTK
vtkGraphLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphLayout.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 -------------------------------------------------------------------------*/
39 #ifndef __vtkGraphLayout_h
40 #define __vtkGraphLayout_h
41 
42 #include "vtkGraphAlgorithm.h"
43 
47 
49 {
50 public:
51  static vtkGraphLayout *New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy);
58  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
60 
62  virtual int IsLayoutComplete();
63 
65  virtual unsigned long GetMTime();
66 
68 
71  vtkGetMacro(ZRange, double);
72  vtkSetMacro(ZRange, double);
74 
76 
77  vtkGetObjectMacro(Transform, vtkAbstractTransform);
78  virtual void SetTransform(vtkAbstractTransform* t);
80 
82 
83  vtkSetMacro(UseTransform, bool);
84  vtkGetMacro(UseTransform, bool);
85  vtkBooleanMacro(UseTransform, bool);
87 
88 protected:
90  ~vtkGraphLayout();
91 
93 
97 
99 
100 private:
101 
102  vtkGraph* LastInput;
103  vtkGraph* InternalGraph;
104  unsigned long LastInputMTime;
105  bool StrategyChanged;
106  double ZRange;
108  bool UseTransform;
109 
110  vtkGraphLayout(const vtkGraphLayout&); // Not implemented.
111  void operator=(const vtkGraphLayout&); // Not implemented.
112 };
113 
114 #endif