VTK  9.3.1
vtkGraphAnnotationLayersFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
40 #ifndef vtkGraphAnnotationLayersFilter_h
41 #define vtkGraphAnnotationLayersFilter_h
42 
43 #include "vtkPolyDataAlgorithm.h"
44 #include "vtkRenderingAnnotationModule.h" // For export macro
45 #include "vtkSmartPointer.h" // needed for ivars
46 
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkAppendPolyData;
49 class vtkConvexHull2D;
50 class vtkRenderer;
51 
52 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter : public vtkPolyDataAlgorithm
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  void OutlineOn();
64  void OutlineOff();
65  void SetOutline(bool b);
67 
71  void SetScaleFactor(double scale);
72 
76  void SetHullShapeToBoundingRectangle();
77 
81  void SetHullShapeToConvexHull();
82 
87  void SetMinHullSizeInWorld(double size);
88 
93  void SetMinHullSizeInDisplay(int size);
94 
98  void SetRenderer(vtkRenderer* renderer);
99 
103  vtkMTimeType GetMTime() override;
104 
105 protected:
107  ~vtkGraphAnnotationLayersFilter() override;
108 
113 
117  int FillInputPortInformation(int port, vtkInformation* info) override;
118 
119 private:
121  void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
122 
125  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
126 };
127 
128 VTK_ABI_NAMESPACE_END
129 #endif // vtkGraphAnnotationLayersFilter_h
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
abstract specification for renderers
Definition: vtkRenderer.h:61
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
appends one or more polygonal datasets together
virtual vtkMTimeType GetMTime()
Return this object'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.