VTK: Infovis/Core/vtkVertexDegree.h Source File

| VTK 9.3.1

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
32 vtkTypeMacro(vtkVertexDegree, vtkGraphAlgorithm);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
40 vtkSetStringMacro(OutputArrayName);
42
43 protected:
44 vtkVertexDegree();
45 ~vtkVertexDegree() override;
46
47 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
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
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkVertexDegree
Adds an attribute array with the degree of each vertex.
Definition: vtkVertexDegree.h:28
vtkVertexDegree::vtkVertexDegree
vtkVertexDegree()
vtkVertexDegree::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVertexDegree::New
static vtkVertexDegree * New()
vtkVertexDegree::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkVertexDegree::~vtkVertexDegree
~vtkVertexDegree() override
vtkGraphAlgorithm.h