VTK
vtkGraphAnnotationLayersFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphAnnotationLayersFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14  =========================================================================*/
15 
49 #ifndef vtkGraphAnnotationLayersFilter_h
50 #define vtkGraphAnnotationLayersFilter_h
51 
52 #include "vtkRenderingAnnotationModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 #include "vtkSmartPointer.h" // needed for ivars
55 
56 class vtkAppendPolyData;
57 class vtkConvexHull2D;
58 class vtkRenderer;
59 
60 
61 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter: public vtkPolyDataAlgorithm
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
67 
69 
72  void OutlineOn();
73  void OutlineOff();
74  void SetOutline(bool b);
76 
80  void SetScaleFactor(double scale);
81 
85  void SetHullShapeToBoundingRectangle();
86 
90  void SetHullShapeToConvexHull();
91 
96  void SetMinHullSizeInWorld(double size);
97 
102  void SetMinHullSizeInDisplay(int size);
103 
107  void SetRenderer(vtkRenderer* renderer);
108 
112  vtkMTimeType GetMTime() VTK_OVERRIDE;
113 
114 protected:
116  ~vtkGraphAnnotationLayersFilter() VTK_OVERRIDE;
117 
121  int RequestData(vtkInformation *, vtkInformationVector **,
122  vtkInformationVector *) VTK_OVERRIDE;
123 
127  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
128 
129 private:
130  vtkGraphAnnotationLayersFilter(const vtkGraphAnnotationLayersFilter&) VTK_DELETE_FUNCTION;
131  void operator=(const vtkGraphAnnotationLayersFilter&) VTK_DELETE_FUNCTION;
132 
134  vtkSmartPointer<vtkAppendPolyData> OutlineAppend;
135  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
136 };
137 
138 #endif // vtkGraphAnnotationLayersFilter_h
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
abstract specification for renderers
Definition: vtkRenderer.h:57
Hold a reference to a vtkObjectBase instance.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
appends one or more polygonal datasets together
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
Store zero or more vtkInformation instances.
Produce filled convex hulls around subsets of vertices in a vtkGraph.
Produce filled convex hulls around a set of points.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.