VTK  9.1.0
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
39class vtkDataSet;
40
41class VTKINFOVISLAYOUT_EXPORT vtkPerturbCoincidentVertices : public vtkGraphAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkSetMacro(PerturbFactor, double);
53 vtkGetMacro(PerturbFactor, double);
55
56protected:
59
61
62private:
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
contains an octree of labels
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:339
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Perturbs vertices that are coincident.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPerturbCoincidentVertices() override
static vtkPerturbCoincidentVertices * New()