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 
52 #ifndef vtkGraphAnnotationLayersFilter_h
53 #define vtkGraphAnnotationLayersFilter_h
54 
55 #include "vtkRenderingAnnotationModule.h" // For export macro
56 #include "vtkPolyDataAlgorithm.h"
57 #include "vtkSmartPointer.h" // needed for ivars
58 
59 class vtkAppendPolyData;
60 class vtkConvexHull2D;
61 class vtkRenderer;
62 
63 
64 class VTKRENDERINGANNOTATION_EXPORT vtkGraphAnnotationLayersFilter: public vtkPolyDataAlgorithm
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
72 
75  void OutlineOn();
76  void OutlineOff();
77  void SetOutline(bool b);
79 
83  void SetScaleFactor(double scale);
84 
89 
94 
100 
106 
110  void SetRenderer(vtkRenderer* renderer);
111 
116 
117 protected:
120 
126 
131 
132 private:
134  void operator=(const vtkGraphAnnotationLayersFilter&) VTK_DELETE_FUNCTION;
135 
138  vtkSmartPointer<vtkConvexHull2D> ConvexHullFilter;
139 };
140 
141 #endif // vtkGraphAnnotationLayersFilter_h
vtkGraphAnnotationLayersFilter::GetMTime
virtual vtkMTimeType GetMTime()
The modified time of this filter.
vtkX3D::scale
@ scale
Definition: vtkX3D.h:229
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
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.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:49
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGraphAnnotationLayersFilter::New
static vtkGraphAnnotationLayersFilter * New()
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:40
vtkGraphAnnotationLayersFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info)
Set the input to vtkGraph and vtkAnnotationLayers.
vtkSmartPointer.h
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkGraphAnnotationLayersFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGraphAnnotationLayersFilter::SetRenderer
void SetRenderer(vtkRenderer *renderer)
Renderer needed for MinHullSizeInDisplay calculation.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkGraphAnnotationLayersFilter
Produce filled convex hulls around subsets of vertices in a vtkGraph.
Definition: vtkGraphAnnotationLayersFilter.h:65
vtkGraphAnnotationLayersFilter::SetOutline
void SetOutline(bool b)
vtkConvexHull2D
Produce filled convex hulls around a set of points.
Definition: vtkConvexHull2D.h:67
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkGraphAnnotationLayersFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkGraphAnnotationLayersFilter::~vtkGraphAnnotationLayersFilter
~vtkGraphAnnotationLayersFilter()
vtkGraphAnnotationLayersFilter::SetMinHullSizeInDisplay
void SetMinHullSizeInDisplay(int size)
Set the minimum x,y-dimensions of each hull in pixels.
vtkGraphAnnotationLayersFilter::OutlineOff
void OutlineOff()
vtkGraphAnnotationLayersFilter::vtkGraphAnnotationLayersFilter
vtkGraphAnnotationLayersFilter()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45