VTK: Rendering/Annotation/vtkGraphAnnotationLayersFilter.h Source File

| VTK 9.3.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
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:
55 static vtkGraphAnnotationLayersFilter* New();
56 vtkTypeMacro(vtkGraphAnnotationLayersFilter, vtkPolyDataAlgorithm);
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
76 void SetHullShapeToBoundingRectangle();
77
81 void SetHullShapeToConvexHull();
82
87 void SetMinHullSizeInWorld(double size);
88
93 void SetMinHullSizeInDisplay(int size);
94
98 void SetRenderer(vtkRenderer* renderer);
99
103 vtkMTimeType GetMTime() override;
104
105 protected:
106 vtkGraphAnnotationLayersFilter();
107 ~vtkGraphAnnotationLayersFilter() override;
108
112 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
113
117 int FillInputPortInformation(int port, vtkInformation* info) override;
118
119 private:
120 vtkGraphAnnotationLayersFilter(const vtkGraphAnnotationLayersFilter&) = delete;
121 void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
122
123 vtkSmartPointer<vtkAppendPolyData> HullAppend;
124 vtkSmartPointer<vtkAppendPolyData> OutlineAppend;
125 vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
126 };
127
128 VTK_ABI_NAMESPACE_END
129 #endif // vtkGraphAnnotationLayersFilter_h
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:52
vtkConvexHull2D
Produce filled convex hulls around a set of points.
Definition: vtkConvexHull2D.h:56
vtkGraphAnnotationLayersFilter
Produce filled convex hulls around subsets of vertices in a vtkGraph.
Definition: vtkGraphAnnotationLayersFilter.h:53
vtkGraphAnnotationLayersFilter::vtkGraphAnnotationLayersFilter
vtkGraphAnnotationLayersFilter()
vtkGraphAnnotationLayersFilter::SetOutline
void SetOutline(bool b)
Produce outlines of the hulls on output port 1.
vtkGraphAnnotationLayersFilter::SetHullShapeToBoundingRectangle
void SetHullShapeToBoundingRectangle()
Set the shape of the hulls to bounding rectangle.
vtkGraphAnnotationLayersFilter::~vtkGraphAnnotationLayersFilter
~vtkGraphAnnotationLayersFilter() override
vtkGraphAnnotationLayersFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAnnotationLayersFilter::OutlineOn
void OutlineOn()
Produce outlines of the hulls on output port 1.
vtkGraphAnnotationLayersFilter::GetMTime
vtkMTimeType GetMTime() override
The modified time of this filter.
vtkGraphAnnotationLayersFilter::SetMinHullSizeInDisplay
void SetMinHullSizeInDisplay(int size)
Set the minimum x,y-dimensions of each hull in pixels.
vtkGraphAnnotationLayersFilter::SetMinHullSizeInWorld
void SetMinHullSizeInWorld(double size)
Set the minimum x,y-dimensions of each hull in world coordinates.
vtkGraphAnnotationLayersFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input to vtkGraph and vtkAnnotationLayers.
vtkGraphAnnotationLayersFilter::SetRenderer
void SetRenderer(vtkRenderer *renderer)
Renderer needed for MinHullSizeInDisplay calculation.
vtkGraphAnnotationLayersFilter::New
static vtkGraphAnnotationLayersFilter * New()
vtkGraphAnnotationLayersFilter::SetScaleFactor
void SetScaleFactor(double scale)
Scale each hull by the amount specified.
vtkGraphAnnotationLayersFilter::OutlineOff
void OutlineOff()
Produce outlines of the hulls on output port 1.
vtkGraphAnnotationLayersFilter::SetHullShapeToConvexHull
void SetHullShapeToConvexHull()
Set the shape of the hulls to convex hull.
vtkGraphAnnotationLayersFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkSmartPointer< vtkAppendPolyData >
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::scale
@ scale
Definition: vtkX3D.h:229
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkPolyDataAlgorithm.h
vtkSmartPointer.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270