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 
52 #ifndef vtkGraphAnnotationLayersFilter_h
53 #define vtkGraphAnnotationLayersFilter_h
54 
55 #include "vtkRenderingAnnotationModule.h" // For export macro
56 #include "vtkPolyDataAlgorithm.h"
57 #include "vtkSmartPointer.h" // needed for ivars
58 
59 class vtkAppendPolyData;
60 class vtkConvexHull2D;
61 class vtkRenderer;
62 
63 
64 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter: public vtkPolyDataAlgorithm
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
72 
75  void OutlineOn();
76  void OutlineOff();
77  void SetOutline(bool b);
79 
83  void SetScaleFactor(double scale);
84 
88  void SetHullShapeToBoundingRectangle();
89 
93  void SetHullShapeToConvexHull();
94 
99  void SetMinHullSizeInWorld(double size);
100 
105  void SetMinHullSizeInDisplay(int size);
106 
110  void SetRenderer(vtkRenderer* renderer);
111 
115  vtkMTimeType GetMTime() override;
116 
117 protected:
119  ~vtkGraphAnnotationLayersFilter() override;
120 
125  vtkInformationVector *) override;
126 
130  int FillInputPortInformation(int port, vtkInformation* info) override;
131 
132 private:
134  void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
135 
138  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
139 };
140 
141 #endif // vtkGraphAnnotationLayersFilter_h
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
abstract specification for renderers
Definition: vtkRenderer.h:63
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
appends one or more polygonal datasets together
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.