VTK  9.4.20241217
vtk3DLinearGridPlaneCutter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
63#ifndef vtk3DLinearGridPlaneCutter_h
64#define vtk3DLinearGridPlaneCutter_h
65
67#include "vtkFiltersCoreModule.h" // For export macro
68
69VTK_ABI_NAMESPACE_BEGIN
70class vtkPlane;
72class vtkPolyData;
73
74class VTKFILTERSCORE_EXPORT vtk3DLinearGridPlaneCutter : public vtkDataObjectAlgorithm
75{
76public:
78
83 void PrintSelf(ostream& os, vtkIndent indent) override;
85
87
92 virtual void SetPlane(vtkPlane*);
93 vtkGetObjectMacro(Plane, vtkPlane);
95
97
103 vtkSetMacro(MergePoints, bool);
104 vtkGetMacro(MergePoints, bool);
105 vtkBooleanMacro(MergePoints, bool);
107
109
113 vtkSetMacro(InterpolateAttributes, bool);
114 vtkGetMacro(InterpolateAttributes, bool);
115 vtkBooleanMacro(InterpolateAttributes, bool);
117
119
125 vtkSetMacro(ComputeNormals, bool);
126 vtkGetMacro(ComputeNormals, bool);
127 vtkBooleanMacro(ComputeNormals, bool);
129
135
137
142 void SetOutputPointsPrecision(int precision);
145
147
155 vtkSetMacro(SequentialProcessing, bool);
156 vtkGetMacro(SequentialProcessing, bool);
157 vtkBooleanMacro(SequentialProcessing, bool);
159
164 int GetNumberOfThreadsUsed() { return this->NumberOfThreadsUsed; }
165
174 bool GetLargeIds() { return this->LargeIds; }
175
183
184protected:
187
195 bool LargeIds; // indicate whether integral ids are large(==true) or not
196
197 // Process the data: input unstructured grid and output polydata
199
201 vtkInformationVector* outputVector) override;
203 vtkInformationVector* outputVector) override;
204 int FillInputPortInformation(int port, vtkInformation* info) override;
205
206private:
208 void operator=(const vtk3DLinearGridPlaneCutter&) = delete;
209};
210
211VTK_ABI_NAMESPACE_END
212#endif
fast plane cutting of vtkUnstructuredGrid containing 3D linear cells
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output points.
int GetNumberOfThreadsUsed()
Return the number of threads actually used during execution.
~vtk3DLinearGridPlaneCutter() override
static vtk3DLinearGridPlaneCutter * New()
Standard methods for construction, type info, and printing.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetOutputPointsPrecision() const
Set/get the desired precision for the output points.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
virtual void SetPlane(vtkPlane *)
Specify the plane (an implicit function) to perform the cutting.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
bool GetLargeIds()
Inform the user as to whether large ids were used during filter execution.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int ProcessPiece(vtkUnstructuredGrid *input, vtkPlane *plane, vtkPolyData *output)
static bool CanFullyProcessDataObject(vtkDataObject *object)
Returns true if the data object passed in is fully supported by this filter, i.e.,...
vtkMTimeType GetMTime() override
Overloaded GetMTime() because of delegation to the helper vtkPlane.
Superclass for algorithms that produce only data object as output.
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition vtkPlane.h:138
concrete dataset represents vertices, lines, polygons, and triangle strips
dataset represents arbitrary combinations of all possible cell types
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270