VTK  9.3.20240418
vtkVertexDegree.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
20 #ifndef vtkVertexDegree_h
21 #define vtkVertexDegree_h
22 
23 #include "vtkGraphAlgorithm.h"
24 #include "vtkInfovisCoreModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKINFOVISCORE_EXPORT vtkVertexDegree : public vtkGraphAlgorithm
28 {
29 public:
30  static vtkVertexDegree* New();
31 
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
40  vtkSetStringMacro(OutputArrayName);
42 
43 protected:
45  ~vtkVertexDegree() override;
46 
48 
49 private:
50  char* OutputArrayName;
51 
52  vtkVertexDegree(const vtkVertexDegree&) = delete;
53  void operator=(const vtkVertexDegree&) = delete;
54 };
55 
56 VTK_ABI_NAMESPACE_END
57 #endif
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Adds an attribute array with the degree of each vertex.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkVertexDegree * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkVertexDegree() override