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 
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 
77 
82 
88 
94 
98  void SetRenderer(vtkRenderer* renderer);
99 
103  vtkMTimeType GetMTime() override;
104 
105 protected:
108 
113 
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
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
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.
static vtkGraphAnnotationLayersFilter * New()
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:38
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:71
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ scale
Definition: vtkX3D.h:229
@ size
Definition: vtkX3D.h:253
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270