VTK  9.3.20240329
vtkGeoEdgeStrategy.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
17 #ifndef vtkGeoEdgeStrategy_h
18 #define vtkGeoEdgeStrategy_h
19 
20 #include "vtkEdgeLayoutStrategy.h"
21 #include "vtkInfovisLayoutModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKINFOVISLAYOUT_EXPORT vtkGeoEdgeStrategy : public vtkEdgeLayoutStrategy
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
37  vtkSetMacro(GlobeRadius, double);
38  vtkGetMacro(GlobeRadius, double);
40 
42 
49  vtkSetMacro(ExplodeFactor, double);
50  vtkGetMacro(ExplodeFactor, double);
52 
54 
58  vtkSetMacro(NumberOfSubdivisions, int);
59  vtkGetMacro(NumberOfSubdivisions, int);
61 
65  void Layout() override;
66 
67 protected:
69  ~vtkGeoEdgeStrategy() override = default;
70 
71  double GlobeRadius;
72  double ExplodeFactor;
74 
75 private:
76  vtkGeoEdgeStrategy(const vtkGeoEdgeStrategy&) = delete;
77  void operator=(const vtkGeoEdgeStrategy&) = delete;
78 };
79 
80 VTK_ABI_NAMESPACE_END
81 #endif
abstract superclass for all edge layout strategies
Layout graph edges on a globe as arcs.
void Layout() override
Perform the layout.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkGeoEdgeStrategy * New()
~vtkGeoEdgeStrategy() override=default
a simple class to control print indentation
Definition: vtkIndent.h:108