ParaView
vtkSliceAlongPolyPlane.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSliceAlongPolyPlane.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 =========================================================================*/
28 #ifndef vtkSliceAlongPolyPlane_h
29 #define vtkSliceAlongPolyPlane_h
30 
31 #include "vtkDataObjectAlgorithm.h"
32 #include "vtkPVClientServerCoreDefaultModule.h" //needed for exports
33 
34 class vtkDataSet;
35 class vtkPolyData;
36 
37 class VTKPVCLIENTSERVERCOREDEFAULT_EXPORT vtkSliceAlongPolyPlane : public vtkDataObjectAlgorithm
38 {
39 public:
40  static vtkSliceAlongPolyPlane* New();
41  vtkTypeMacro(vtkSliceAlongPolyPlane, vtkDataObjectAlgorithm) void PrintSelf(
42  ostream& os, vtkIndent indent);
43 
45  vtkSetMacro(Tolerance, double) vtkGetMacro(Tolerance, double)
47 
48  protected : vtkSliceAlongPolyPlane();
49  virtual ~vtkSliceAlongPolyPlane();
50 
51  virtual int RequestDataObject(
52  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
53  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
54  virtual int FillInputPortInformation(int port, vtkInformation* info);
55 
59  virtual bool Execute(vtkDataSet* inputDataset, vtkPolyData* lineDataSet, vtkPolyData* output);
60 
64  void CleanPolyLine(vtkPolyData* input, vtkPolyData* output);
65 
66 private:
67  vtkSliceAlongPolyPlane(const vtkSliceAlongPolyPlane&) VTK_DELETE_FUNCTION;
68  void operator=(const vtkSliceAlongPolyPlane&) VTK_DELETE_FUNCTION;
69 
70  double Tolerance;
71 };
72 
73 #endif
slice a dataset along a polyplane