VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkNetworkHierarchy.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00033 #ifndef __vtkNetworkHierarchy_h 00034 #define __vtkNetworkHierarchy_h 00035 00036 #include "vtkInfovisCoreModule.h" // For export macro 00037 #include "vtkTreeAlgorithm.h" 00038 00039 class vtkStdString; 00040 00041 class VTKINFOVISCORE_EXPORT vtkNetworkHierarchy : public vtkTreeAlgorithm 00042 { 00043 public: 00044 static vtkNetworkHierarchy* New(); 00045 vtkTypeMacro(vtkNetworkHierarchy,vtkTreeAlgorithm); 00046 00048 00049 vtkGetStringMacro(IPArrayName); 00050 vtkSetStringMacro(IPArrayName); 00052 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00055 protected: 00056 vtkNetworkHierarchy(); 00057 ~vtkNetworkHierarchy(); 00058 00059 int RequestData( 00060 vtkInformation*, 00061 vtkInformationVector**, 00062 vtkInformationVector*); 00063 00064 int FillOutputPortInformation( 00065 int vtkNotUsed(port), vtkInformation* info); 00066 int FillInputPortInformation( 00067 int vtkNotUsed(port), vtkInformation* info); 00068 00069 private: 00070 vtkNetworkHierarchy(const vtkNetworkHierarchy&); // Not implemented 00071 void operator=(const vtkNetworkHierarchy&); // Not implemented 00072 00073 // Internal helper functions 00074 unsigned int ITON(vtkStdString ip); 00075 void GetSubnets(unsigned int packedIP, int *subnets); 00076 00077 char *IPArrayName; 00078 00079 }; 00080 00081 #endif 00082