VTK  9.3.1
vtkEdgeLayout.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkEdgeLayout_h
18 #define vtkEdgeLayout_h
19 
20 #include "vtkGraphAlgorithm.h"
21 #include "vtkInfovisLayoutModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
26 
27 class VTKINFOVISLAYOUT_EXPORT vtkEdgeLayout : public vtkGraphAlgorithm
28 {
29 public:
30  static vtkEdgeLayout* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
38  void SetLayoutStrategy(vtkEdgeLayoutStrategy* strategy);
39  vtkGetObjectMacro(LayoutStrategy, vtkEdgeLayoutStrategy);
41 
45  vtkMTimeType GetMTime() override;
46 
47 protected:
48  vtkEdgeLayout();
49  ~vtkEdgeLayout() override;
50 
52 
54 
59  unsigned long ObserverTag;
61 
63 
64 private:
65  vtkGraph* InternalGraph;
66 
67  vtkEdgeLayout(const vtkEdgeLayout&) = delete;
68  void operator=(const vtkEdgeLayout&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
a simple event forwarder command
static vtkGraphAlgorithm * New()
vtkEventForwarderCommand * EventForwarder
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
Definition: vtkEdgeLayout.h:58
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
unsigned long ObserverTag
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
Definition: vtkEdgeLayout.h:59
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:280
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkEdgeLayoutStrategy * LayoutStrategy
Definition: vtkEdgeLayout.h:51
abstract superclass for all edge layout strategies
layout graph edges
Definition: vtkEdgeLayout.h:27
Store zero or more vtkInformation instances.