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 =========================================================================*/
31 #ifndef vtkGraphWeightFilter_h
32 #define vtkGraphWeightFilter_h
33 
34 #include "vtkFiltersGeneralModule.h" // For export macro
35 #include "vtkGraphAlgorithm.h"
36 
37 class vtkGraph;
38 
39 class VTKFILTERSGENERAL_EXPORT vtkGraphWeightFilter : public vtkGraphAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45 protected:
47  ~vtkGraphWeightFilter() override {}
48 
51  vtkInformationVector *) override;
52 
57  virtual float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const = 0;
58 
65  virtual bool CheckRequirements(vtkGraph* const graph) const;
66 
67 private:
69  void operator=(const vtkGraphWeightFilter&) = delete;
70 };
71 
72 #endif
vtkGraphWeightFilter::~vtkGraphWeightFilter
~vtkGraphWeightFilter() override
Definition: vtkGraphWeightFilter.h:47
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkEdgeType
Definition: vtkGraph.h:276
vtkGraphWeightFilter::vtkGraphWeightFilter
vtkGraphWeightFilter()
Definition: vtkGraphWeightFilter.h:46
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
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
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:287