VTK
dox/Infovis/vtkAdjacencyMatrixToEdgeTable.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAdjacencyMatrixToEdgeTable.h
00005   
00006 -------------------------------------------------------------------------
00007   Copyright 2008 Sandia Corporation.
00008   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009   the U.S. Government retains certain rights in this software.
00010 -------------------------------------------------------------------------
00011 
00012   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00013   All rights reserved.
00014   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00015 
00016      This software is distributed WITHOUT ANY WARRANTY; without even
00017      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00018      PURPOSE.  See the above copyright notice for more information.
00019 
00020 =========================================================================*/
00021 
00038 #ifndef __vtkAdjacencyMatrixToEdgeTable_h
00039 #define __vtkAdjacencyMatrixToEdgeTable_h
00040 
00041 #include "vtkTableAlgorithm.h"
00042 
00043 class VTK_INFOVIS_EXPORT vtkAdjacencyMatrixToEdgeTable : public vtkTableAlgorithm
00044 {
00045 public:
00046   static vtkAdjacencyMatrixToEdgeTable* New();
00047   vtkTypeMacro(vtkAdjacencyMatrixToEdgeTable, vtkTableAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00053   vtkGetMacro(SourceDimension, vtkIdType);
00054   vtkSetMacro(SourceDimension, vtkIdType);
00056 
00058 
00060   vtkGetStringMacro(ValueArrayName);
00061   vtkSetStringMacro(ValueArrayName);
00063 
00065 
00067   vtkGetMacro(MinimumCount, vtkIdType);
00068   vtkSetMacro(MinimumCount, vtkIdType);
00070 
00072 
00074   vtkGetMacro(MinimumThreshold, double);
00075   vtkSetMacro(MinimumThreshold, double);
00077 
00078 protected:
00079   vtkAdjacencyMatrixToEdgeTable();
00080   ~vtkAdjacencyMatrixToEdgeTable();
00081 
00082   int FillInputPortInformation(int, vtkInformation*);
00083 
00084   int RequestData(
00085     vtkInformation*, 
00086     vtkInformationVector**, 
00087     vtkInformationVector*);
00088 
00089   vtkIdType SourceDimension;
00090   char* ValueArrayName;
00091   vtkIdType MinimumCount;
00092   double MinimumThreshold;
00093 
00094 private:
00095   vtkAdjacencyMatrixToEdgeTable(const vtkAdjacencyMatrixToEdgeTable&); // Not implemented
00096   void operator=(const vtkAdjacencyMatrixToEdgeTable&);   // Not implemented
00097 };
00098 
00099 #endif
00100