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 "vtkInfovisLayoutModule.h" // For export macro
43 #include "vtkGraphAlgorithm.h"
44 
48 
50 {
51 public:
52  static vtkGraphLayout *New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy);
59  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
61 
63  virtual int IsLayoutComplete();
64 
66  virtual unsigned long GetMTime();
67 
69 
72  vtkGetMacro(ZRange, double);
73  vtkSetMacro(ZRange, double);
75 
77 
78  vtkGetObjectMacro(Transform, vtkAbstractTransform);
79  virtual void SetTransform(vtkAbstractTransform* t);
81 
83 
84  vtkSetMacro(UseTransform, bool);
85  vtkGetMacro(UseTransform, bool);
86  vtkBooleanMacro(UseTransform, bool);
88 
89 protected:
91  ~vtkGraphLayout();
92 
94 
98 
100 
101 private:
102 
103  vtkGraph* LastInput;
104  vtkGraph* InternalGraph;
105  unsigned long LastInputMTime;
106  bool StrategyChanged;
107  double ZRange;
109  bool UseTransform;
110 
111  vtkGraphLayout(const vtkGraphLayout&); // Not implemented.
112  void operator=(const vtkGraphLayout&); // Not implemented.
113 };
114 
115 #endif
a simple event forwarder command
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
#define VTKINFOVISLAYOUT_EXPORT
Superclass for algorithms that produce only graph as output.
abstract superclass for all graph layout strategies
Base class for graph data types.
Definition: vtkGraph.h:288
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
layout a graph in 2 or 3 dimensions
void PrintSelf(ostream &os, vtkIndent indent)
superclass for all geometric transformations
vtkEventForwarderCommand * EventForwarder
vtkGraphLayoutStrategy * LayoutStrategy
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.