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 "vtkGraphAlgorithm.h" 00034 00035 class vtkGraph; 00036 00037 class VTK_FILTERING_EXPORT vtkGraphWeightFilter : public vtkGraphAlgorithm 00038 { 00039 public: 00040 vtkTypeMacro(vtkGraphWeightFilter, vtkGraphAlgorithm); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00043 protected: 00044 vtkGraphWeightFilter(){} 00045 ~vtkGraphWeightFilter(){} 00046 00047 int RequestData(vtkInformation *, 00048 vtkInformationVector **, 00049 vtkInformationVector *); 00050 00053 virtual float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const = 0; 00054 00059 virtual bool CheckRequirements(vtkGraph* const graph) const; 00060 00061 private: 00062 vtkGraphWeightFilter(const vtkGraphWeightFilter&); // Not implemented. 00063 void operator=(const vtkGraphWeightFilter&); // Not implemented. 00064 }; 00065 00066 #endif