VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGraphWeightEuclideanDistanceFilter.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 =========================================================================*/ 00026 #ifndef __vtkGraphWeightEuclideanDistanceFilter_h 00027 #define __vtkGraphWeightEuclideanDistanceFilter_h 00028 00029 #include "vtkFiltersGeneralModule.h" // For export macro 00030 #include "vtkGraphWeightFilter.h" 00031 00032 class vtkGraph; 00033 00034 class VTKFILTERSGENERAL_EXPORT vtkGraphWeightEuclideanDistanceFilter : public vtkGraphWeightFilter 00035 { 00036 public: 00037 static vtkGraphWeightEuclideanDistanceFilter *New(); 00038 vtkTypeMacro(vtkGraphWeightEuclideanDistanceFilter, vtkGraphWeightFilter); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00041 protected: 00042 vtkGraphWeightEuclideanDistanceFilter(){} 00043 ~vtkGraphWeightEuclideanDistanceFilter(){} 00044 00047 float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const; 00048 00050 bool CheckRequirements(vtkGraph* const graph) const; 00051 00052 private: 00053 vtkGraphWeightEuclideanDistanceFilter(const vtkGraphWeightEuclideanDistanceFilter&); // Not implemented. 00054 void operator=(const vtkGraphWeightEuclideanDistanceFilter&); // Not implemented. 00055 }; 00056 00057 #endif