VTK  9.6.20260521
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
62
63#ifndef vtk3DLinearGridPlaneCutter_h
64#define vtk3DLinearGridPlaneCutter_h
65
67#include "vtkFiltersCoreModule.h" // For export macro
68#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
69
70VTK_ABI_NAMESPACE_BEGIN
71class vtkPlane;
73class vtkPolyData;
74
77{
78public:
80
85 void PrintSelf(ostream& os, vtkIndent indent) override;
87
89
94 virtual void SetPlane(vtkPlane*);
95 vtkGetObjectMacro(Plane, vtkPlane);
97
99
108
110
116 VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
118 VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
120 VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
121 virtual void SetMergePointsOn();
122 VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
123 virtual void SetMergePointsOff();
125
127
131 vtkSetMacro(InterpolateAttributes, bool);
132 vtkGetMacro(InterpolateAttributes, bool);
133 vtkBooleanMacro(InterpolateAttributes, bool);
135
137
143 vtkSetMacro(ComputeNormals, bool);
144 vtkGetMacro(ComputeNormals, bool);
145 vtkBooleanMacro(ComputeNormals, bool);
147
149
159
165
167
172 vtkSetMacro(OutputPointsPrecision, int);
173 vtkGetMacro(OutputPointsPrecision, int);
175
177
185 vtkSetMacro(SequentialProcessing, bool);
186 vtkGetMacro(SequentialProcessing, bool);
187 vtkBooleanMacro(SequentialProcessing, bool);
189
195
204 bool GetLargeIds() { return this->LargeIds; }
205
213
214protected:
217
227 bool LargeIds; // indicate whether integral ids are large(==true) or not
228
229 // Process the data: input unstructured grid and output polydata
231
233 vtkInformationVector* outputVector) override;
235 vtkInformationVector* outputVector) override;
236 int FillInputPortInformation(int port, vtkInformation* info) override;
237
238private:
240 void operator=(const vtk3DLinearGridPlaneCutter&) = delete;
241};
242
243VTK_ABI_NAMESPACE_END
244#endif
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 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.
virtual void SetMergePointsOff()
Indicate whether to merge coincident points.
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.,...
virtual void SetMergePointsOn()
Indicate whether to merge coincident points.
vtkMTimeType GetMTime() override
Overloaded GetMTime() because of delegation to the helper vtkPlane.
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:141
concrete dataset represents vertices, lines, polygons, and triangle strips
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_7_0(reason)
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_MARSHALAUTO