VTK  9.2.6
vtkGraphAnnotationLayersFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGraphAnnotationLayersFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14 =========================================================================*/
15
52#ifndef vtkGraphAnnotationLayersFilter_h
53#define vtkGraphAnnotationLayersFilter_h
54
56#include "vtkRenderingAnnotationModule.h" // For export macro
57#include "vtkSmartPointer.h" // needed for ivars
58
60class vtkConvexHull2D;
61class vtkRenderer;
62
63class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter : public vtkPolyDataAlgorithm
64{
65public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
71
74 void OutlineOn();
75 void OutlineOff();
76 void SetOutline(bool b);
78
82 void SetScaleFactor(double scale);
83
88
93
98 void SetMinHullSizeInWorld(double size);
99
105
109 void SetRenderer(vtkRenderer* renderer);
110
115
116protected:
119
124
128 int FillInputPortInformation(int port, vtkInformation* info) override;
129
130private:
132 void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
133
136 vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
137};
138
139#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:40
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:73
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287