VTK  9.4.20250421
vtkNetworkHierarchy.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
18#ifndef vtkNetworkHierarchy_h
19#define vtkNetworkHierarchy_h
20
21#include "vtkInfovisCoreModule.h" // For export macro
22#include "vtkTreeAlgorithm.h"
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkStdString;
26
27class VTKINFOVISCORE_EXPORT vtkNetworkHierarchy : public vtkTreeAlgorithm
28{
29public:
32
34
37 vtkGetStringMacro(IPArrayName);
38 vtkSetStringMacro(IPArrayName);
40
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43protected:
46
48
49 int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
50 int FillInputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
51
52private:
54 void operator=(const vtkNetworkHierarchy&) = delete;
55
56 // Internal helper functions
57 unsigned int ITON(const vtkStdString& ip);
58 void GetSubnets(unsigned int packedIP, int* subnets);
59
60 char* IPArrayName;
61};
62
63VTK_ABI_NAMESPACE_END
64#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Filter that takes a graph and makes a tree out of the network ip addresses in that graph.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkNetworkHierarchy() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
static vtkNetworkHierarchy * New()
int FillInputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
Wrapper around std::string to keep symbols short.
Superclass for algorithms that produce only Tree as output.