VTK  9.2.6
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 -------------------------------------------------------------------------*/
49 #ifndef vtkGraphLayout_h
50 #define vtkGraphLayout_h
51 
52 #include "vtkGraphAlgorithm.h"
53 #include "vtkInfovisLayoutModule.h" // For export macro
54 
58 
59 class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
60 {
61 public:
62  static vtkGraphLayout* New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
71  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
73 
77  virtual int IsLayoutComplete();
78 
82  vtkMTimeType GetMTime() override;
83 
85 
91  vtkGetMacro(ZRange, double);
92  vtkSetMacro(ZRange, double);
94 
96 
99  vtkGetObjectMacro(Transform, vtkAbstractTransform);
102 
104 
107  vtkSetMacro(UseTransform, bool);
108  vtkGetMacro(UseTransform, bool);
109  vtkBooleanMacro(UseTransform, bool);
111 
112 protected:
114  ~vtkGraphLayout() override;
115 
117 
123 
125 
126 private:
127  vtkGraph* LastInput;
128  vtkGraph* InternalGraph;
129  vtkMTimeType LastInputMTime;
130  bool StrategyChanged;
131  double ZRange;
133  bool UseTransform;
134 
135  vtkGraphLayout(const vtkGraphLayout&) = delete;
136  void operator=(const vtkGraphLayout&) = delete;
137 };
138 
139 #endif
superclass for all geometric transformations
a simple event forwarder command
Superclass for algorithms that produce only graph as output.
abstract superclass for all graph layout strategies
layout a graph in 2 or 3 dimensions
virtual int IsLayoutComplete()
Ask the layout algorithm if the layout is complete.
void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
The layout strategy to use during graph layout.
vtkMTimeType GetMTime() override
Get the modification time of the layout algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGraphLayout * New()
vtkEventForwarderCommand * EventForwarder
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
vtkGraphLayoutStrategy * LayoutStrategy
~vtkGraphLayout() override
virtual void SetTransform(vtkAbstractTransform *t)
Transform the graph vertices after the layout.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Base class for graph data types.
Definition: vtkGraph.h:305
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ Transform
Definition: vtkX3D.h:47
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287