50 #ifndef __vtkConvexHull2D_h
51 #define __vtkConvexHull2D_h
53 #include "vtkInfovisCoreModule.h"
55 #include "vtkSmartPointer.h"
70 void PrintSelf(ostream& os, vtkIndent indent);
74 vtkGetMacro(ScaleFactor,
double);
75 vtkSetMacro(ScaleFactor,
double);
80 vtkGetMacro(Outline,
bool);
81 vtkSetMacro(Outline,
bool);
82 vtkBooleanMacro(Outline,
bool);
86 BoundingRectangle = 0,
92 vtkGetMacro(HullShape,
int);
93 vtkSetClampMacro(HullShape,
int, 0, 1);
99 vtkSetClampMacro(MinHullSizeInWorld,
double, 0.0, VTK_DOUBLE_MAX);
100 vtkGetMacro(MinHullSizeInWorld,
double);
107 vtkSetClampMacro(MinHullSizeInDisplay,
int, 0, VTK_INT_MAX);
108 vtkGetMacro(MinHullSizeInDisplay,
int);
114 void SetRenderer(vtkRenderer* renderer);
115 vtkRenderer* GetRenderer();
119 virtual unsigned long GetMTime();
124 static void CalculateBoundingRectangle(vtkPoints* inPoints,
125 vtkPoints* outPoints,
double minimumHullSize=1.0);
126 static void CalculateConvexHull(vtkPoints* inPoints, vtkPoints* outPoints,
127 double minimumHullSize=1.0);
137 int RequestData(vtkInformation *, vtkInformationVector **,
138 vtkInformationVector *);
145 void ResizeHullToMinimumInDisplay(
vtkPolyData* hullPolyData);
150 int MinHullSizeInDisplay;
151 double MinHullSizeInWorld;
152 vtkRenderer* Renderer;
154 vtkSmartPointer<vtkCoordinate> Coordinate;
155 vtkSmartPointer<vtkTransform> Transform;
156 vtkSmartPointer<vtkTransform> OutputTransform;
157 vtkSmartPointer<vtkTransformPolyDataFilter> OutputTransformFilter;
158 vtkSmartPointer<vtkPolyLine> OutlineSource;
159 vtkSmartPointer<vtkPolygon> HullSource;
162 #endif // __vtkConvexHull2D_h
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
Produce filled convex hulls around a set of points.
cell represents a set of 1D lines