VTK  9.7.1
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 
66 #include "vtkDataObjectAlgorithm.h"
67 #include "vtkFiltersCoreModule.h" // For export macro
68 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
69 
70 VTK_ABI_NAMESPACE_BEGIN
71 class vtkPlane;
73 class vtkPolyData;
74 
75 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtk3DLinearGridPlaneCutter
76  : public vtkDataObjectAlgorithm
77 {
78 public:
80 
85  void PrintSelf(ostream& os, vtkIndent indent) override;
87 
89 
94  virtual void SetPlane(vtkPlane*);
95  vtkGetObjectMacro(Plane, vtkPlane);
97 
99 
104  vtkSetMacro(GenerateCutScalars, vtkTypeBool);
105  vtkGetMacro(GenerateCutScalars, vtkTypeBool);
106  vtkBooleanMacro(GenerateCutScalars, vtkTypeBool);
108 
110 
116  VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
117  vtkSetMacro(MergePoints, vtkTypeBool);
118  VTK_DEPRECATED_IN_9_7_0("No longer needed, points are always merged")
119  vtkGetMacro(MergePoints, vtkTypeBool);
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 
155  vtkSetMacro(GenerateTriangles, vtkTypeBool);
156  vtkGetMacro(GenerateTriangles, vtkTypeBool);
157  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
159 
164  vtkMTimeType GetMTime() override;
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 
194  int GetNumberOfThreadsUsed() { return this->NumberOfThreadsUsed; }
195 
204  bool GetLargeIds() { return this->LargeIds; }
205 
212  static bool CanFullyProcessDataObject(vtkDataObject* object);
213 
214 protected:
216  ~vtk3DLinearGridPlaneCutter() override;
217 
227  bool LargeIds; // indicate whether integral ids are large(==true) or not
228 
229  // Process the data: input unstructured grid and output polydata
230  int ProcessPiece(vtkUnstructuredGrid* input, vtkPlane* plane, vtkPolyData* output);
231 
232  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
233  vtkInformationVector* outputVector) override;
234  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
235  vtkInformationVector* outputVector) override;
236  int FillInputPortInformation(int port, vtkInformation* info) override;
237 
238 private:
240  void operator=(const vtk3DLinearGridPlaneCutter&) = delete;
241 };
242 
243 VTK_ABI_NAMESPACE_END
244 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
static vtkDataObjectAlgorithm * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
int vtkTypeBool
Definition: vtkABI.h:64
bool GetLargeIds()
Inform the user as to whether large ids were used during filter execution.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
perform various plane computations
Definition: vtkPlane.h:31
fast plane cutting of vtkUnstructuredGrid containing 3D linear cells
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:55
#define VTK_DEPRECATED_IN_9_7_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.