VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47 
48 VTK_ABI_NAMESPACE_BEGIN
49 class vtkAppendPolyData;
50 class vtkConvexHull2D;
51 class vtkRenderer;
52 
53 class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkGraphAnnotationLayersFilter
54  : public vtkPolyDataAlgorithm
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  void OutlineOn();
66  void OutlineOff();
67  void SetOutline(bool b);
69 
73  void SetScaleFactor(double scale);
74 
78  void SetHullShapeToBoundingRectangle();
79 
83  void SetHullShapeToConvexHull();
84 
89  void SetMinHullSizeInWorld(double size);
90 
95  void SetMinHullSizeInDisplay(int size);
96 
100  void SetRenderer(vtkRenderer* renderer);
101 
105  vtkMTimeType GetMTime() override;
106 
107 protected:
109  ~vtkGraphAnnotationLayersFilter() override;
110 
115 
119  int FillInputPortInformation(int port, vtkInformation* info) override;
120 
121 private:
123  void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
124 
127  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif // vtkGraphAnnotationLayersFilter_h
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
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: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.
#define VTK_MARSHALAUTO
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.