VTK  9.3.20240425
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
43#ifndef vtkGraphLayout_h
44#define vtkGraphLayout_h
45
46#include "vtkGraphAlgorithm.h"
47#include "vtkInfovisLayoutModule.h" // For export macro
48
49VTK_ABI_NAMESPACE_BEGIN
53
54class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
55{
56public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
66 vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
68
72 virtual int IsLayoutComplete();
73
78
80
86 vtkGetMacro(ZRange, double);
87 vtkSetMacro(ZRange, double);
89
91
94 vtkGetObjectMacro(Transform, vtkAbstractTransform);
97
99
102 vtkSetMacro(UseTransform, bool);
103 vtkGetMacro(UseTransform, bool);
104 vtkBooleanMacro(UseTransform, bool);
106
107protected:
109 ~vtkGraphLayout() override;
110
112
118
120
121private:
122 vtkGraph* LastInput;
123 vtkGraph* InternalGraph;
124 vtkMTimeType LastInputMTime;
125 bool StrategyChanged;
126 double ZRange;
127 vtkAbstractTransform* Transform;
128 bool UseTransform;
129
130 vtkGraphLayout(const vtkGraphLayout&) = delete;
131 void operator=(const vtkGraphLayout&) = delete;
132};
133
134VTK_ABI_NAMESPACE_END
135#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.
vtkEventForwarderCommand * EventForwarder
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
vtkGraphLayoutStrategy * LayoutStrategy
static vtkGraphLayout * New()
~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:340
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270