VTK  9.0.1
vtkPerturbCoincidentVertices.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPerturbCoincidentVertices.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 2009 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 -------------------------------------------------------------------------*/
31 #ifndef vtkPerturbCoincidentVertices_h
32 #define vtkPerturbCoincidentVertices_h
33 
34 #include "vtkGraphAlgorithm.h"
35 #include "vtkInfovisLayoutModule.h" // For export macro
36 #include "vtkSmartPointer.h" // for ivars
37 
39 class vtkDataSet;
40 
41 class VTKINFOVISLAYOUT_EXPORT vtkPerturbCoincidentVertices : public vtkGraphAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetMacro(PerturbFactor, double);
53  vtkGetMacro(PerturbFactor, double);
55 
56 protected:
58  ~vtkPerturbCoincidentVertices() override;
59 
61 
62 private:
63  // This class might have more than one method of coincident resolution
64  void SpiralPerturbation(vtkGraph* input, vtkGraph* output);
65  void SimpleSpiralPerturbation(vtkGraph* input, vtkGraph* output, float perturbFactor);
66 
67  float PerturbFactor;
68 
70  void operator=(const vtkPerturbCoincidentVertices&) = delete;
71 };
72 
73 #endif
static vtkGraphAlgorithm * New()
contains an octree of labels
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:289
a simple class to control print indentation
Definition: vtkIndent.h:33
Perturbs vertices that are coincident.
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.
Store zero or more vtkInformation instances.