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
24#ifndef vtkGraphLayout_h
25#define vtkGraphLayout_h
26
27#include "vtkGraphAlgorithm.h"
28#include "vtkInfovisLayoutModule.h" // For export macro
29
30VTK_ABI_NAMESPACE_BEGIN
34
35class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
49
53 virtual int IsLayoutComplete();
54
59
61
67 vtkGetMacro(ZRange, double);
68 vtkSetMacro(ZRange, double);
70
72
75 vtkGetObjectMacro(Transform, vtkAbstractTransform);
78
80
83 vtkSetMacro(UseTransform, bool);
84 vtkGetMacro(UseTransform, bool);
85 vtkBooleanMacro(UseTransform, bool);
87
88protected:
90 ~vtkGraphLayout() override;
91
93
99
101
102private:
103 vtkGraph* LastInput;
104 vtkGraph* InternalGraph;
105 vtkMTimeType LastInputMTime;
106 bool StrategyChanged;
107 double ZRange;
108 vtkAbstractTransform* Transform;
109 bool UseTransform;
110
111 vtkGraphLayout(const vtkGraphLayout&) = delete;
112 void operator=(const vtkGraphLayout&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#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:281
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270