VTK
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 -------------------------------------------------------------------------*/
33 #ifndef __vtkNetworkHierarchy_h
34 #define __vtkNetworkHierarchy_h
35 
36 #include "vtkTreeAlgorithm.h"
37 
38 class vtkStdString;
39 
41 {
42 public:
43  static vtkNetworkHierarchy* New();
45 
47 
48  vtkGetStringMacro(IPArrayName);
49  vtkSetStringMacro(IPArrayName);
51 
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
54 protected:
57 
58  int RequestData(
62 
64  int vtkNotUsed(port), vtkInformation* info);
66  int vtkNotUsed(port), vtkInformation* info);
67 
68 private:
69  vtkNetworkHierarchy(const vtkNetworkHierarchy&); // Not implemented
70  void operator=(const vtkNetworkHierarchy&); // Not implemented
71 
72  // Internal helper functions
73  unsigned int ITON(vtkStdString ip);
74  void GetSubnets(unsigned int packedIP, int *subnets);
75 
76  char *IPArrayName;
77 
78 };
79 
80 #endif
81 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_INFOVIS_EXPORT
Filter that takes a graph and makes a tree out of the network ip addresses in that graph...
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)