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 -------------------------------------------------------------------------*/
34 #ifndef vtkNetworkHierarchy_h
35 #define vtkNetworkHierarchy_h
36 
37 #include "vtkInfovisCoreModule.h" // For export macro
38 #include "vtkTreeAlgorithm.h"
39 
40 class vtkStdString;
41 
42 class VTKINFOVISCORE_EXPORT vtkNetworkHierarchy : public vtkTreeAlgorithm
43 {
44 public:
47 
49 
52  vtkGetStringMacro(IPArrayName);
53  vtkSetStringMacro(IPArrayName);
55 
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
58 protected:
61 
66 
68  int vtkNotUsed(port), vtkInformation* info);
70  int vtkNotUsed(port), vtkInformation* info);
71 
72 private:
73  vtkNetworkHierarchy(const vtkNetworkHierarchy&) VTK_DELETE_FUNCTION;
74  void operator=(const vtkNetworkHierarchy&) VTK_DELETE_FUNCTION;
75 
76  // Internal helper functions
77  unsigned int ITON(vtkStdString ip);
78  void GetSubnets(unsigned int packedIP, int *subnets);
79 
80  char *IPArrayName;
81 
82 };
83 
84 #endif
85 
a simple class to control print indentation
Definition: vtkIndent.h:40
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.
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info)
static vtkNetworkHierarchy * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int vtkNotUsed(port), vtkInformation *info)
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
Superclass for algorithms that produce only Tree as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.