VTK
dox/Infovis/vtkPerturbCoincidentVertices.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPerturbCoincidentVertices.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2009 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00030 #ifndef __vtkPerturbCoincidentVertices_h
00031 #define __vtkPerturbCoincidentVertices_h
00032 
00033 #include "vtkGraphAlgorithm.h"
00034 #include "vtkSmartPointer.h" // for ivars
00035 
00036 class vtkCoincidentPoints;
00037 class vtkDataSet;
00038 
00039 class VTK_INFOVIS_EXPORT vtkPerturbCoincidentVertices : public vtkGraphAlgorithm
00040 {
00041 public:
00042   static vtkPerturbCoincidentVertices* New();
00043   vtkTypeMacro(vtkPerturbCoincidentVertices,vtkGraphAlgorithm);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00047 
00048   vtkSetMacro(PerturbFactor,double);
00049   vtkGetMacro(PerturbFactor,double);
00051 
00052 protected:
00053   vtkPerturbCoincidentVertices();
00054   ~vtkPerturbCoincidentVertices();
00055 
00056   int RequestData(
00057     vtkInformation*, 
00058     vtkInformationVector**, 
00059     vtkInformationVector*);
00060 
00061 private:
00062 
00063   // This class might have more than one method of coincident resolution
00064   void SpiralPerturbation(vtkGraph *input, vtkGraph *output);
00065   void SimpleSpiralPerturbation(vtkGraph *input, vtkGraph *output, float perturbFactor);
00066 
00067   float PerturbFactor;
00068 
00069   vtkPerturbCoincidentVertices(const vtkPerturbCoincidentVertices&); // Not implemented
00070   void operator=(const vtkPerturbCoincidentVertices&);   // Not implemented
00071 };
00072 
00073 #endif
00074