VTK  9.3.0
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
44#include "vtkRenderingAnnotationModule.h" // For export macro
45#include "vtkSmartPointer.h" // needed for ivars
46
47VTK_ABI_NAMESPACE_BEGIN
49class vtkConvexHull2D;
50class vtkRenderer;
51
52class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter : public vtkPolyDataAlgorithm
53{
54public:
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
77
82
87 void SetMinHullSizeInWorld(double size);
88
94
98 void SetRenderer(vtkRenderer* renderer);
99
104
105protected:
108
113
117 int FillInputPortInformation(int port, vtkInformation* info) override;
118
119private:
121 void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
122
125 vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
126};
127
128VTK_ABI_NAMESPACE_END
129#endif // vtkGraphAnnotationLayersFilter_h
appends one or more polygonal datasets together
Produce filled convex hulls around a set of points.
Produce filled convex hulls around subsets of vertices in a vtkGraph.
void SetOutline(bool b)
Produce outlines of the hulls on output port 1.
void SetHullShapeToBoundingRectangle()
Set the shape of the hulls to bounding rectangle.
~vtkGraphAnnotationLayersFilter() override
static vtkGraphAnnotationLayersFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OutlineOn()
Produce outlines of the hulls on output port 1.
vtkMTimeType GetMTime() override
The modified time of this filter.
void SetMinHullSizeInDisplay(int size)
Set the minimum x,y-dimensions of each hull in pixels.
void SetMinHullSizeInWorld(double size)
Set the minimum x,y-dimensions of each hull in world coordinates.
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input to vtkGraph and vtkAnnotationLayers.
void SetRenderer(vtkRenderer *renderer)
Renderer needed for MinHullSizeInDisplay calculation.
void SetScaleFactor(double scale)
Scale each hull by the amount specified.
void OutlineOff()
Produce outlines of the hulls on output port 1.
void SetHullShapeToConvexHull()
Set the shape of the hulls to convex hull.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
abstract specification for renderers
Definition vtkRenderer.h:59
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270