VTK
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 -------------------------------------------------------------------------*/
30 #ifndef __vtkPerturbCoincidentVertices_h
31 #define __vtkPerturbCoincidentVertices_h
32 
33 #include "vtkGraphAlgorithm.h"
34 #include "vtkSmartPointer.h" // for ivars
35 
37 class vtkDataSet;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetMacro(PerturbFactor,double);
49  vtkGetMacro(PerturbFactor,double);
51 
52 protected:
55 
56  int RequestData(
60 
61 private:
62 
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&); // Not implemented
71 };
72 
73 #endif
74