VTK  9.0.1
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 
49 #ifndef vtkGraphAnnotationLayersFilter_h
50 #define vtkGraphAnnotationLayersFilter_h
51 
52 #include "vtkPolyDataAlgorithm.h"
53 #include "vtkRenderingAnnotationModule.h" // For export macro
54 #include "vtkSmartPointer.h" // needed for ivars
55 
56 class vtkAppendPolyData;
57 class vtkConvexHull2D;
58 class vtkRenderer;
59 
60 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter : public vtkPolyDataAlgorithm
61 {
62 public:
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
68 
71  void OutlineOn();
72  void OutlineOff();
73  void SetOutline(bool b);
75 
79  void SetScaleFactor(double scale);
80 
85 
90 
96 
102 
106  void SetRenderer(vtkRenderer* renderer);
107 
111  vtkMTimeType GetMTime() override;
112 
113 protected:
116 
121 
126 
127 private:
129  void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
130 
133  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
134 };
135 
136 #endif // vtkGraphAnnotationLayersFilter_h
vtkX3D::scale
@ scale
Definition: vtkX3D.h:235
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkGraphAnnotationLayersFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAnnotationLayersFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input to vtkGraph and vtkAnnotationLayers.
vtkSmartPointer< vtkAppendPolyData >
vtkGraphAnnotationLayersFilter::OutlineOn
void OutlineOn()
Produce outlines of the hulls on output port 1.
vtkGraphAnnotationLayersFilter::SetHullShapeToBoundingRectangle
void SetHullShapeToBoundingRectangle()
Set the shape of the hulls to bounding rectangle.
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.
vtkPolyDataAlgorithm.h
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:43
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkGraphAnnotationLayersFilter::New
static vtkGraphAnnotationLayersFilter * New()
vtkGraphAnnotationLayersFilter::~vtkGraphAnnotationLayersFilter
~vtkGraphAnnotationLayersFilter() override
vtkGraphAnnotationLayersFilter::SetMinHullSizeInWorld
void SetMinHullSizeInWorld(double size)
Set the minimum x,y-dimensions of each hull in world coordinates.
vtkGraphAnnotationLayersFilter::SetScaleFactor
void SetScaleFactor(double scale)
Scale each hull by the amount specified.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSmartPointer.h
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkGraphAnnotationLayersFilter::SetRenderer
void SetRenderer(vtkRenderer *renderer)
Renderer needed for MinHullSizeInDisplay calculation.
vtkGraphAnnotationLayersFilter::GetMTime
vtkMTimeType GetMTime() override
The modified time of this filter.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkGraphAnnotationLayersFilter
Produce filled convex hulls around subsets of vertices in a vtkGraph.
Definition: vtkGraphAnnotationLayersFilter.h:61
vtkGraphAnnotationLayersFilter::SetOutline
void SetOutline(bool b)
vtkConvexHull2D
Produce filled convex hulls around a set of points.
Definition: vtkConvexHull2D.h:64
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:59
vtkGraphAnnotationLayersFilter::SetMinHullSizeInDisplay
void SetMinHullSizeInDisplay(int size)
Set the minimum x,y-dimensions of each hull in pixels.
vtkGraphAnnotationLayersFilter::OutlineOff
void OutlineOff()
vtkGraphAnnotationLayersFilter::vtkGraphAnnotationLayersFilter
vtkGraphAnnotationLayersFilter()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:42