VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGraphWeightFilter.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 =========================================================================*/ 00030 #ifndef __vtkGraphWeightFilter_h 00031 #define __vtkGraphWeightFilter_h 00032 00033 #include "vtkFiltersGeneralModule.h" // For export macro 00034 #include "vtkGraphAlgorithm.h" 00035 00036 class vtkGraph; 00037 00038 class VTKFILTERSGENERAL_EXPORT vtkGraphWeightFilter : public vtkGraphAlgorithm 00039 { 00040 public: 00041 vtkTypeMacro(vtkGraphWeightFilter, vtkGraphAlgorithm); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00044 protected: 00045 vtkGraphWeightFilter(){} 00046 ~vtkGraphWeightFilter(){} 00047 00048 int RequestData(vtkInformation *, 00049 vtkInformationVector **, 00050 vtkInformationVector *); 00051 00054 virtual float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const = 0; 00055 00060 virtual bool CheckRequirements(vtkGraph* const graph) const; 00061 00062 private: 00063 vtkGraphWeightFilter(const vtkGraphWeightFilter&); // Not implemented. 00064 void operator=(const vtkGraphWeightFilter&); // Not implemented. 00065 }; 00066 00067 #endif