VTK  9.1.0
vtkNetworkHierarchy.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkNetworkHierarchy.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=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
31#ifndef vtkNetworkHierarchy_h
32#define vtkNetworkHierarchy_h
33
34#include "vtkInfovisCoreModule.h" // For export macro
35#include "vtkTreeAlgorithm.h"
36
37class vtkStdString;
38
39class VTKINFOVISCORE_EXPORT vtkNetworkHierarchy : public vtkTreeAlgorithm
40{
41public:
44
46
49 vtkGetStringMacro(IPArrayName);
50 vtkSetStringMacro(IPArrayName);
52
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
55protected:
58
60
61 int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
62 int FillInputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
63
64private:
66 void operator=(const vtkNetworkHierarchy&) = delete;
67
68 // Internal helper functions
69 unsigned int ITON(const vtkStdString& ip);
70 void GetSubnets(unsigned int packedIP, int* subnets);
71
72 char* IPArrayName;
73};
74
75#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
Definition: vtkStdString.h:105
Superclass for algorithms that produce only Tree as output.