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 "vtkInfovisCoreModule.h" // For export macro
37 #include "vtkTreeAlgorithm.h"
38 
39 class vtkStdString;
40 
42 {
43 public:
44  static vtkNetworkHierarchy* New();
46 
48 
49  vtkGetStringMacro(IPArrayName);
50  vtkSetStringMacro(IPArrayName);
52 
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
55 protected:
58 
59  int RequestData(
63 
65  int vtkNotUsed(port), vtkInformation* info);
67  int vtkNotUsed(port), vtkInformation* info);
68 
69 private:
70  vtkNetworkHierarchy(const vtkNetworkHierarchy&); // Not implemented
71  void operator=(const vtkNetworkHierarchy&); // Not implemented
72 
73  // Internal helper functions
74  unsigned int ITON(vtkStdString ip);
75  void GetSubnets(unsigned int packedIP, int *subnets);
76 
77  char *IPArrayName;
78 
79 };
80 
81 #endif
82 
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
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:38
#define VTKINFOVISCORE_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)