VTK
vtkGeoEdgeStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoEdgeStrategy.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
33 #ifndef vtkGeoEdgeStrategy_h
34 #define vtkGeoEdgeStrategy_h
35 
36 #include "vtkInfovisLayoutModule.h" // For export macro
37 #include "vtkEdgeLayoutStrategy.h"
38 
39 class VTKINFOVISLAYOUT_EXPORT vtkGeoEdgeStrategy : public vtkEdgeLayoutStrategy
40 {
41 public:
42  static vtkGeoEdgeStrategy *New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
52  vtkSetMacro(GlobeRadius, double);
53  vtkGetMacro(GlobeRadius, double);
55 
57 
64  vtkSetMacro(ExplodeFactor, double);
65  vtkGetMacro(ExplodeFactor, double);
67 
69 
73  vtkSetMacro(NumberOfSubdivisions, int);
74  vtkGetMacro(NumberOfSubdivisions, int);
76 
80  void Layout() override;
81 
82 protected:
84  ~vtkGeoEdgeStrategy() override {}
85 
86  double GlobeRadius;
87  double ExplodeFactor;
89 
90 private:
91  vtkGeoEdgeStrategy(const vtkGeoEdgeStrategy&) = delete;
92  void operator=(const vtkGeoEdgeStrategy&) = delete;
93 };
94 
95 #endif
~vtkGeoEdgeStrategy() override
virtual void Layout()=0
This is the layout method where the graph that was set in SetGraph() is laid out. ...
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for all edge layout strategies
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Layout graph edges on a globe as arcs.