VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGraphToPolyData.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 -------------------------------------------------------------------------*/ 00040 #ifndef vtkGraphToPolyData_h 00041 #define vtkGraphToPolyData_h 00042 00043 #include "vtkFiltersSourcesModule.h" // For export macro 00044 #include "vtkPolyDataAlgorithm.h" 00045 00046 class VTKFILTERSSOURCES_EXPORT vtkGraphToPolyData : public vtkPolyDataAlgorithm 00047 { 00048 public: 00049 static vtkGraphToPolyData *New(); 00050 vtkTypeMacro(vtkGraphToPolyData,vtkPolyDataAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00059 vtkSetMacro(EdgeGlyphOutput, bool); 00060 vtkGetMacro(EdgeGlyphOutput, bool); 00061 vtkBooleanMacro(EdgeGlyphOutput, bool); 00063 00065 00069 vtkSetMacro(EdgeGlyphPosition, double); 00070 vtkGetMacro(EdgeGlyphPosition, double); 00072 00073 protected: 00074 vtkGraphToPolyData(); 00075 ~vtkGraphToPolyData() {} 00076 00077 bool EdgeGlyphOutput; 00078 double EdgeGlyphPosition; 00079 bool ArcEdges; 00080 vtkIdType NumberOfArcSubdivisions; 00081 00083 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00084 00086 int FillInputPortInformation(int port, vtkInformation* info); 00087 00088 private: 00089 vtkGraphToPolyData(const vtkGraphToPolyData&); // Not implemented. 00090 void operator=(const vtkGraphToPolyData&); // Not implemented. 00091 }; 00092 00093 #endif