VTK
dox/Infovis/vtkGraphAnnotationLayersFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkGraphAnnotationLayersFilter.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 
00051 #ifndef __vtkGraphAnnotationLayersFilter_h
00052 #define __vtkGraphAnnotationLayersFilter_h
00053 
00054 #include "vtkPolyDataAlgorithm.h"
00055 #include "vtkSmartPointer.h" // needed for ivars
00056 
00057 class vtkAppendPolyData;
00058 class vtkConvexHull2D;
00059 class vtkRenderer;
00060 
00061 
00062 class VTK_INFOVIS_EXPORT vtkGraphAnnotationLayersFilter: public vtkPolyDataAlgorithm
00063 {
00064 public:
00065   static vtkGraphAnnotationLayersFilter *New();
00066   vtkTypeMacro(vtkGraphAnnotationLayersFilter, vtkPolyDataAlgorithm);
00067   void PrintSelf(ostream& os, vtkIndent indent);
00068 
00070 
00071   void OutlineOn();
00072   void OutlineOff();
00073   void SetOutline(bool b);
00075 
00077   void SetScaleFactor(double scale);
00078 
00080   void SetHullShapeToBoundingRectangle();
00081 
00083   void SetHullShapeToConvexHull();
00084 
00087   void SetMinHullSizeInWorld(double size);
00088 
00091   void SetMinHullSizeInDisplay(int size);
00092 
00095   void SetRenderer(vtkRenderer* renderer);
00096 
00098   virtual unsigned long GetMTime();
00099 
00100 protected:
00101   vtkGraphAnnotationLayersFilter();
00102   ~vtkGraphAnnotationLayersFilter();
00103 
00105 
00107   int RequestData(vtkInformation *, vtkInformationVector **,
00108     vtkInformationVector *);
00110 
00112   int FillInputPortInformation(int port, vtkInformation* info);
00113 
00114 private:
00115   vtkGraphAnnotationLayersFilter(const vtkGraphAnnotationLayersFilter&); // Not implemented.
00116   void operator=(const vtkGraphAnnotationLayersFilter&); // Not implemented.
00117 
00118   vtkSmartPointer<vtkAppendPolyData> HullAppend;
00119   vtkSmartPointer<vtkAppendPolyData> OutlineAppend;
00120   vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
00121 };
00122 
00123 #endif // __vtkGraphAnnotationLayersFilter_h