VTK  9.3.20240424
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47
48VTK_ABI_NAMESPACE_BEGIN
50class vtkConvexHull2D;
51class vtkRenderer;
52
53class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkGraphAnnotationLayersFilter
55{
56public:
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
79
84
89 void SetMinHullSizeInWorld(double size);
90
96
100 void SetRenderer(vtkRenderer* renderer);
101
106
107protected:
110
115
119 int FillInputPortInformation(int port, vtkInformation* info) override;
120
121private:
123 void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
124
127 vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
128};
129
130VTK_ABI_NAMESPACE_END
131#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_MARSHALAUTO