VTK  9.3.0
vtkGraphLayout.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
33 #ifndef vtkGraphLayout_h
34 #define vtkGraphLayout_h
35 
36 #include "vtkGraphAlgorithm.h"
37 #include "vtkInfovisLayoutModule.h" // For export macro
38 
39 VTK_ABI_NAMESPACE_BEGIN
43 
44 class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
45 {
46 public:
47  static vtkGraphLayout* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
56  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
58 
62  virtual int IsLayoutComplete();
63 
67  vtkMTimeType GetMTime() override;
68 
70 
76  vtkGetMacro(ZRange, double);
77  vtkSetMacro(ZRange, double);
79 
81 
84  vtkGetObjectMacro(Transform, vtkAbstractTransform);
87 
89 
92  vtkSetMacro(UseTransform, bool);
93  vtkGetMacro(UseTransform, bool);
94  vtkBooleanMacro(UseTransform, bool);
96 
97 protected:
99  ~vtkGraphLayout() override;
100 
102 
108 
110 
111 private:
112  vtkGraph* LastInput;
113  vtkGraph* InternalGraph;
114  vtkMTimeType LastInputMTime;
115  bool StrategyChanged;
116  double ZRange;
118  bool UseTransform;
119 
120  vtkGraphLayout(const vtkGraphLayout&) = delete;
121  void operator=(const vtkGraphLayout&) = delete;
122 };
123 
124 VTK_ABI_NAMESPACE_END
125 #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:290
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ Transform
Definition: vtkX3D.h:41
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270