VTK
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 "vtkRenderingAnnotationModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 #include "vtkSmartPointer.h" // needed for ivars
55 
56 class vtkAppendPolyData;
57 class vtkConvexHull2D;
58 class vtkRenderer;
59 
60 
61 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter: public vtkPolyDataAlgorithm
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
72  void OutlineOn();
73  void OutlineOff();
74  void SetOutline(bool b);
76 
80  void SetScaleFactor(double scale);
81 
85  void SetHullShapeToBoundingRectangle();
86 
90  void SetHullShapeToConvexHull();
91 
96  void SetMinHullSizeInWorld(double size);
97 
102  void SetMinHullSizeInDisplay(int size);
103 
107  void SetRenderer(vtkRenderer* renderer);
108 
112  vtkMTimeType GetMTime() override;
113 
114 protected:
116  ~vtkGraphAnnotationLayersFilter() override;
117 
122  vtkInformationVector *) override;
123 
127  int FillInputPortInformation(int port, vtkInformation* info) override;
128 
129 private:
131  void operator=(const vtkGraphAnnotationLayersFilter&) = delete;
132 
135  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
136 };
137 
138 #endif // vtkGraphAnnotationLayersFilter_h
vtkX3D::scale
Definition: vtkX3D.h:229
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSmartPointer< vtkAppendPolyData >
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:42
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer.h
vtkX3D::size
Definition: vtkX3D.h:253
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkGraphAnnotationLayersFilter
Produce filled convex hulls around subsets of vertices in a vtkGraph.
Definition: vtkGraphAnnotationLayersFilter.h:61
vtkConvexHull2D
Produce filled convex hulls around a set of points.
Definition: vtkConvexHull2D.h:63
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:57
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41