VTK
dox/Graphics/vtkGraphToPolyData.h
Go to the documentation of this file.
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 "vtkPolyDataAlgorithm.h"
00044 
00045 class VTK_GRAPHICS_EXPORT vtkGraphToPolyData : public vtkPolyDataAlgorithm 
00046 {
00047 public:
00048   static vtkGraphToPolyData *New();
00049   vtkTypeMacro(vtkGraphToPolyData,vtkPolyDataAlgorithm);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051   
00053 
00058   vtkSetMacro(EdgeGlyphOutput, bool);
00059   vtkGetMacro(EdgeGlyphOutput, bool);
00060   vtkBooleanMacro(EdgeGlyphOutput, bool);
00062 
00064 
00068   vtkSetMacro(EdgeGlyphPosition, double);
00069   vtkGetMacro(EdgeGlyphPosition, double);
00071   
00072 protected:
00073   vtkGraphToPolyData();
00074   ~vtkGraphToPolyData() {}
00075   
00076   bool EdgeGlyphOutput;
00077   double EdgeGlyphPosition;
00078   bool ArcEdges;
00079   vtkIdType NumberOfArcSubdivisions;
00080 
00082   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00083   
00085   int FillInputPortInformation(int port, vtkInformation* info);
00086 
00087 private:
00088   vtkGraphToPolyData(const vtkGraphToPolyData&);  // Not implemented.
00089   void operator=(const vtkGraphToPolyData&);  // Not implemented.
00090 };
00091 
00092 #endif