VTK
vtkGraphWeightFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphWeightFilter.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 =========================================================================*/
30 #ifndef vtkGraphWeightFilter_h
31 #define vtkGraphWeightFilter_h
32 
33 #include "vtkFiltersGeneralModule.h" // For export macro
34 #include "vtkGraphAlgorithm.h"
35 
36 class vtkGraph;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44 protected:
47 
51 
54  virtual float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const = 0;
55 
60  virtual bool CheckRequirements(vtkGraph* const graph) const;
61 
62 private:
63  vtkGraphWeightFilter(const vtkGraphWeightFilter&); // Not implemented.
64  void operator=(const vtkGraphWeightFilter&); // Not implemented.
65 };
66 
67 #endif
vtkGraphWeightFilter::CheckRequirements
virtual bool CheckRequirements(vtkGraph *const graph) const
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkGraphWeightFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGraphWeightFilter::ComputeWeight
virtual float ComputeWeight(vtkGraph *const graph, const vtkEdgeType &edge) const =0
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGraphWeightFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkEdgeType
Definition: vtkGraph.h:277
vtkGraphWeightFilter::vtkGraphWeightFilter
vtkGraphWeightFilter()
Definition: vtkGraphWeightFilter.h:45
vtkGraphAlgorithm.h
vtkFiltersGeneralModule.h
vtkGraphWeightFilter::~vtkGraphWeightFilter
~vtkGraphWeightFilter()
Definition: vtkGraphWeightFilter.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGraphWeightFilter
Base class for filters that weight graph edges.
Definition: vtkGraphWeightFilter.h:39
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289