VTK  9.3.1
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 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkStdString;
26 
27 class VTKINFOVISCORE_EXPORT vtkNetworkHierarchy : public vtkTreeAlgorithm
28 {
29 public:
30  static vtkNetworkHierarchy* New();
32 
34 
37  vtkGetStringMacro(IPArrayName);
38  vtkSetStringMacro(IPArrayName);
40 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43 protected:
45  ~vtkNetworkHierarchy() override;
46 
48 
49  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
50  int FillInputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
51 
52 private:
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 
63 VTK_ABI_NAMESPACE_END
64 #endif
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:28
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Filter that takes a graph and makes a tree out of the network ip addresses in that graph...
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.