VTK
vtkEdgeLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEdgeLayout.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 (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
29 #ifndef vtkEdgeLayout_h
30 #define vtkEdgeLayout_h
31 
32 #include "vtkInfovisLayoutModule.h" // For export macro
33 #include "vtkGraphAlgorithm.h"
34 
37 
38 class VTKINFOVISLAYOUT_EXPORT vtkEdgeLayout : public vtkGraphAlgorithm
39 {
40 public:
41  static vtkEdgeLayout *New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  void SetLayoutStrategy(vtkEdgeLayoutStrategy *strategy);
50  vtkGetObjectMacro(LayoutStrategy, vtkEdgeLayoutStrategy);
52 
56  vtkMTimeType GetMTime() override;
57 
58 protected:
59  vtkEdgeLayout();
60  ~vtkEdgeLayout() override;
61 
63 
65 
70  unsigned long ObserverTag;
72 
73  int RequestData(
76  vtkInformationVector *) override;
77 
78 private:
79 
80  vtkGraph *InternalGraph;
81 
82  vtkEdgeLayout(const vtkEdgeLayout&) = delete;
83  void operator=(const vtkEdgeLayout&) = delete;
84 };
85 
86 #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:69
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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:70
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:281
a simple class to control print indentation
Definition: vtkIndent.h:33
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:62
abstract superclass for all edge layout strategies
layout graph edges
Definition: vtkEdgeLayout.h:38
Store zero or more vtkInformation instances.