VTK
vtkPlaneCutter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlaneCutter.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 =========================================================================*/
62 #ifndef vtkPlaneCutter_h
63 #define vtkPlaneCutter_h
64 
65 #include "vtkFiltersCoreModule.h" // For export macro
66 #include "vtkDataSetAlgorithm.h"
67 
68 class vtkPlane;
69 class vtkImageData;
70 class vtkStructuredGrid;
72 class vtkSphereTree;
73 class vtkPoints;
74 class vtkCellArray;
75 class vtkPointData;
76 class vtkCellData;
77 
78 class VTKFILTERSCORE_EXPORT vtkPlaneCutter : public vtkDataSetAlgorithm
79 {
80 public:
82 
85  static vtkPlaneCutter *New();
87  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
89 
93  vtkMTimeType GetMTime() VTK_OVERRIDE;
94 
96 
101  virtual void SetPlane(vtkPlane*);
102  vtkGetObjectMacro(Plane,vtkPlane);
104 
106 
112  vtkSetMacro(ComputeNormals,int);
113  vtkGetMacro(ComputeNormals,int);
114  vtkBooleanMacro(ComputeNormals,int);
116 
118 
123  vtkSetMacro(InterpolateAttributes,int);
124  vtkGetMacro(InterpolateAttributes,int);
125  vtkBooleanMacro(InterpolateAttributes,int);
127 
131  int ProcessRequest(vtkInformation*, vtkInformationVector**,
132  vtkInformationVector*) VTK_OVERRIDE;
133 
139  vtkGetObjectMacro(SphereTree,vtkSphereTree);
140 
141 protected:
142  vtkPlaneCutter();
143  ~vtkPlaneCutter() VTK_OVERRIDE;
144 
145  vtkPlane *Plane;
146  int ComputeNormals;
147  int InterpolateAttributes;
148 
149  // Helpers
150  vtkSphereTree *SphereTree;
151 
152  // Pipeline-related methods
153  int RequestDataObject(vtkInformation *, vtkInformationVector **,
154  vtkInformationVector *) VTK_OVERRIDE;
155  int RequestData(vtkInformation *, vtkInformationVector **,
156  vtkInformationVector *) VTK_OVERRIDE;
157  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
158  vtkInformationVector *) VTK_OVERRIDE;
159  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
160  int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
161 
162 private:
163  vtkPlaneCutter(const vtkPlaneCutter&) VTK_DELETE_FUNCTION;
164  void operator=(const vtkPlaneCutter&) VTK_DELETE_FUNCTION;
165 };
166 
167 #endif
represent and manipulate point attribute data
Definition: vtkPointData.h:37
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
cut any dataset with a plane and generate a polygonal cut surface
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
dataset represents arbitrary combinations of all possible cell types
virtual vtkMTimeType GetMTime()
Return this object's modified time.
perform various plane computations
Definition: vtkPlane.h:37
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
topologically regular array of data
class to build and traverse sphere trees
Definition: vtkSphereTree.h:70
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkDataSetAlgorithm * New()
represent and manipulate 3D points
Definition: vtkPoints.h:39